CLI
The autoranq CLI is the terminal-native version of the platform. Login once, then every other command just works — no key juggling, no copy-paste, no Postman.
Install
npm install -g @autoranq/cliautoranq --version# Tap coming with v0.2brew install autoranq/tap/autoranq# Same pattern as Stripe / gh — shipping with v0.2curl -fsSL https://docs.autoranq.ai/install.sh | shThe CLI needs Node 20+ on your machine.
Login
$ autoranq loginPaste your AutoRanq API key (starts with ar_live_ or ar_test_): ar_test_...Validating key against API…✓ Authenticated (test mode) Token saved to ~/.autoranq/config.jsonFor CI environments without a TTY:
$ autoranq login --with-key ar_live_your_key✓ Authenticated (live mode)Commands
autoranq config
autoranq config show # show current config (key is masked)autoranq config set apiUrl https://api.autoranq.ai/api/public/v1autoranq config set defaultProject clxprj123def456ghi789autoranq config use test # switch between live and test modeautoranq config clear # delete stored credentialsautoranq projects
autoranq projects listautoranq projects list --json | jq '.[] | .id'autoranq articles
autoranq articles listautoranq articles list --project clxprj... --status PUBLISHED --limit 20autoranq articles get clxart123def456ghi789autoranq articles get clxart123def456ghi789 --json | jq '.content_html'autoranq generations
autoranq generations list --status FAILEDautoranq generations get clxgen123def456ghi789autoranq generations retry clxgen123def456ghi789 --from-step CONTENTautoranq keywords
autoranq keywords search "best CRM for startups" --location nl-NLautoranq keywords search "best CRM for startups" --project clxprj... --jsonGlobal flags
| Flag | Effect |
|---|---|
--json | Output raw JSON instead of a formatted table. Pipe into jq. |
--help | Show help for the current command. Works at every level (autoranq articles get --help). |
--version | Print the CLI version. |
Roadmap (v0.2 — Phase 3.5)
-
OAuth device-flow login —
autoranq loginopens browser, you confirm, no key paste needed. -
autoranq generations tail <id>— SSE-streamed live logs for any generation. Backend SSE endpoint lands here. -
autoranq logs tail— global tail across all projects, with--level ERROR --since 1hfilters. -
autoranq listen --forward-to <url>— local webhook forwarding (thestripe listenpattern). Hits a test webhook subscription endpoint and replays deliveries to your local URL with the correct HMAC signature. -
Homebrew tap + curl installer —
brew install autoranq/tap/autoranqandcurl -fsSL https://docs.autoranq.ai/install.sh | sh.
Troubleshooting
”Not authenticated. Run autoranq login.”
Your config doesn’t have a stored key. Run autoranq login and paste the key from app.autoranq.ai → Settings → API.
”API key was rejected (401 Unauthorized).”
The key was revoked or rotated. Run autoranq login again with the new value.
”Insufficient scope (403 Forbidden).”
Your key has only read scope but you tried a write action (e.g. generations retry). Create a read,write key in the dashboard.
”Rate limit exceeded (429).”
Default limit is 1000 requests/hour per key. Wait or request a higher rate-limit. See Authentication → Rate limits.
Next steps
- Quickstart — same workflow via raw cURL if you skip the CLI
- MCP — conversational alternative via your AI assistant
- Webhooks — what
autoranq listenwill forward in v0.2 - Authentication — manage API keys, scopes, rotation