nais auth login
nais auth login [flags]
Uses “gcloud auth login –update-adc” by default.
Options
-n,--nais- Login using login.nais.io instead of gcloud.
-y,--yes- Automatically answer yes to all prompts.
Inherited options
--config- Specify the
PATHto the configuration file. -e,--environment- Specify the
ENVIRONMENTto use for this command. Overrides the default environment from configuration. --no-colors- Disable colors in the output.
-t,--team- Specify the
TEAMto use for this command. Overrides the default team from configuration. -v,--verbose- Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.
Examples
# Log in to the Nais platform using gcloud.
$ nais auth login
# Log in to the Nais platform using login.nais.io.
$ nais auth login -n
# Log in to the Nais platform using gcloud and login.nais.io without prompts.
$ nais auth login -y