Cancel a run

## Usage

`circleci run cancel <run-number-or-id> [flags]`

## Arguments

`<run-number-or-id>` identifies the run to cancel. A run can be specified by its UUID or number:
- A run UUID, as shown in `circleci run list --json`
- A run number, as shown in `circleci run list`.

The project is inferred from the git remote unless overridden with `--project`.

## Flags

| Flag               | Description                                                     |
| ------------------ | --------------------------------------------------------------- |
| `-f, --force`      | skip confirmation prompt                                        |
| `--project string` | Project slug (e.g. gh/org/repo); used when cancelling by number |

Global flags: `-c, --config`, `--debug`, `--no-color`, `-q, --quiet` — see `circleci --help`.

## Examples

- Cancel a run by number (with confirmation): 
  `circleci run cancel 75`
- Cancel a run by UUID without confirmation: 
  `circleci run cancel 5034460f-c7c4-4c43-9457-de07e2029e7b --force`
- Cancel the latest run on a branch: 
  `circleci run list --branch main --json --jq '.[0].id' | xargs circleci run cancel --force`

## Details

Cancel a running CircleCI run by number or UUID.

Cancelling a run stops all in-progress workflows and jobs within it.
Workflows that have already completed are unaffected.

