Commands Reference
Every command available in the api2cli ecosystem.
CLI Manager: api2cli
| Command | Description |
|---|---|
api2cli create <app> | Generate a new CLI from API docs |
api2cli bundle <app> [--compile] [--all] | Build a CLI from source (--compile for standalone binary) |
api2cli link <app> [--all] | Add a CLI to PATH |
api2cli unlink <app> | Remove from PATH |
api2cli list [--json] | List all installed CLIs |
api2cli tokens [--show] | List all configured tokens (masked) |
api2cli remove <app> [--keep-token] | Remove a CLI entirely |
api2cli doctor | Check system requirements |
api2cli install <source> [--force] | Install a CLI from GitHub (clone, build, link, symlink skill) |
api2cli publish <app> [--github <url>] [--category <cat>] | Publish to registry |
api2cli update <app> | Re-sync with API changes (agent-driven) |
Generated CLIs: <app>-cli
Every generated CLI follows these exact conventions. Replace <app> with your CLI name (e.g. typefully-cli).
Authentication
<app>-cli auth set <token> # Save token (chmod 600)
<app>-cli auth show # Display masked token
<app>-cli auth show --raw # Display full token
<app>-cli auth test # Verify token works
<app>-cli auth remove # Delete tokenResources (CRUD)
<app>-cli <resource> list # GET /resource
<app>-cli <resource> get <id> # GET /resource/:id
<app>-cli <resource> create # POST /resource
<app>-cli <resource> update <id> # PATCH /resource/:id
<app>-cli <resource> delete <id> # DELETE /resource/:idGlobal Flags
| Flag | Description |
|---|---|
--json | JSON output {ok, data, meta} |
--format <text|json|csv|yaml> | Output format |
--verbose | Debug logging |
--no-color | Disable colors |
--no-header | Omit table headers (for piping) |
Help
# Help at every level
<app>-cli --help
<app>-cli <resource> --help
<app>-cli <resource> <action> --help