Set cache retention when creating a project with --cache-policy-keep-days

31 JUL, 2026

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.

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.

Start building with Depot
in minutes