# tigris buckets lifecycle

Manage bucket lifecycle rules. Each rule combines an optional storage-class transition and/or expiration (TTL), scoped to an optional key prefix.

**Alias:** `lc`

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

```
tigris buckets lifecycle <operation> [flags]

t3 b lc <operation> [flags]
```

## Commands[​](#commands "Direct link to Commands")

| Command                                            | Description                                                |
| -------------------------------------------------- | ---------------------------------------------------------- |
| [`list`](/docs/cli/buckets/lifecycle/list/.md)     | List lifecycle rules on a bucket                           |
| [`create`](/docs/cli/buckets/lifecycle/create/.md) | Create a new lifecycle rule (transition and/or expiration) |
| [`edit`](/docs/cli/buckets/lifecycle/edit/.md)     | Edit an existing lifecycle rule by id                      |

Lifecycle replaces the deprecated `set-ttl` and `set-transition` commands.

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

```
# List existing rules

tigris buckets lifecycle list my-bucket



# Move objects to STANDARD_IA after 30 days (bucket-wide)

tigris buckets lifecycle create my-bucket --storage-class STANDARD_IA --days 30



# Expire objects under tmp/ after 7 days

tigris buckets lifecycle create my-bucket --prefix tmp/ --expire-days 7



# Combine transition and expiration

tigris buckets lifecycle create my-bucket --prefix archive/ \

  --storage-class GLACIER --days 30 --expire-days 365
```
