log in to your Atlassian account
1 2Usage: forge login [options]
1 2--verbose enable verbose mode -u, --email <user email> specify the email to use -t, --token <api token> specify the API token to use --non-interactive run the command without input prompts -h, --help display help for command
1 2forge login --user FORGE_EMAIL
Prompts you to enter an API token then logs you in to Forge with the specified credentials.
1 2forge login --email FORGE_EMAIL --token FORGE_API_TOKEN
Logs you in to Forge with the specified credentials.
The forge login
command allows you to authenticate to Atlassian so that you can run Forge commands requiring an authenticated user. When you login, Forge stores your credentials in your computer' local credentials store, sometimes referred to as a keychain.
You can optionally provide your credentials by setting environment variables instead of using forge login
. This method is often used when automating Forge tasks.
Both methods require that you specify an Atlassian API token as well as an email address that you have registered with Atlassian. If you do not yet have an Atlassian API token, go to API Tokens to obtain one.
The --non-interactive
option causes the command to produce an error rather than prompt the user for values, if the --email
or --token
options are not provided on the command line.
It is rarely used in practice, as automation scripts generally use environment variables to set credentials.
forge logout
command referenceRate this page: