Skip to main content
The contenthero CLI drives everything from a shell. It is the right transport when you do not have MCP wired up but you have a terminal, and it is ideal for CI and scripts. It rides the same /api/v1 API as the SDK.

Install

Authenticate

login opens a browser, provisions a key for this machine, and stores it at ~/.contenthero/credentials (mode 0600). The auth ladder is --api-key flag, then the CONTENTHERO_API_KEY environment variable, then the stored credential. The environment variable always wins over the stored file, so CI can override a local login:
Never paste your key into an agent chat. Use contenthero login or the environment variable. See API Keys.

Shape

The pattern is contenthero <noun> <verb>, with JSON on stdout by default.

Next

Commands

The full command tree by resource.

Output & async

JSON output, exit codes, cost preflight, and polling.

Examples

Practical recipes and scripting patterns.

Cookbook

End-to-end workflows.