CLI
npm install -g @glytos/cliRequires Node.js 18 or newer. The command is glytos.
Authentication
Log in once to save your credentials to ~/.glytos/config.json (written owner-only):
glytos loginEach setting resolves in this order, first match wins:
| Setting | Flag | Environment variable | Config file |
|---|---|---|---|
| API key | --api-key | GLYTOS_API_KEY | apiKey |
| Base URL | --base-url | GLYTOS_BASE_URL | baseUrl |
| Environment | --environment | GLYTOS_ENVIRONMENT | environment |
So you can skip glytos login entirely in CI:
GLYTOS_API_KEY=gly_... glytos agents listCommands
glytos agents list
glytos agents create --name "Support bot" --mode prompt
glytos agents publish <uuid>
glytos calls create --to +15551234567 --agent <uuid>
glytos calls list
glytos numbers search --country US --area-code 415
glytos numbers import --e164 +15551234567 --provider twilio --workflow <uuid>
glytos campaigns create --name "July outreach" --agent <uuid> --from +15551234567
glytos campaigns start <uuid>
glytos sessions # inspect conversations (alias: glytos logs)
glytos webhooks listAdd --environment prod (or set GLYTOS_ENVIRONMENT) to run a command against a
specific environment. Remove saved credentials with glytos logout.
The CLI is built on the same public API as the SDKs, so anything you can do in the app you can script from your terminal or a CI job.