How to do it...

To use the Atlassian CLI tool, we first need to install it by unzipping it to a convenient location on your workstation. Next, update the jira.sh (for Unix) or jira.bat (for Windows) file to add Jira's details.

For example, as shown in the following command, Jira is running on http://localhost:8080, and the administrator credential is admin_user with admin_password as the password:

java -jar 'dirname $0'/lib/jira-cli-3.8.0.jar
-server http://localhost:8080 --user admin_user
--password admin_password "$@"
  1. So, now that we have everything set up, we can run the following command to create a new user in Jira:
./jira.sh --action addUser --userId tester 
-userEmail [email protected] --userFullName
Tester
  1. You should get the following response:
User: tester added with password: 
89u66p3mik5q.  Full name is: Tester.  Email is:
[email protected].
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset