Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
assistant
build
containers
custom-scopes
deploy
developer-spaces
environments
install
manifest
module
providers
settings
show
site
skills
storage
variables
version
webtrigger
Last updated Nov 23, 2026

login

Description

log in to your Atlassian account

Usage

1
2
Usage: forge login [options]

Options

1
2
3
4
5
6
--verbose                 enable verbose mode
-u, --email <user email>  specify the email to use
--read-token              read the API token from stdin
--non-interactive         run the command without input prompts
-h, --help                display help for command

Examples

1
2
forge login --email FORGE_EMAIL

Prompts you to enter a scoped API token then logs you in to Forge with the specified credentials.

1
2
cat token.txt | forge login --email FORGE_EMAIL --read-token

Reads the API token from stdin (here, from a file), then logs you in to Forge with the specified credentials. The token isn't passed as an argument, so it doesn't appear in your shell history or the process list.

The -t, --token option was removed in Forge CLI 16. Use --read-token to pipe the token in, or leave it out to be prompted.

Operation

The forge login command allows you to authenticate to Atlassian so that you can run Forge commands requiring an authenticated user. When you log in, Forge stores your credentials in a dedicated file in your user-local application data directory. Access to the directory and file is restricted using operating system permissions.

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 scoped token as well as an email address that you have registered with Atlassian. If you do not yet have an Atlassian API scoped token, see Log in with an Atlassian API scoped token for steps to create one.

In non-interactive mode, the command produces an error rather than prompting for values if --email or a token piped in with --read-token isn't provided.

Troubleshooting

  • If your login does not succeed, verify that you are using the email address associated with your Atlassian account and the correct API token.
  • If you are certain that you are using the correct credentials and you are accessing Forge from behind a corporate firewall, you may need to use a proxy.
  • If the CLI cannot securely create or protect the credentials file, check that your user-local application data directory is writable and supports operating system permission controls.
  • For continuous integration, automation, ephemeral environments, or environments where the credentials file cannot be secured, use environment variables instead.

Rate this page: