CLI commands
Use every AI Glot CLI command for accounts, usage, existing translations, glossaries, language lookup, raw API access and MCP bridging.
Run aiglot help --json for a machine-readable description generated from the installed command tree.
Account and usage
aiglot account
aiglot credits
aiglot usage --from 2026-07-01 --to 2026-07-31 --granularity day
aiglot languagesWithout dates, usage returns the last 30 days. Dates accept YYYY-MM-DD or full ISO timestamps.
Existing translations
aiglot batches list --status completed --limit 50
aiglot batches get <id>
aiglot batches rename <id> "French product catalogue"
aiglot batches archive <id>
aiglot batches archive <id> --undo
aiglot batches download <id> --output ./translated.csvUse --cursor with the next_cursor from the previous list response. download --output - writes the CSV to standard output.
Glossaries
Language pairs use supported tags joined together, such as en-US-fr.
aiglot glossaries list
aiglot glossaries get en-US-fr
aiglot glossaries create en-US-fr --from terms.csv
aiglot glossaries add en-US-fr --term "checkout=commande"
aiglot glossaries add en-US-fr --from additions.json
aiglot glossaries remove en-US-fr --term checkout
aiglot glossaries replace en-US-fr --from complete.csv
aiglot glossaries delete en-US-frInput may be a two-column CSV or a JSON term map. Add and remove are surgical. Replace deletes every term absent from the file; delete removes the complete glossary. Destructive commands ask for confirmation on an interactive terminal and require --force in non-interactive use.
Authentication
aiglot auth login
aiglot auth login --device
aiglot auth login --key "$AIGLOT_API_KEY"
aiglot auth status
aiglot auth logoutLogout forgets the stored credential and revokes it server-side when the credential type supports revocation.
Escape hatches and utilities
aiglot api GET /v1/account
aiglot api PATCH /v1/batches/<id> --data '{"archived":true}'
aiglot mcp
aiglot doctor
aiglot completion zshaiglot api makes a raw authenticated request, so a new REST endpoint is usable before a dedicated command exists. aiglot mcp bridges local stdio-only MCP clients to AI Glot’s remote HTTP server.