# tigris buckets lifecycle edit

Edit an existing lifecycle rule by its id. Only specified fields are changed.

**Alias:** `e`

## Usage[​](#usage "Direct link to Usage")

```
tigris buckets lifecycle edit <name> <id> [flags]

t3 b lc e <name> <id> [flags]
```

Run `tigris buckets lifecycle list <name>` to see existing rule ids.

## Flags[​](#flags "Direct link to Flags")

| Name                    | Required | Default | Description                                   |
| ----------------------- | -------- | ------- | --------------------------------------------- |
| `--prefix`, `-p`        | No       | —       | Replace the rule's key prefix                 |
| `--storage-class`, `-s` | No       | —       | Replace the rule's transition target          |
| `--days`, `-d`          | No       | —       | Replace the rule's transition days            |
| `--date`                | No       | —       | Replace the rule's transition date (ISO-8601) |
| `--expire-days`         | No       | —       | Replace the rule's expiration days            |
| `--expire-date`         | No       | —       | Replace the rule's expiration date (ISO-8601) |
| `--enable`              | No       | —       | Enable the rule                               |
| `--disable`             | No       | —       | Disable the rule (does not remove it)         |

## Examples[​](#examples "Direct link to Examples")

```
# Change the transition window

tigris buckets lifecycle edit my-bucket abc123 --days 60



# Add or change the expiration window

tigris buckets lifecycle edit my-bucket abc123 --expire-days 90



# Re-enable a previously disabled rule

tigris buckets lifecycle edit my-bucket abc123 --enable
```
