nais auth print-access-token
nais auth print-access-token [flags]
Aliases
nais auth token
Print the last fetched access token
Options
-n,--nais- Print token from login.nais.io instead of gcloud. Should be used if you logged in using “nais login –nais”.
Inherited options
--config- Specify the
PATHto the configuration file. --confirm-login- Ask for confirmation before starting required login flows. Interactive terminals only.
-e,--environment- Select or filter by Nais
ENVIRONMENT, for example dev-gcp or prod-gcp. Overrides the environment configured with nais defaults set environment. --no-colors- Disable colors in the output.
-t,--team- Select the Nais
TEAMthat owns the resources. Overrides the team configured with nais defaults set team. -v,--verbose- Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.