Cancel container builds from the Depot CLI

20 OCT, 2026

Depot CLI v2.102.24 adds depot build cancel for container builds. Cancel one or more builds by ID, or select all running builds in a project.

depot build cancel <build-id> <another-build-id>

Use --all-running --project <project-id> --dry-run to preview a bulk selection. Remove --dry-run to confirm cancellation interactively, or add --yes for scripts. Cancellation is asynchronous, so a successful request does not mean the build has already stopped.

The command requires an organization API token supplied through DEPOT_TOKEN or --token. See the container build cancellation reference for permissions and options.

Start building with Depot
in minutes