Skip to content

System environment variables

Variable Effect
NO_COLOR Set to any value to turn colours and symbols off. It wins over everything else.
CLICOLOR_FORCE Set to 1 to turn colours and symbols on even when the output isn’t a terminal, for example in a CI log.
CLICOLOR Set to 0 to turn colours off.
AXLE_BINARY The path to an axle executable for the npm launcher to run instead of the prebuilt one, for example a build from source. The VS Code extension and the JetBrains plugin also use it when their axle setting is empty, before they look for @axle-rs/axle in the repository.
CI When set to anything but an empty value, 0 or false, axle run groups each task’s output and leaves the terminal UI out.
FORCE_COLOR Axle sets it for scripts when its own output is coloured, unless you set it yourself.
AXLE_ROOT, AXLE_TASKS Axle sets them for scripts, to notice a script that starts itself.
AXLE_CHANGED_PACKAGES, AXLE_CHANGED_FILES Axle sets them for the command of axle exec --watch after a change: the changed packages and files, one per line.
AXLE_COMMAND On Windows, Axle sets it for a script whose command contains a ", to pass the command to cmd unchanged.
AXLE_SCM_BASE The branch, tag or commit axle affected, axle why affected and --affected compare with, when --base isn’t given.
AXLE_SCM_HEAD The commit axle affected, axle why affected and --affected compare with instead of the working tree, when --head isn’t given.
GITHUB_BASE_REF Set by GitHub Actions in a pull request. Axle compares with origin/ and this branch when no base is given.
CI_MERGE_REQUEST_TARGET_BRANCH_NAME Set by GitLab CI in a merge request pipeline, and used as GITHUB_BASE_REF is.
BITBUCKET_PR_DESTINATION_BRANCH Set by Bitbucket Pipelines in a pull request, and used as GITHUB_BASE_REF is.
SYSTEM_PULLREQUEST_TARGETBRANCH Set by Azure Pipelines in a pull request, and used as GITHUB_BASE_REF is, without its refs/heads/.
BUILDKITE_PULL_REQUEST_BASE_BRANCH Set by Buildkite in a pull request build, and used as GITHUB_BASE_REF is.
AXLE_CONCURRENCY, AXLE_CONTINUE, AXLE_LOG_ORDER, AXLE_OUTPUT_LOGS, AXLE_ENV_MODE, AXLE_CHECK_INPUTS, AXLE_CHECK_INPUTS_WITH, AXLE_UI, AXLE_LOG_FILE, AXLE_SHARD The run settings when the matching flag isn’t given. They win over [run] in axle.toml.
AXLE_CACHE, AXLE_CACHE_DIR, AXLE_CACHE_MAX_AGE, AXLE_CACHE_MAX_SIZE The cache settings. They win over [cache] in axle.toml, and --cache wins over AXLE_CACHE.
AXLE_REMOTE_CACHE_URL, AXLE_REMOTE_CACHE_TEAM, AXLE_REMOTE_CACHE_TOKEN, AXLE_REMOTE_CACHE_SIGNATURE_KEY, AXLE_REMOTE_CACHE_ENCRYPTION_KEY, AXLE_REMOTE_CACHE_TIMEOUT The remote cache: where it is, the team, the token, the keys and the timeout. They win over [cache.remote] in axle.toml.
AWS_ENDPOINT_URL_S3, AWS_ENDPOINT_URL, AWS_REGION, AWS_DEFAULT_REGION, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN Where an s3:// remote cache is and the credentials for it, as for the AWS tools.
AZURE_STORAGE_KEY, AZURE_STORAGE_SAS_TOKEN, AZURE_STORAGE_ENDPOINT The account key or shared access signature for an azure:// remote cache, and the address of a service other than Azure.
AXLE_SERVER_* Settings of axle-server, the remote cache server, not of axle: see running axle-server.
AXLE_CONFIG_DIR The folder axle login saves tokens in, instead of the user’s configuration folder.
XDG_CONFIG_HOME On Linux, axle login saves tokens in axle inside this folder when it is set to a full path.
OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, and the other OTEL_* exporter variables Send a trace of each run to an OpenTelemetry collector: see OpenTelemetry. Nothing is sent when no endpoint is set.
AXLE_RUN_STATUS, AXLE_RUN_REPORT Axle sets them for after hooks: how the run ended, and the path of the report --summarize wrote.
GITHUB_TOKEN, GITHUB_API_URL The token axle release publish creates GitHub releases with, and the API it sends them to, https://api.github.com when it isn’t set. axle create downloads the templates with the same token, or GH_TOKEN, or the GitHub CLI’s.
AXLE_TEMPLATES A folder holding the templates and their templates.json, which axle create and the template starters of axle generate use instead of downloading them, for trying a template you’re working on.
npm_config_user_agent Set by package managers for what they run. axle create offers the package manager it names first, and records its version in packageManager.
GITLAB_TOKEN, CI_JOB_TOKEN, CI_API_V4_URL The token axle release publish creates GitLab releases with, GITLAB_TOKEN first, then the job token GitLab CI sets, and the API it sends them to, https://gitlab.com/api/v4 when it isn’t set.
SOURCE_DATE_EPOCH Seconds since 1970 that axle release dates changelogs with, instead of the clock.
npm_config_registry, NPM_CONFIG_REGISTRY The npm registry downloaded plugins come from, as with npm itself, npmjs.com when it isn’t set; plugin downloads read only the lowercase name. axle release publish uses either for a package with no publishConfig.registry and no registry for its scope in .npmrc.
NPM_CONFIG_USERCONFIG, npm_config_userconfig The user’s .npmrc, which axle release publish reads registries and tokens from, instead of .npmrc in the home folder.
XDG_CACHE_HOME On Linux, the cache goes in axle inside this folder when it is set to a full path.

Without NO_COLOR, CLICOLOR_FORCE or CLICOLOR, Axle uses colours only when the output goes to a terminal, and never for --json.