CloudBoosterDocs

cbx Reference

CloudBooster CLI

cbx Reference

CloudBooster CLI

This reference documents every command, flag, and subcommand exposed by cbx-cli.

Table of Contents

cbx

cbx

CloudBooster CLI

The CloudBooster CLI (cbx) is the primary command-line interface for interacting with the CloudBooster platform.

Flags

FlagShorthandTypeDefaultRequiredDescription
--help-hboolfalseShow help for cbx
--version-vboolfalsePrint the CLI version

Global flags (available on every command)

FlagShorthandTypeDefaultDescription
--output-ostringtextOutput format: text or json
--no-colorboolfalseDisable colored output
--quiet-qboolfalseSuppress non-essential output

Subcommands

  • audit — Audit a live AWS account against CloudBooster's curated rules
  • login — Log in to your CloudBooster account
  • config — Manage CLI configuration
  • llm — Manage LLM providers and local CLI executors
  • upgrade — Upgrade cbx-cli to the latest version
  • version — Print the CLI version
  • completion — Generate a shell completion script

Related guide

See the install guide.

cbx audit

cbx audit

Run a security and compliance audit

cbx audit on its own lists the available audit subcommand. The only audit surface is cbx audit aws, which audits a live AWS account.

The earlier IaC state-file inputs (--source, --pulumi-state, --terraform-state, --scanners) are no longer a CLI surface. State-file and source parsing survive only as a Go library path (pkg/audit) for downstream consumers — see Use cbx audit.

Subcommands

  • aws — Audit a live AWS account

cbx audit aws

cbx audit aws [profile] [flags]

Audit a live AWS account

Discovers resources in a live AWS account via the AWS SDK, grounds findings in CloudBooster's curated AWS knowledge and rule pack (fetched from api.cloudbooster.io/v1/knowledge/aws/*), and runs a local LLM CLI (claude -p by default, or codex exec) to produce a cited report.

The chosen LLM CLI (claude or codex) must be on your PATH and owns its own auth. Before any AWS call, a pre-discovery preflight probes the executor; failure aborts with E_LLM_PREFLIGHT.

Example

cbx audit aws
cbx audit aws prod --region us-east-1 --region us-west-2
cbx audit aws --region all -o json
cbx audit aws --llm-executor codex --llm-model gpt-5-codex

Flags

FlagTypeDefaultDescription
--regionstring (repeatable)profile regionRegion to audit; repeat for several, or pass all to fan out across enabled regions
--llm-executorstringfollows cbx llm default (else claude-code)Local LLM CLI to drive the audit: claude-code or codex
--llm-modelstringexecutor defaultPin the model passed to the executor
--llm-max-costfloatUSD cap on LLM spend (enforced for claude-code only; codex reports no cost)
--rulepack-versionstringlatestPin the curated rule-pack version (env CBX_RULEPACK_VERSION)
--diagnoseboolfalseEmit a per-call breakdown of discovery permission errors
--dry-runboolfalseRun discovery and preflight without invoking the analyzer
--no-tuiboolfalseDisable the interactive TUI
--strictboolfalseTreat warnings as failures
--aws-concurrencyint4Concurrent AWS calls per service
--credentials-filestringPath to an explicit AWS credentials file

Related guide

See Use cbx audit aws.

cbx login

cbx login [flags]

Log in to your CloudBooster account

Opens a PKCE OAuth browser flow to authenticate your CLI with CloudBooster. Tokens are stored in your OS-native keyring.

Example

cbx login

cbx config

cbx config [subcommand]

Manage CLI configuration

View and set configuration values for the CloudBooster CLI.

Example

cbx config

cbx llm

cbx llm [subcommand]

Manage LLM providers and local CLI executors

Commands for managing API-key LLM providers and local CLI executors used by cbx audit aws. API providers: claude (Anthropic) and codex (OpenAI). Local CLI executors: claude-code and codex.

Subcommands

CommandDescription
cbx llm api login <provider>Store an API key for a provider (claude or codex)
cbx llm api logout <provider>Remove a stored API key
cbx llm api listList configured API providers
cbx llm api test <provider>Verify an API provider's credentials
cbx llm cli listList detected local CLI executors
cbx llm cli test <executor>Verify a local CLI executor (e.g. claude-code, codex) with a real prompt probe
cbx llm default <name>Set the default provider/executor (honored by cbx audit aws --llm-executor)
cbx llm listList all providers and executors
cbx llm model <name> <model>Pin the model for a provider or executor

Example

# Store an API key
cbx llm api login claude
 
# Verify the local Claude Code CLI executor
cbx llm cli test claude-code
 
# Make codex the default executor for audits
cbx llm default codex
 
# Pin a model
cbx llm model claude-code claude-sonnet-4-6

cbx upgrade

cbx upgrade

Upgrade cbx-cli to the latest version

Downloads and installs the latest stable cbx-cli release.

Example

cbx upgrade

cbx version

cbx version

Print the CLI version

Prints the current version of cbx-cli, including the build commit and release date.

Example

cbx version

cbx completion

cbx completion [bash|zsh|fish|powershell]

Generate a shell completion script

Outputs a completion script for the named shell. See cbx completion --help for per-shell install instructions.

Example

cbx completion zsh > ~/.cbx-completion.zsh

On this page