@aeranko/cli
v0.2.0
Published
CLI for Aeranko Ship. Installs @aeranko/ship and connects your app to Aeranko in one command.
Readme
@aeranko/cli
One-command AI-crawler tracking + AEO wiring for your Next.js or Express app.
npx @aeranko/cli installDetects your framework, opens the pairing page in your browser, installs
@aeranko/ship, writes .env.local, wires up middleware, injects
<Ship /> + aerankoMetadata into your app-router layout, and creates
app/robots.ts, app/sitemap.ts, and an app/llms.txt/route.ts from
Aeranko templates — all idempotent, so re-running never clobbers your
edits.
Commands
| Command | Purpose |
| --------------------------------------------- | ------------------------------------------------- |
| install | End-to-end setup in the current project |
| login | Pair this machine with your Aeranko account |
| doctor | Verify the install is healthy |
| logout | Remove pairing credentials from ~/.aeranko |
| sites list | List sites in your organization |
| sites add <domain> [--name <label>] | Add a new site |
| sites remove <id\|domain> | Remove a site (requires confirmation; --yes to skip) |
| keys list --site=<id> | List API keys for a site (prefix only; no plaintext) |
| keys rotate --site=<id> --key=<keyId> | Mint a replacement key; old key keeps working for 7 days |
| keys revoke --site=<id> --key=<keyId> | Immediately revoke a key |
See aeranko <command> --help for details.
Non-interactive install
For CI or scripted onboarding, pass --yes (or --non-interactive) to
take all install defaults:
aeranko install --yesKey rotation
aeranko keys rotate prints the new plaintext key EXACTLY once. Copy
it immediately — it is never written to disk by the CLI. The old key
remains valid for 7 days so you can update .env.local and your
hosting provider's environment before any traffic starts failing.
