Atlassian CLI is currently in Open Beta program. Participants will get early access and help us shape the future of ACLI with valuable feedback. To get started, sign up here
There are two ways to authenticate with Atlassian CLI:
1
acli auth login --token <api_token> --email user@atlassian.com --site mycompany.atlassian.com
1 2acli auth login --web
Accept
, a success message will appear in the browser. You can then close the tab and go back to the terminal to finish the authentication by selecting a site.The CLI command may use the following structure:
<COMMAND>
signifies an Atlassian product, such as Jira (jira)
.
<SUBCOMMAND-1>
indicates a feature or entity associated with the relevant product, such as a work item.
<SUBCOMMAND-2>
describes the action to be executed on the <SUBCOMMAND-1>
, including options like create
, update
, or delete
.
[FLAGS]
represent optional parameters that dictate how the action will be carried out. If omitted, default values will be utilized.
The acli
tool operates using a structured command-line syntax that requires a specific sequence for execution.
acli
, start by invoking the command followed by the primary command <COMMAND>
. You can include optional nested subcommands if needed.[FLAGS]
.1 2$ acli <COMMAND> [<SUBCOMMAND> ...] {MANDATORY FLAGS} [OPTIONAL FLAGS]
$ acli jira workitem create
1 2$ acli jira workitem create -p TEST -i Bug -s 'Bug or feature' # Example output for an interactive workitem creation. ✓ Workitem TEST-123 created: example.atlassian.com/browse/TEST-123 $ acli jira workitem create TEST -i bug --generate-required-fields-json > new_workitem.json # edit the provided template # ... $ acli jira workitem create TEST -i bug < new_workitem.json ✓ Workitem TEST-123 created: example.atlassian.com/browse/TEST-123
$ acli jira workitem assignee
1 2$ acli jira workitem assignee TEST-123 --user unassigned ✓ TEST-123 successfully unassigned $ acli jira workitem assignee TEST-123 --user me ✓ TEST-123 successfully assigned to Example User $ acli jira workitem assignee TEST-123 --user '5b10ac8d82e05b22cc7d4ef5' ✓ TEST-123 successfully assigned to Example User $ acli jira workitem assignee TEST-123 --user 'user@example.com' ✓ TEST-123 successfully assigned to Example User
1 2$ acli jira workitem transition TEST-123 --next done # Example output ✓ Workitem TEST-123 is resolved as 'Done'
Rate this page: