This document covers the various environment variables with special meanings for the Globus CLI.
The CLI supports all of the environment variables which can be used to configure the Globus SDK.
For the most part, CLI users will not need to modify these values. However, for
the particular case of
GLOBUS_SDK_ENVIRONMENT, the CLI has special additional
When the environment is set, as in
GLOBUS_SDK_ENVIRONMENT="preview", the CLI
will isolate any credentials used for login and session management.
globus logout, and other commands will operate in the context
of the "preview" environment, for example.
Certain features of the CLI will be enabled or disabled based on whether or not the terminal session used to run it is detected as interactive or not. For example, additional usage hints may be printed to stderr in an interactive terminal.
However, it is possible for the interctivity adetection to be fooled. For example, an automated tool which emulates a login shell may appear interactive even though it is not.
To control these behaviors, the CLI allows users to explicitly specify whether
or not the shell is interactive. Use
GLOBUS_CLI_INTERACTIVE=0 to set
"not interactive", and
GLOBUS_CLI_INTERACTIVE=1 to set "yes, interactive".
The Globus CLI allows users to login, logout, and perform various other authentication- and authorization-related activities. Until version 3, however, the only way to switch to another Globus Account was to logout and login again.
Starting in version 3, the Globus CLI respects a new variable,
GLOBUS_PROFILE, which names the "profile", or set of credentials, which the
GLOBUS_PROFILE variable is not set, a default profile is used. Any
string value which is assigned to the profile variable acts as an alternative
For example, one could setup the default profile and a profile named
$ globus login ... # login as email@example.com $ export GLOBUS_PROFILE=bar $ globus login ... # login as firstname.lastname@example.org
unset GLOBUS_PROFILE will allow the user to act as
export GLOBUS_PROFILE=bar will allow the user to switch back to
Switching between accounts using
GLOBUS_PROFILE is a way of keeping them
unlinked, meaning that the user has multiple identities which are isolated
into separate accounts. This is not the same as having multiple identities
which are linked into a single Globus Account.