Skip to main content

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​

--account <string>
account ID
--deployment <string>
deployment ID (required)

-y, --yes

skip the confirmation prompt

Formatting​

For more information about formatting options, see Formatting.

-o, --output <string>

output format: [table|plain|csv|json|yaml]

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​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

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​