Skip to main content
Everything for automating chatwoot-cli: output formats and headless/CI use. Need a command? See Commands. For shell completion setup, see Getting started.

Output formats

Every command takes -o / --output:

Text (default)

Human-readable tables:

JSON

Full API response, ready for jq:

CSV

Quiet — IDs only

-q prints just the IDs, one per line — perfect for xargs:

Headless / CI use

The OS keyring isn’t available in most CI environments. Set CHATWOOT_API_KEY to override the saved token:
Combine with --account to target a specific account:
Add -v / --verbose to print every HTTP request and response to stderr — handy when something looks wrong.

Tips

  • -q is your friend — every list command supports it, every xargs pipeline starts with it.
  • Pipe to jq early and aggressively; -o json returns the full Chatwoot response, not a slimmed-down view.
  • Use --no-color when redirecting text output to a file or another program that doesn’t strip ANSI codes.
  • chatwoot --help and chatwoot <command> --help are exhaustive — the CLI’s help is generated from the same definitions that drive the binary.