Authenticate
The CLI accepts any integrator.io bearer token: an admin-created service token, or a personal access token (PAT) you create yourself. A PAT inherits your own user permissions. Create either in Resources → API tokens.
The CLI reads the token from, in priority order:
--token <value>CLI flag (one-off override)CELIGO_API_TOKENenvironment variableThe active profile in
~/.celigo/config.jsonError, no token available
The base URL follows the same priority via --base-url, CELIGO_BASE_URL, or the profile's base_url. Default: https://api.integrator.io.
One account
export CELIGO_API_TOKEN="<paste>"
celigo workspace-users list --format tableWorks on macOS, Linux, and Windows. In PowerShell: $env:CELIGO_API_TOKEN = "...".
With a config file
If you'd rather not re-export the env var every shell session:
⚠️ This stores your API token in plaintext on disk.
~/.celigo/config.jsonholds the raw token; keep its0600permissions and never commit it to version control.
celigo config set api_token "<paste>"
celigo config showThis writes ~/.celigo/config.json with mode 0600 on Unix (owner read/write only; Windows uses NTFS ACLs scoped to the current user).
Multiple accounts: profiles
One binary, many accounts — typical setup is one profile per region or per environment.
Full details in Profiles & regions.
Verify authentication
Resolve the active profile's token to the user it authenticates as with profile whoami (calls GET /v1/tokenInfo):
Any authenticated read also works as a smoke test:
A successful response confirms the token is valid. A 401 Unauthorized means the token is missing, expired, revoked, or pointed at the wrong region. A token authenticates only against its own region's base URL.
To see your stored config without making an API call:
Tokens are redacted in all output — first 4 and last 4 characters visible, the rest masked.
Security
Tokens are redacted in all CLI output.
~/.celigo/config.jsonis written with0600permissions. Don'tchmodit wider.--verboseredacts theAuthorizationheader in its HTTP traces.Never commit
~/.celigo/config.jsonor any script with--token <value>hard-coded.For CI, pass a short-lived token via the CI secret store and set
CELIGO_API_TOKENat job time.
Rotating
For profile-based setups, there is no profile edit — either config set against the active profile, or profile delete + profile add to re-enter credentials cleanly.
Last updated
Was this helpful?