Skip to content

Commit 14ddd21

Browse files
committed
Address PR copy changes, add force option to wrangler lifecycle add docs
1 parent 023da42 commit 14ddd21

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/content/docs/r2/buckets/object-lifecycles.mdx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,15 @@ When you create an object lifecycle rule, you can specify which prefix you would
3535

3636
### Wrangler
3737

38-
#### Set up Wrangler
39-
40-
To begin, install [`npm`](https://docs.npmjs.com/getting-started). Then [install Wrangler, the Developer Platform CLI](/workers/wrangler/install-and-update/).
41-
42-
#### Add a lifecycle rule
43-
44-
Log in to Wrangler with the [`wrangler login` command](/workers/wrangler/commands/#login). Then add a lifecycle rule to your bucket by running the [`r2 bucket lifecycle add` command](/workers/wrangler/commands/#lifecycle-add).
38+
1. Install [`npm`](https://docs.npmjs.com/getting-started).
39+
2. Install [Wrangler, the Developer Platform CLI](/workers/wrangler/install-and-update/).
40+
3. Log in to Wrangler with the [`wrangler login` command](/workers/wrangler/commands/#login).
41+
4. Add a lifecycle rule to your bucket by running the [`r2 bucket lifecycle add` command](/workers/wrangler/commands/#lifecycle-add).
4542

4643
```sh
4744
npx wrangler r2 bucket lifecycle add <BUCKET_NAME> [OPTIONS]
4845
```
4946

50-
#### Set the lifecycle configuration
51-
5247
Alternatively you can set the entire lifecycle configuration for a bucket from a JSON file using the [`r2 bucket lifecycle set` command](/workers/wrangler/commands/#lifecycle-set).
5348

5449
```sh

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,8 @@ wrangler r2 bucket lifecycle add <NAME> [OPTIONS]
11291129
- Sets the lifecycle rule action to abort incomplete multipart uploads after this number of days.
11301130
- `--jurisdiction` <Type text="string" /> <MetaInfo text="optional" />
11311131
- The jurisdiction where the bucket exists, if a jurisdiction has been specified. Refer to [jurisdictional restrictions](/r2/reference/data-location/#jurisdictional-restrictions).
1132+
- `--force` <Type text="boolean" /> <MetaInfo text="optional" />
1133+
- Skip confirmation when adding the lifecycle rule.
11321134

11331135
### `lifecycle remove`
11341136

0 commit comments

Comments
 (0)