Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Login with atlassian account from CMD for deploment of forge app

Jagruti Jadhav
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 7, 2024

I am creating a "Hello World" app using Forge. The app is successfully created, but I am facing an issue while trying to deploy the app to Jira Service Management (JSM). When I run the forge deploy command, I receive the following error:

C:\Users\destination_folder\hello_world_app>forge deploy Error: Not logged in. If a local keychain is available, run forge login, otherwise set environment variables before trying again. See https://go.atlassian.com/dac/platform/forge/getting-started/#log-in-with-an-atlassian-api-token for more.

To resolve this, I attempt to log in through the terminal by entering my email and Atlassian API token:

? Enter your email: email-address@gmail.com ? Enter your Atlassian API token: [input is hidden]

However, after pasting the API token (which is quite long), the token is hidden, and I receive the message: "Your response is needed to continue." I am unable to proceed because the token is hidden, and I can't verify if I entered it correctly.

Expected Outcome:

  • I should be able to log in and deploy the app successfully.

Environment:

  • Forge CLI version:  10.12.0
  • JSM trial verstion

how i resolve my issue ,your feedback is needed

1 answer

0 votes
YY Brother
Community Champion
December 7, 2024

Hi @Jagruti Jadhav 

Welcome to our Community.

It should not be related to JSM Free plan. 
It seems you haven't logged in Forge with Atlassian account successfully? You could test it through forge whoami CLI command.

If you're the Jira Product admin role of JSM and use this account to login forge, then you should be able to forge deploy this JSM App.

Maybe you could use postman to test your account & API token? I think it's straight forward to copy and paste your email address & api token.

Hope it helps,

YY Bro

YY Brother
Community Champion
December 7, 2024

BTW, there's a specific developer community. Your question can be raised in that community. https://community.developer.atlassian.com/

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD Trial
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events