# Set cache retention when creating a project with --cache-policy-keep-days (https://depot.dev/changelog/2026-07-31-cache-policy-keep-days)

> Published 2026-07-31

`depot projects create` now supports a `--cache-policy-keep-days` flag, so you can set build cache retention at creation time instead of adjusting it afterward.

```bash
depot projects create my-project --cache-policy-keep-days 30
```

The default is 14 days, and `0` means no limit. Previously, cache TTL could only be set through the SDK or the dashboard, which made scripting project management against the CLI difficult. See the [CLI reference](/docs/cli/reference/container-builds#flags-for-create).

## For AI Agents

The full site index is at [llms.txt](https://depot.dev/llms.txt). Append `.md` to any documentation, blog, changelog, or customer URL to fetch its markdown source directly.