CLI

npm install -g @glytos/cli

Requires 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 login

Each setting resolves in this order, first match wins:

SettingFlagEnvironment variableConfig file
API key--api-keyGLYTOS_API_KEYapiKey
Base URL--base-urlGLYTOS_BASE_URLbaseUrl
Environment--environmentGLYTOS_ENVIRONMENTenvironment

So you can skip glytos login entirely in CI:

GLYTOS_API_KEY=gly_... glytos agents list

Commands

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 list

Add --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.

CLI · Glytos Docs