Skip to main content

Spawnctl environment variables

Overview#

You can override spawnctl defaults by setting environment variables.

  • SPAWNCTL_API_ENDPOINT to override default spawn api endpoint
  • SPAWNCTL_AUTH_ENDPOINT to override default spawn authentication endpoint
  • SPAWNCTL_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 from spawnctl auth
  • The --accessToken flag will override both the interactive token obtained from spawnctl auth AND the SPAWNCTL_ACCESS_TOKEN env var

Note: access tokens can be created through the create access-token command.