CLIPlatform API v1

AutoContent CLI

Run the same typed Platform workflow from a terminal, CI job, or agent without a second API contract.

Install and sign in

AUTOCONTENT_API_KEY overrides the local stored key and is the preferred CI/agent path. Use --json for canonical machine-readable output.

Global install
shell
npm install --global autocontentapi
autocontent login acp_...
autocontent whoami

Preview and generate

Upload a one-off file with autocontent --quiet sources add ./brief.pdf --project prj_example --request-only, wait for that Source to become ready, and pass the returned ID through repeated --attachment-source flags. Interactive terminals preview and ask once before acceptance. Non-interactive use requires an explicit maximum; the CLI never invents or raises it.

Shell
shell
autocontent preview \
  --project prj_example \
  --knowledge \
  --attachment-source src_request_brief \
  --asset lead_magnet

autocontent generate \
  --project prj_example \
  --knowledge \
  --attachment-source src_request_brief \
  --asset lead_magnet \
  --max-cost "$PREVIEW_TOTAL_USD" \
  --wait \
  --output-dir ./assets

More commands

Use autocontent --help and group help for Projects, Knowledge, discovery, Voices, Avatars, Generations and edits, Assets, Content Loops, usage, funding, API keys, and webhooks.