# kosa8 sandbox lifecycle

Set when a sandbox stops or is deleted by itself

## Usage

```
kosa8 sandbox lifecycle SANDBOX
```

Changes a sandbox's auto-stop, auto-delete, TTL or ephemeral setting.
Only the flags given change; 0 turns one off. With no flags, shows them.

  kosa8 sandbox lifecycle web --auto-stop 15m
  kosa8 sandbox lifecycle web --ttl 0 --ephemeral=false

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--auto-delete` | duration | delete the sandbox once it has been stopped this long, e.g. 24h (0: never) | `0s` |
| `--auto-stop` | duration | stop the sandbox after this long without use, e.g. 30m (0: never) | `0s` |
| `--ephemeral` | bool | delete the sandbox, disk and all, whenever it stops |  |
| `--ttl` | duration | stop the sandbox this long after it was created, in use or not, e.g. 2h (0: never) | `0s` |

## Example

```
  kosa8 sandbox lifecycle dev --auto-stop 30m
  kosa8 sandbox lifecycle dev --auto-delete 24h
  kosa8 sandbox lifecycle scratch --ttl 2h --ephemeral
```

---
Source: https://docs.kosa8.com/reference/sandbox-lifecycle/
