For the complete documentation index, see llms.txt.

chainctl

  3 min read

chainctl

Chainguard Control

Synopsis

Chainguard Control (chainctl) manages Chainguard resources from the command line.

Exit codes:

  • 0: the command succeeded, or a confirmation prompt was declined and nothing was changed.
  • 1: the command failed. This covers every error, including invalid arguments and flags, and commands that act as a gate: a check that failed, a policy that denied, a –check or –exit-code gate that matched, or “chainctl images repos build apply –dry-run” finding changes to apply.
  • 2: “chainctl checks status” only. The platform created no Run for the commit or pull request, so there is no verdict.
  • 3-8: “chainctl starter init” only. Each names a way the signup ended; “chainctl starter init –help” lists them.
  • 130: the command was interrupted with SIGINT (Ctrl-C) and did not finish. A command that unwinds after the first Ctrl-C may exit 1, or 0 if it treats the cancellation as a clean stop; “chainctl starter init” exits 7 once it has created the organization. A second Ctrl-C forces 130.
  • 143: the command was terminated with SIGTERM.

“chainctl develop” and “chainctl develop attach” exit with the session shell’s exit code when the shell exits. “chainctl develop exec” exits with the command’s exit code, 124 when –timeout killed it, and 255 when the command’s outcome is unknown. “chainctl develop check” exits 0 when the checks pass and 1 when a step fails.

The number in brackets in some error messages, such as “[4] …”, is chainctl’s internal error code, also shown as “code” with –output json. It is not the process exit code.

chainctl [flags]

Options

      --api string         The url of the Chainguard platform API. (default "https://console-api.enforce.dev")
      --audience string    The Chainguard token audience to request. (default "https://console-api.enforce.dev")
      --config string      A specific chainctl config file. Uses CHAINCTL_CONFIG environment variable if a file is not passed explicitly.
      --console string     The url of the Chainguard platform Console. (default "https://console.chainguard.dev")
      --force-color        Force color output even when stdout is not a TTY.
  -h, --help               Help for chainctl
      --issuer string      The url of the Chainguard STS endpoint. (default "https://issuer.enforce.dev")
      --log-level string   Set the log level (debug, info) (default "ERROR")
  -o, --output string      Output format. One of: [csv, env, go-template, id, json, markdown, none, table, terse, tree, wide]
  -v, --v int              Set the log verbosity level.

SEE ALSO

Last updated: 2026-11-05 20:53