The Tolmo CLI reads configuration from environment variables, making it easy to use in CI/CD pipelines and scripts without interactive login. Environment variable values take precedence over profile settings for the variables they cover — the rest of the configuration (such as the active organization) still comes from the profile unless you also set the corresponding variable.Documentation Index
Fetch the complete documentation index at: https://docs.tolmo.com/llms.txt
Use this file to discover all available pages before exploring further.
Variable reference
API token used to authenticate requests. When set, Tolmo skips the profile lookup entirely and authenticates directly with this token. Generate a token from your organization settings in the Tolmo dashboard.
Organization slug that identifies which organization to operate against. Required whenever you set
TOLMO_API_TOKEN, since the token alone does not encode an org identity.Backend API base URL. Defaults to the production endpoint when not set. Override this to point the CLI at a staging or self-hosted environment.
Directory where the install script places the CLI binary. Set this before running
curl -fsSL https://tolmo.com/install.sh | sh to control the installation target. The install script defaults to a writable user directory so that sudo is not required.Default profile name used when
--profile is not specified on the command line. Useful for switching the active profile for an entire shell session without passing --profile to every command.CI/CD example
The following GitHub Actions workflow installs Tolmo and runs a security query using environment variables for authentication. No interactive login is needed and no credentials are stored on disk..github/workflows/tolmo.yml
TOLMO_API_TOKEN and TOLMO_ORG_SLUG as encrypted secrets in your GitHub repository or organization settings. The env: block injects them into the step at runtime without exposing them in logs.
Precedence
Environment variables override the active profile for the specific settings they cover. For example, settingTOLMO_API_TOKEN and TOLMO_ORG_SLUG bypasses profile-based authentication entirely, but any setting not covered by an environment variable — such as a custom API URL — still comes from the profile unless you also set TOLMO_API_URL.
The resolution order for each setting is:
- Environment variable — highest priority, always wins when set
- Command-line flag — for flags like
--organd--profile - Active profile — values stored in
~/.tolmo/bytolmo auth login - Built-in default — the production API URL and the
defaultprofile name