Spawnctl environment variables
#
OverviewYou can override spawnctl
defaults by setting environment variables.
SPAWNCTL_API_ENDPOINT
to override default spawn api endpointSPAWNCTL_AUTH_ENDPOINT
to override default spawn authentication endpointSPAWNCTL_ACCESS_TOKEN
to override the current user of spawn and run commands as another user (for CI purposes for example)
Some points about overriding access tokens:
SPAWNCTL_ACCESS_TOKEN
env var will override the interactive token obtained fromspawnctl auth
- The
--accessToken
flag will override both the interactive token obtained fromspawnctl auth
AND theSPAWNCTL_ACCESS_TOKEN
env var
Note: access tokens can be created through the create access-token command.