nb env auth

Run OAuth login for a selected env. When the env name is omitted, the current env is used.

Usage

nb env auth [name]

Parameters

ParameterTypeDescription
[name]stringEnv name; uses the current env if omitted

Notes

Internally, this command uses the PKCE flow: start a local callback server, open the browser for authorization, exchange the token, and save it to the config file.

Examples

nb env auth
nb env auth prod