# ccp ci



{/* Generated by scripts/sync-cli-reference.ts */}

Run a CI build job in an isolated build machine and gate on its exit code

```text
Usage: ccp ci [OPTIONS] [DIRECTORY]
```

| Argument     | Type or values | Default | Parser environment variable | Description                                                                            |
| ------------ | -------------- | ------- | --------------------------- | -------------------------------------------------------------------------------------- |
| --request-id | text           | —       | —                           | Reuse an ID to recover a submission after a lost reply (defaults to a fresh random ID) |
| directory    | path           | .       | —                           | Directory holding .cluster-ci.yaml and the git repo (default: ".")                     |
| --file       | path           | —       | —                           | Spec file to submit (default: \<directory>/.cluster-ci.yaml)                           |
| --org-id     | text           | —       | —                           | Organization ID (skips the org selection prompt)                                       |
| --git-ref    | text           | —       | —                           | Git ref to build (default: the current branch)                                         |
| --no-wait    | flag           | false   | —                           | Submit and print the job ID without waiting for it to finish                           |
| --json       | flag           | false   | —                           | Suppress streamed logs; print a single machine-parseable JSON result                   |
| --help, -h   | flag           | —       | —                           | Print help                                                                             |

## Example [#example]

```bash
ccp ci --help
```

## Global options [#global-options]

Set `CCP_CONTEXT` to choose a named context. An explicit `--context` takes precedence. See [organization selection](/docs/ccp/organizations) for organization defaults.

| Argument  | Type or values | Default | Parser environment variable | Description                                         |
| --------- | -------------- | ------- | --------------------------- | --------------------------------------------------- |
| --context | text           | —       | —                           | Select a developer context from \~/.ccp/config.toml |
