cancel
cancel a running build
🛑 Cancel a running build.
Canceling stops the build and nothing it would have deployed goes live; the running version keeps serving. It asks for confirmation first; --yes skips the question. Without a terminal (CI, a pipe, --no-input) it refuses to run unless --yes is given.
A build that already finished can't be canceled.
Usage​
csph deployments builds cancel <build-id> [flags]
Aliases​
deployments builds cancel, deployments builds stop, deployments build cancel, deployments build stop, deployment builds cancel, deployment builds stop, deployment build cancel, deployment build stop, deploys builds cancel, deploys builds stop, deploys build cancel, deploys build stop
Options​
Command Specific​
Formatting​
For more information about formatting options, see Formatting.
Available Fields​
approved_at, approved_by, awaiting_approval_at, build_duration_seconds, built_at, cache_hit_ratio, canceled_at, commit_author, commit_message, commit_sha, created_at, declared_build_args, deployed_by, deployment_id, duration_seconds, environment_id, failure_message, failure_reason, finished_at, git_ref, id, image_digest, image_signature, image_size_bytes, manifest, mode, object, pipeline_tier, pre_deploy_command, promoted_from, reject_reason, rejected_at, rejected_by, service_id, source_kind, source_ref, started_at, status, trigger_source
Inherited​
Examples​
# cancel a build (asks first)
> csph deployment builds cancel <build-id> --deployment <deployment-id>
# cancel without asking, e.g. in CI
> csph deployment builds cancel <build-id> --deployment <deployment-id> --yes
# pick the deployment and build interactively
> csph deployment builds cancel
See also​
- csph deployments builds — manage a deployment's builds
- csph deployments builds create — start a build of a deployment
- csph deployments builds list — list a deployment's builds
- csph deployments builds get — show a build
- csph deployments builds approve — approve a build waiting for approval, so it deploys
- csph deployments builds reject — reject a build waiting for approval, so it doesn't deploy