is it possible to install a plugin to remote server via atlas-cli (pi)?

Hello

I ussualy install my plugins in my local Jira instance via atlas-cli (pi) commands, and always install the plugin saying "[INFO] Install Plugin: Uploading 'myplugin.jar' to server via UPM: http://localhost:2990/jira"

I've seen here atlas-cli has a parameter named --server and --http-port, but I can't find an example of how to use this parameters to install my plugin in a remote server (instead of localhost), is it possible?

I tryed this but no success:

maven2> pi --server:https://myserver.com --http-port:8443

maven2> pi --server:https://myserver.com:8443

There are errors like this:

Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build project for plugin '--server:myserver.com': POM '--server:myserver.com' not found in repository: Unable to determine the release version

Thanks
Best Regards

1 answer

1 accepted

1 vote
Accepted answer

The --server parameter is meant to be used with atlas-cli command, not with pi command.

In other words: you should first run:

atlas-cli --server https://myserver.com --http-port 8443

and, when the cli console is loaded, install the plugin using the pi command.

EDIT:

Also, if your server doesn't have default admin credentials set as admin/admin you won't be able to upload your plugin using pi command.

Take a look at this topic for more details: https://answers.atlassian.com/questions/55580/while-running-atlas-cli-how-do-we-specify-admin-username-and-password-to-use

Thank you for your comment.

I've tryed

atlas-cli --server:https://myserver.com --http-port:8443

atlas-cli --server:myserver.com --http-port:8443

error: Unable to parse command line options: Unrecognized option: --server:myserver.com

Sorry Leonardo, there's a typo in the command, my bad. There should not be any colon punctuations (":") after "server" and "http-port" parameters.

It should look like this:

atlas-cli --server https://myserver.com --http-port 8443

I'll edit my answer to fix the typos.

Thank you very much

You can't do that unfortunately. I've answered that part already (see the "EDIT" part of my answer).

If you don't have administartor credentials set as admin/admin you won't be able to install plugin using pi command. Take a look at this topic for some more help: https://answers.atlassian.com/questions/55580/while-running-atlas-cli-how-do-we-specify-admin-username-and-password-to-use

sorry, I didn't see your full edit

Thank you

Suggest an answer

Log in or Sign up to answer
Community showcase

Scrum Roles Explained: the Do's and the Don'ts

Hello Community,  Today we are going to talk about the three Scrum Roles. There is the Development Team, the Scrum Master and the Product Owner. In my opinion these three are all really impo...

46 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you