### Switch admin authentication example Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-auth-switch Example usage of the command to switch to a specific organization. ```bash $ acli admin auth switch --org myorgname ``` -------------------------------- ### Restore a Jira project example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-restore Example command to restore a project with the key TEAM. ```bash $ acli jira project restore --key "TEAM" ``` -------------------------------- ### Example: Get available workitem link types Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-link-type Retrieves a list of available workitem link types. ```bash # Get available workitem link types $ acli jira workitem link type ``` -------------------------------- ### acli jira workitem create examples Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-create Examples showing how to create work items using flags, files, or JSON input. ```bash # Create work item by supplying a summary, project name and work item type $ acli jira workitem create --summary "New Task" --project "TEAM" --type "Task" # Create work item from file and supplying all work item details $ acli jira workitem create --from-file "workitem.txt" --project "PROJ" --type "Bug" --assignee "user@atlassian.com" --label "bug,cli" # Generate a JSON file that could be used for workitem creation via --from-json flag $ acli jira workitem create --generate-json # Create work item from a JSON file $ acli jira workitem create --from-json "workitem.json" ``` -------------------------------- ### Archive a Jira project example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-archive Example of archiving a project with the key 'TEAM'. ```bash $ acli jira project archive --key "TEAM" ``` -------------------------------- ### Activate user examples Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-user-activate Examples showing how to activate users using email addresses, account IDs, or a file containing a list of users. ```bash # Activate a user with email or account ID $ acli user activate --email john@example.com,anna@example.com $ acli user activate --id abcd,123 $ acli user activate --from-file listofmails.txt ``` -------------------------------- ### Example: Logout from Rovo Dev Source: https://developer.atlassian.com/cloud/acli/reference/commands/rovodev-auth-logout Example of executing the logout command. ```bash $ acli rovodev auth logout ``` -------------------------------- ### Install bash-completion on Ubuntu Source: https://developer.atlassian.com/cloud/acli/guides/enable-shell-autocomplete Install the bash-completion package on Ubuntu systems. ```bash sudo apt update sudo apt install bash-completion ``` -------------------------------- ### acli jira auth switch examples Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-auth-switch Examples showing how to switch accounts using interactive mode, specific site, specific email, or a combination of both. ```bash # Interactive mode $ acli jira auth switch # Switch to a specific site $ acli jira auth switch --site mysite.atlassian.net # Switch to a specific email $ acli jira auth switch --email user@atlassian.com # Switch to a specific site and email $ acli jira auth switch --site mysite.atlassian.net --email user@atlassian.com ``` -------------------------------- ### Search examples Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-search Examples demonstrating how to search for work items using JQL queries or filter IDs with various output flags. ```bash # Search for work items with JQL query $ acli jira workitem search --jql "project = TEAM" --paginate $ acli jira workitem search --jql "project = TEAM" --count $ acli jira workitem search --jql "project = TEAM" --fields "key,summary,assignee" --csv $ acli jira workitem search --jql "project = TEAM" --limit 50 --json # Search for work items with filter ID $ acli jira workitem search --filter 10001 --web ``` -------------------------------- ### Install acli with Homebrew Source: https://developer.atlassian.com/cloud/acli/guides/install-macos Use Homebrew to tap the Atlassian repository and install the acli package. ```bash brew tap atlassian/homebrew-acli brew install acli ``` -------------------------------- ### acli admin auth logout example Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-auth-logout Example of how to execute the logout command. ```bash $ acli admin auth logout ``` -------------------------------- ### Jira auth status example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-auth-status An example of how to execute the command to check Jira authentication status. ```bash $ acli jira auth status ``` -------------------------------- ### acli rovodev auth login examples Source: https://developer.atlassian.com/cloud/acli/reference/commands/rovodev-auth-login Examples showing interactive mode, standard input token authentication, and Windows PowerShell usage. ```bash # Interactive mode $ acli rovodev auth login # Authenticate with your email and Rovo Dev scoped API token $ acli rovodev auth login --email "user@atlassian.com" --token < token.txt # Authenticate with your email and Rovo Dev scoped API token on Windows $ Get-Content token.txt | .\acli.exe rovodev auth login --email "user@atlassian.com" --token ``` -------------------------------- ### List work item links example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-link-list An example of how to list links for a specific work item using the --key flag. ```bash # List work item links $ acli jira workitem link list --key TEST-123 ``` -------------------------------- ### Install dependencies on Debian-based systems Source: https://developer.atlassian.com/cloud/acli/guides/install-linux Install the required wget and gnupg2 packages before setting up the repository. ```bash sudo apt-get install -y wget gnupg2 ``` -------------------------------- ### Install ACLI binary locally Source: https://developer.atlassian.com/cloud/acli/guides/install-linux Install the binary to the user's local bin directory if root access is unavailable. ```bash mkdir -p ~/.local/bin mv ./acli ~/.local/bin/acli # and then append (or prepend) ~/.local/bin to $PATH ``` -------------------------------- ### Verify CLI installation Source: https://developer.atlassian.com/cloud/acli/guides/install-windows Executes the help command to verify that the downloaded binary is functional. ```shell .\acli.exe --help ``` -------------------------------- ### acli feedback example Source: https://developer.atlassian.com/cloud/acli/reference/commands/feedback Example of submitting feedback with a summary, details, and email address. ```bash $ acli feedback --summary "I have a problem" --details "I have a problem with the acli" --email "user@atlassian.com" ``` -------------------------------- ### Jira auth logout example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-auth-logout Example usage of the logout command. ```bash $ acli jira auth logout ``` -------------------------------- ### Setup APT repository for ACLI Source: https://developer.atlassian.com/cloud/acli/guides/install-linux Configure the GPG key and add the official ACLI repository to your APT sources. ```bash sudo mkdir -p -m 755 /etc/apt/keyrings wget -nv -O- https://acli.atlassian.com/gpg/public-key.asc | sudo gpg --dearmor -o /etc/apt/keyrings/acli-archive-keyring.gpg sudo chmod go+r /etc/apt/keyrings/acli-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/acli-archive-keyring.gpg] https://acli.atlassian.com/linux/deb stable main" | sudo tee /etc/apt/sources.list.d/acli.list > /dev/null ``` -------------------------------- ### Fetch project details by key Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-view Examples of fetching project details using the project key, including an option for JSON output. ```bash # Fetches a project details with given key $ acli jira project view --key "TEAM" $ acli jira project view --key "TEAM" --json ``` -------------------------------- ### Install bash-completion on macOS Source: https://developer.atlassian.com/cloud/acli/guides/enable-shell-autocomplete Install and configure bash-completion on macOS using Homebrew. ```bash brew install bash-completion@2 ``` ```bash if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi ``` ```bash source ~/.bash_profile # or source ~/.bashrc ``` -------------------------------- ### Run acli globally Source: https://developer.atlassian.com/cloud/acli/guides/install-macos Verify global installation by running the help command. ```bash acli --help ``` -------------------------------- ### Run acli from local directory Source: https://developer.atlassian.com/cloud/acli/guides/install-macos Verify the installation by running the help command from the current directory. ```bash ./acli --help ``` -------------------------------- ### Install ACLI on Red Hat-based systems Source: https://developer.atlassian.com/cloud/acli/guides/install-linux Install the acli package using yum. ```bash sudo yum install -y acli ``` -------------------------------- ### Create a text field Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-field-create Example of creating a standard text field. ```bash $ acli jira field create --name "Customer Name" --type "com.atlassian.jira.plugin.system.customfieldtypes:textfield" ``` -------------------------------- ### List work items in a sprint example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-sprint-list-workitems Example command to list work items for a specific sprint ID and board ID. ```bash # List work items in sprint $ acli jira sprint list-workitems --sprint 1 --board 6 ``` -------------------------------- ### Examples of listing Jira board sprints Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-board-list-sprints Various examples showing how to list sprints by board ID, apply state filters, and format the output as JSON or CSV. ```bash # Get all sprints $ acli jira board list-sprints --id 123 # Get all sprints with state filters $ acli jira board list-sprints --id 123 --state active,closed # Get all sprints and output in JSON format $ acli jira board list-sprints --id 123 --json # Get all sprints and output in CSV format $ acli jira board list-sprints --id 123 --csv ``` -------------------------------- ### Install dependencies on Red Hat-based systems Source: https://developer.atlassian.com/cloud/acli/guides/install-linux Install the yum-utils package to manage repositories. ```bash sudo yum install -y yum-utils ``` -------------------------------- ### Example of acli rovodev auth status Source: https://developer.atlassian.com/cloud/acli/reference/commands/rovodev-auth-status A simple example of executing the command to check the status. ```bash $ acli rovodev auth status ``` -------------------------------- ### Install ACLI on Debian-based systems Source: https://developer.atlassian.com/cloud/acli/guides/install-linux Update the package list and install the acli package. ```bash sudo apt update sudo apt install -y acli ``` -------------------------------- ### Install ACLI binary globally Source: https://developer.atlassian.com/cloud/acli/guides/install-linux Move the binary to /usr/local/bin with root access. ```bash sudo install -o root -g root -m 0755 acli /usr/local/bin/acli ``` -------------------------------- ### acli jira filter search examples Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-filter-search Examples showing how to search for filters, including options for pagination, CSV/JSON output, and limiting the number of results. ```bash $ acli jira filter search $ acli jira filter search --paginate --csv $ acli jira filter search --limit 5 --json ``` -------------------------------- ### List work item comments example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-comment-list Example command to list comments for the work item with key TEST-123. ```bash # List work item comments $ acli jira workitem comment list --key TEST-123 ``` -------------------------------- ### Deactivate users examples Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-user-deactivate Examples showing how to deactivate users using email addresses, account IDs, or a file containing a list of users. ```bash # Deactivate a user with email or account ID $ acli user deactivate --email john@example.com,anna@example.com $ acli user deactivate --id abcd123 $ acli user deactivate --from-file listofmails.txt ``` -------------------------------- ### Example of acli admin auth status Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-auth-status An example of executing the command to check the authentication status. ```bash $ acli admin auth status ``` -------------------------------- ### Authenticate using API key Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-auth-login Examples of how to authenticate by providing an email and piping an API token via standard input. ```bash # Authenticate using API key $ acli admin auth login --email admin@atlassian.com --token < token.txt OR $ echo | acli admin auth login --email admin@atlassian.com --token ``` -------------------------------- ### List work item attachment example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-attachment-list Example command to list attachments for a specific work item identified by its key. ```bash # List work item attachment $ acli jira workitem attachment list --key TEST-123 ``` -------------------------------- ### List my filters Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-filter-list Example command to list filters owned by the current user. ```bash $ acli jira filter list --my ``` -------------------------------- ### Create a field with description Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-field-create Example of creating a field that includes a description. ```bash $ acli jira field create --name "Release Date" --type "com.atlassian.jira.plugin.system.customfieldtypes:datepicker" --description "The planned release date for this feature" ``` -------------------------------- ### Get Jira-specific help Source: https://developer.atlassian.com/cloud/acli/guides/troubleshooting-guide Command to obtain help specific to Jira. ```bash $ acli jira --help ``` -------------------------------- ### Add a filter as favourite example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-filter-add-favourite Example command to add a filter with ID 10001 as a favourite. ```bash # Add a filter as favourite $ acli jira filter add-favourite --filterId 10001 ``` -------------------------------- ### Update project key and name Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-update Example of updating a project's key and name using the --project-key, --key, and --name flags. ```bash $ acli jira project update --project-key "TEAM1" --key "TEAM" --name "New Name" ``` -------------------------------- ### acli jira dashboard search examples Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-dashboard-search Examples of searching for dashboards, including using pagination, CSV/JSON output, and filtering by owner and name. ```bash # Searches for the Jira dashboards $ acli jira dashboard search $ acli jira dashboard search --paginate --csv $ acli jira dashboard search --limit 5 --json # Filter dashboards by owner and project name $ acli jira dashboard search --owner user@atlassian.com --name 'report' ``` -------------------------------- ### Setup YUM repository for ACLI Source: https://developer.atlassian.com/cloud/acli/guides/install-linux Add the official ACLI repository using yum-config-manager. ```bash sudo yum-config-manager --add-repo https://acli.atlassian.com/linux/rpm/acli.repo ``` -------------------------------- ### Get general CLI help Source: https://developer.atlassian.com/cloud/acli/guides/troubleshooting-guide Command to obtain help at the overall command-line level. ```bash $ acli help [path to the command] ``` -------------------------------- ### Verify Atlassian CLI version on Windows Source: https://developer.atlassian.com/cloud/acli/guides/update-install-guide Run the acli executable to verify the installation after replacing the binary. ```bash .\acli --version ``` -------------------------------- ### Change filter owner example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-filter-change-owner Example command to change the owner of multiple filters identified by their IDs. ```bash # Change the owner of the provided filters $ acli jira filter change-owner --id 123,1234,12345 --owner anna@pandora.com ``` -------------------------------- ### Generate an example JSON input structure Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-create-bulk Outputs a template JSON structure that can be used for bulk creation. ```bash $ acli jira workitem create-bulk --generate-json ``` -------------------------------- ### List my favourite filters Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-filter-list Example command to list filters marked as favourites by the current user. ```bash $ acli jira filter list --favourite ``` -------------------------------- ### Clone work items by key Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-clone Example of cloning specific work items using their keys and specifying a target project. ```bash # Clone work item with work item keys $ acli jira workitem clone --key "KEY-1,KEY-2" --to-project "TEAM" ``` -------------------------------- ### Delete managed accounts examples Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-user-delete Examples showing how to delete a managed account using an email address, an account ID, or a file containing a list of accounts. ```bash # Delete a managed account from Atlassian $ acli admin user delete --email abc@atlassian.com $ acli admin user delete --id 721217379117310973 $ acli admin user delete --from-file listofmails.txt ``` -------------------------------- ### Delete a field example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-field-delete Example command to delete a specific custom field using its ID. ```bash # Delete a field $ acli jira field delete --id customfield_12345 ``` -------------------------------- ### Remove watcher from issue example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-watcher-remove An example showing how to remove a watcher from a specific issue using the --key and --user flags. ```bash $ acli jira workitem watcher remove --key TEST-1 --user 5b10ac8d82e05b22cc7d4ef5 ``` -------------------------------- ### Create a select field with searcher Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-field-create Example of creating a select field with a specified searcher key. ```bash $ acli jira field create --name "Priority Level" --type "com.atlassian.jira.plugin.system.customfieldtypes:select" --searcherKey "com.atlassian.jira.plugin.system.customfieldtypes:multiselectsearcher" ``` -------------------------------- ### Get command-specific help Source: https://developer.atlassian.com/cloud/acli/guides/troubleshooting-guide Command to obtain help for a specific command, such as creating a workitem. ```bash $ acli jira workitem create --help ``` -------------------------------- ### Verify acli version Source: https://developer.atlassian.com/cloud/acli/guides/install-macos Check the installed version of acli to ensure it is up-to-date. ```bash acli --version ``` -------------------------------- ### Restore a field from the trash Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-field-cancel-delete Example showing how to restore a specific custom field using its ID. ```bash # Restores the field from the trash $ acli jira field cancel-delete --id customfield_12345 ``` -------------------------------- ### Delete a Jira project by key Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-delete Example of deleting a project with the key 'TEAM'. ```bash $ acli jira project delete --key "TEAM" ``` -------------------------------- ### Create a project from an existing project Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-create Creates a new project by cloning settings from an existing project. ```bash $ acli jira project create --from-project "TEAM" --key "NEWTEAM" --name "New Project" ``` -------------------------------- ### Configure CI pipeline for Atlassian CLI Source: https://developer.atlassian.com/cloud/acli/guides/use-acli-on-ci Add this configuration to your CI pipeline file to execute the installation script. ```yaml image: atlassian/default-image:3 pipelines: default: - step: name: 'Install Atlassian CLI' script: - bash examples/install-acli.sh ``` -------------------------------- ### acli jira filter search by owner and name Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-filter-search Example showing how to filter search results by a specific owner email and a partial name match. ```bash $ acli jira filter search --owner user@atlassian.com --name 'report' ``` -------------------------------- ### Create a project with optional fields Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-create Creates a new project by cloning an existing one while overriding specific fields like description, URL, and lead email. ```bash $ acli jira project create --from-project "TEAM" --key "NEWTEAM" --name "New Project" --description "New project description" --url "https://example.com" --lead-email "user@atlassian.com" ``` -------------------------------- ### acli jira project create synopsis Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-create The basic syntax for the project creation command. ```bash acli jira project create [flags] ``` -------------------------------- ### Get project roles for visibility Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-comment-visibility Retrieves project roles for comment visibility in a specific project. ```bash $ acli jira workitem comment visibility --role --project PROJ-123 ``` -------------------------------- ### Delete work item attachment example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-attachment-delete Example command to delete a work item attachment by its ID. ```bash # Delete work item attachment $ acli jira workitem attachment delete --id 12345 ``` -------------------------------- ### Delete workitem comments example Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-comment-delete An example showing how to delete a comment with a specific issue key and comment ID. ```bash # Delete workitem comments $ acli jira workitem comment delete --issue TEST-1 --id 10023 ``` -------------------------------- ### Create a project from a JSON file Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-create Creates a new project using details provided in a JSON file. ```bash $ acli jira project create --from-json "project.json" ``` -------------------------------- ### List all projects Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-list Fetches all projects using pagination. ```bash $ acli jira project list --paginate ``` -------------------------------- ### acli jira workitem transition synopsis Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-transition The basic syntax for the transition command. ```bash acli jira workitem transition [flags] ``` -------------------------------- ### List projects with limit and JSON output Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-list Fetches 50 projects and formats the output as JSON. ```bash $ acli jira project list --limit 50 --json ``` -------------------------------- ### Create install-acli.sh script Source: https://developer.atlassian.com/cloud/acli/guides/use-acli-on-ci This script downloads the latest Atlassian CLI binary for Linux and makes it executable. ```bash #!/bin/bash set -euo pipefail # Download the latest release. curl -LO "https://acli.atlassian.com/linux/latest/acli_linux_amd64/acli" # Make the acli binary executable. chmod +x ./acli # You can now use acli from this directory. ./acli --help ``` -------------------------------- ### Usage syntax for acli jira project list Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-list The basic command structure for listing Jira projects. ```bash acli jira project list [flags] ``` -------------------------------- ### Transition work item with work item keys Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-transition Transition specific work items by providing their keys. ```bash $ acli jira workitem transition --key "KEY-1,KEY-2" --status "Done" ``` -------------------------------- ### acli jira project create options Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-create List of available flags for the project creation command. ```text -d, --description string Supply a description for the project -j, --from-json string Read project details from a JSON file -f, --from-project string Create a project from an existing project. Only company managed projects can be used to clone a new project. -g, --generate-json Generates a JSON file that could be used for project creation -h, --help Show help for command -k, --key string Key of the project to be created -l, --lead-email string Lead account user email (If not provided, the lead will be same as that of parent project) -n, --name string Name of the project to be created -u, --url string URL of the project ``` -------------------------------- ### acli jira workitem transition options Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-transition Available flags for the transition command. ```bash --filter string Filter ID of work items to be transitioned -h, --help Show help for command --ignore-errors Ignore the errors and continue --jql string JQL query for work items to be transitioned --json Generate a JSON output -k, --key string A list of work item keys to be transitioned -s, --status string Status to transition the work item -y, --yes Confirm transition without prompting ``` -------------------------------- ### Authenticate with email, site, and API token Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-auth-login Authenticate by providing the site URL, email, and reading the API token from a file or standard input. ```bash $ acli jira auth login --site "mysite.atlassian.net" --email "user@atlassian.com" --token < token.txt OR $ echo | acli jira auth login --site "mysite.atlassian.net" --email "user@atlassian.com" --token ``` -------------------------------- ### Download ACLI binary for ARM64 Source: https://developer.atlassian.com/cloud/acli/guides/install-linux Download the latest ACLI binary for ARM64 architecture. ```bash curl -LO "https://acli.atlassian.com/linux/latest/acli_linux_arm64/acli" ``` -------------------------------- ### Move acli to system PATH Source: https://developer.atlassian.com/cloud/acli/guides/install-macos Move the binary to /usr/local/bin and set ownership to root, requiring admin access. ```bash sudo mv ./acli /usr/local/bin/acli sudo chown root: /usr/local/bin/acli ``` -------------------------------- ### Download Atlassian CLI for Windows ARM64 Source: https://developer.atlassian.com/cloud/acli/guides/update-install-guide Use curl to download the latest acli.exe binary for ARM64 Windows systems. ```bash curl -LO "https://acli.atlassian.com/windows/latest/acli_windows_arm64/acli.exe" ``` -------------------------------- ### View unexpected error trace ID Source: https://developer.atlassian.com/cloud/acli/guides/troubleshooting-guide Example of the trace ID output provided when an unexpected backend error occurs. ```text unexpected error, trace id: XXXXXXXX ``` -------------------------------- ### acli jira workitem comment visibility Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-comment-visibility Get visibility options for work item comments. Use --role to list project roles (requires --project) or --group to list available groups. ```APIDOC ## acli jira workitem comment visibility ### Description Get visibility options for work item comments. ### Command acli jira workitem comment visibility [flags] ### Options - **--group** (boolean) - Optional - List available groups for comment visibility - **-h, --help** (boolean) - Optional - Show help for command - **--project** (string) - Required when using --role - Project key to get roles for - **--role** (boolean) - Optional - Get project roles for comment visibility ### Examples # Get project roles for visibility $ acli jira workitem comment visibility --role --project PROJ-123 # List available groups for visibility $ acli jira workitem comment visibility --group ``` -------------------------------- ### View Jira project command usage Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-view Basic syntax for the jira project view command. ```bash acli jira project view [flags] ``` -------------------------------- ### Download ACLI binary for x86-64 Source: https://developer.atlassian.com/cloud/acli/guides/install-linux Download the latest ACLI binary for x86-64 architecture. ```bash curl -LO "https://acli.atlassian.com/linux/latest/acli_linux_amd64/acli" ``` -------------------------------- ### Command options for jira workitem create-bulk Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-create-bulk Available flags for configuring the bulk creation process. ```text --from-csv string Read issues from a CSV file where columns represent issue fields (summary, projectKey, issueType, description, label, parentIssueId, assignee) --from-json string Read issues from a JSON file containing an array of issue objects --generate-json Prints an example JSON structure to be used with --from-json -h, --help Show help for command --ignore-errors Ignore errors and continue with the next issue --yes Confirm bulk creation without prompting ``` -------------------------------- ### Download acli binary for Intel Source: https://developer.atlassian.com/cloud/acli/guides/install-macos Download the latest acli binary for Intel-based macOS systems. ```bash curl -LO "https://acli.atlassian.com/darwin/latest/acli_darwin_amd64/acli" ``` -------------------------------- ### acli jira workitem create synopsis Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-create The basic syntax for the jira workitem create command. ```bash acli jira workitem create [flags] ``` -------------------------------- ### Download Atlassian CLI for Windows x86-64 Source: https://developer.atlassian.com/cloud/acli/guides/update-install-guide Use curl to download the latest acli.exe binary for x86-64 Windows systems. ```bash curl -LO "https://acli.atlassian.com/windows/latest/acli_windows_amd64/acli.exe" ``` -------------------------------- ### Command options Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-field-create List of available flags for the jira field create command. ```text --description string Description of the custom field -h, --help Show help for command --json Output in JSON format --name string Name of the custom field --searcherKey string Searcher key for the custom field --type string Type of the custom field ``` -------------------------------- ### Synopsis for acli jira workitem comment create Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-comment-create The basic syntax for executing the comment creation command. ```bash acli jira workitem comment create [flags] ``` -------------------------------- ### acli jira workitem create-bulk command usage Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-create-bulk Basic syntax for the bulk creation command. ```bash acli jira workitem create-bulk [flags] ``` -------------------------------- ### Make acli binary executable Source: https://developer.atlassian.com/cloud/acli/guides/install-macos Change the permissions of the downloaded binary to make it executable. ```bash chmod +x ./acli ``` -------------------------------- ### Basic command usage Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-search The base command structure for searching Jira work items. ```bash acli jira workitem search [flags] ``` -------------------------------- ### acli admin user activate command syntax Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-user-activate The basic command structure for activating a user. ```bash acli admin user activate [flags] ``` -------------------------------- ### List recently viewed projects Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-list Lists up to 20 projects recently viewed by the user. ```bash $ acli jira project list --recent ``` -------------------------------- ### Generate a JSON template for project creation Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-create Generates a JSON file structure that can be used for future project creation. ```bash $ acli jira project create --generate-json ``` -------------------------------- ### Download acli binary for Apple Silicon Source: https://developer.atlassian.com/cloud/acli/guides/install-macos Download the latest acli binary for Apple Silicon-based macOS systems. ```bash curl -LO "https://acli.atlassian.com/darwin/latest/acli_darwin_arm64/acli" ``` -------------------------------- ### Authenticate Jira with API token from file Source: https://developer.atlassian.com/cloud/acli/guides/how-to-get-started Authenticate with Jira by reading the API token from a file. ```shell acli jira auth login --site "mysite.atlassian.net" --email "user@atlassian.com" --token < token.txt ``` -------------------------------- ### Download ARM64 CLI binary Source: https://developer.atlassian.com/cloud/acli/guides/install-windows Downloads the latest ARM64 version of the CLI binary to the current directory using PowerShell. ```shell Invoke-WebRequest -Uri https://acli.atlassian.com/windows/latest/acli_windows_arm64/acli.exe -OutFile acli.exe ``` -------------------------------- ### Submit feedback via CLI Source: https://developer.atlassian.com/cloud/acli/guides/troubleshooting-guide Command to submit feedback, including a summary, email address, and details. ```bash $ acli feedback -s "Summary of the feedback" -e anna@pandora.com -d "More details" ``` -------------------------------- ### View work item in a web browser Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-view Open the specified work item directly in the default web browser. ```bash $ acli jira workitem view KEY-123 --web ``` -------------------------------- ### Download x86-64 CLI binary Source: https://developer.atlassian.com/cloud/acli/guides/install-windows Downloads the latest x86-64 version of the CLI binary to the current directory using PowerShell. ```shell Invoke-WebRequest -Uri https://acli.atlassian.com/windows/latest/acli_windows_amd64/acli.exe -OutFile acli.exe ``` -------------------------------- ### Authenticate on Windows using PowerShell Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-auth-login Use Get-Content to pipe the API token into the acli.exe executable on Windows. ```powershell $ Get-Content token.txt | .\acli.exe jira auth login --site "mysite.atlassian.net" --email "user@atlassian.com" --token ``` -------------------------------- ### Command syntax Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-link-list The basic syntax for executing the jira workitem link list command. ```bash acli jira workitem link list [flags] ``` -------------------------------- ### Transition work item with JQL query Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-transition Transition work items that match a specific JQL query. ```bash $ acli jira workitem transition --jql "project = TEAM" --status "In Progress" ``` -------------------------------- ### acli jira auth login command syntax Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-auth-login The basic syntax for the authentication command. ```bash acli jira auth login [flags] ``` -------------------------------- ### Enable Zsh completion for new sessions on Linux Source: https://developer.atlassian.com/cloud/acli/guides/enable-shell-autocomplete Configure Zsh completion for new sessions on Linux systems. ```bash acli completion zsh > "${fpath[1]}/_acli" ``` -------------------------------- ### Usage syntax for acli jira sprint list-workitems Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-sprint-list-workitems The basic command structure for listing work items in a sprint. ```bash acli jira sprint list-workitems [flags] ``` -------------------------------- ### Enable Fish completion Source: https://developer.atlassian.com/cloud/acli/guides/enable-shell-autocomplete Commands to enable Fish completion for current and new sessions. ```fish acli completion fish | source ``` ```fish acli completion fish > ~/.config/fish/completions/acli.fish ``` -------------------------------- ### Enable Bash completion for new sessions on Linux Source: https://developer.atlassian.com/cloud/acli/guides/enable-shell-autocomplete Configure Bash completion for new sessions on Linux systems. ```bash acli completion bash > /etc/bash_completion.d/acli ``` -------------------------------- ### acli rovodev auth login command syntax Source: https://developer.atlassian.com/cloud/acli/reference/commands/rovodev-auth-login The basic command structure for authenticating with Rovo Dev. ```bash acli rovodev auth login [flags] ``` -------------------------------- ### Command usage syntax Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-attachment-list The basic syntax for executing the jira workitem attachment list command. ```bash acli jira workitem attachment list [flags] ``` -------------------------------- ### Command usage syntax Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-attachment-delete The basic syntax for executing the delete command. ```bash acli jira workitem attachment delete [flags] ``` -------------------------------- ### Archive a Jira project options Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-archive Available flags for the archive command, including help and the required project key. ```bash -h, --help Show help for command --key string Key of the project to be archived ``` -------------------------------- ### acli jira workitem create options Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-create Available flags for the jira workitem create command. ```text -a, --assignee string Assign people by their email or account ID. Use '@me' to self-assign, 'default' to assign to the project's default assignee -d, --description string Supply a description in plain text or Atlassian Document Format (ADF) --description-file string Read the description in plain text or Atlassian Document Format (ADF) from the file -e, --editor Open a text editor to specify the summary and description -f, --from-file string Read the work item summary, description from a file --from-json string Read the work item definition from a JSON file --generate-json Generates a JSON file that could be used for work item creation -h, --help Show help for command --json Output in JSON -l, --label strings Add labels by name and comma-separated --parent string Parent work item ID -p, --project string Add the work item to projects by project key -s, --summary string Supply a summary for the work item -t, --type string Defines the work item type of the created work item. For example, Epic, Story, Task, Bug ``` -------------------------------- ### Redirect output to a file with > Source: https://developer.atlassian.com/cloud/acli/guides/manage-command-chaining-and-output-redirection Use the > operator to save the command output to a specified file. ```bash ./acli jira workitem search --jql 'project = TEST' --limit 10 --csv > output.csv ``` -------------------------------- ### Switch admin authentication command Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-auth-switch Basic syntax for the admin auth switch command. ```bash acli admin auth switch [flags] ``` -------------------------------- ### acli jira auth switch command usage Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-auth-switch Basic syntax for the jira auth switch command. ```bash acli jira auth switch [flags] ``` -------------------------------- ### Help option for acli admin auth status Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-auth-status Displays the help information for the command. ```bash -h, --help Show help for command ``` -------------------------------- ### Archive a Jira project command syntax Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-archive The basic syntax for the archive command. ```bash acli jira project archive [flags] ``` -------------------------------- ### Activate Admin User Source: https://developer.atlassian.com/cloud/acli/guides/how-to-get-started Commands to activate users via email, account ID, or a file list. ```bash $ acli admin user activate ``` ```bash # Activate a user with email or account ID $ acli user activate --email john@example.com,anna@example.com $ acli user activate --id abcd,123 $ acli user activate --from-file listofmails.txt ``` -------------------------------- ### acli admin auth login command syntax Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-auth-login The basic syntax for the admin authentication command. ```bash acli admin auth login [flags] ``` -------------------------------- ### Upgrade Atlassian CLI on Debian-based Linux Source: https://developer.atlassian.com/cloud/acli/guides/update-install-guide Update the package list and upgrade the acli package using apt. ```bash sudo apt update ``` ```bash sudo apt upgrade -y acli ``` ```bash acli --version ``` -------------------------------- ### acli jira dashboard search synopsis Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-dashboard-search The basic syntax for executing the jira dashboard search command. ```bash acli jira dashboard search [flags] ``` -------------------------------- ### Jira project view options Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-view Available flags for the jira project view command. ```text -h, --help Show help for command -j, --json Output in JSON format --key string Key of the project to be fetched ``` -------------------------------- ### acli admin user help options Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-user Displays the help information and available options for the acli admin user command. ```text 1 -h, --help Show help for command 2 ``` -------------------------------- ### admin auth login command options Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-auth-login Available flags for the admin authentication command, including required email and token input. ```text -e, --email string Admin email is required for authentication -h, --help Show help for command --token Read API key from standard input (create one at: https://admin.atlassian.com -> settings -> API Keys) ``` -------------------------------- ### Authenticate using web browser Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-auth-login Use the --web flag to authenticate via a web browser using OAuth. ```bash $ acli jira auth login --web ``` -------------------------------- ### acli jira workitem clone command options Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-clone List of available flags for the clone command. ```text --filter string Filter id of work items to be cloned -f, --from-file string Reads the work item to be cloned from the file. The file may contain work item ids, work item keys separated by commas, white spaces, or new lines -h, --help Show help for command --ignore-errors Ignore the errors and continue --jql string JQL query for work items to clone --json Generate a JSON output -k, --key string A list of work item keys to be cloned --to-project string Target Jira project for cloning --to-site string Target site for cloning the work items. The default is currently an authenticated site -y, --yes Confirm cloning without prompting ``` -------------------------------- ### Configure PowerShell profile on Windows Source: https://developer.atlassian.com/cloud/acli/guides/enable-shell-autocomplete Steps to check, create, and edit the PowerShell profile on Windows. ```powershell Test-Path $PROFILE ``` ```powershell New-Item -Path $PROFILE -ItemType File -Force ``` ```powershell notepad $PROFILE ``` ```powershell acli completion powershell | Out-String | Invoke-Expression ``` -------------------------------- ### Command usage syntax Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-comment-visibility The basic syntax for executing the jira workitem comment visibility command. ```bash acli jira workitem comment visibility [flags] ``` -------------------------------- ### acli jira workitem clone command usage Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-clone Basic syntax for the clone command. ```bash acli jira workitem clone [flags] ``` -------------------------------- ### List available groups for visibility Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-comment-visibility Lists all available groups that can be used for comment visibility. ```bash $ acli jira workitem comment visibility --group ``` -------------------------------- ### Basic usage of acli jira board list-sprints Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-board-list-sprints The base command structure for listing sprints on a Jira board. ```bash acli jira board list-sprints [flags] ``` -------------------------------- ### Admin auth switch options Source: https://developer.atlassian.com/cloud/acli/reference/commands/admin-auth-switch Available flags for the admin auth switch command. ```text -h, --help Show help for command -o, --org string Org of the admin account from which to switch ``` -------------------------------- ### View work item by reading from a JSON file Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-view Retrieve work item information and output the result in JSON format. ```bash $ acli jira workitem view KEY-123 --json ``` -------------------------------- ### acli jira board search command usage Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-board-search Basic syntax for executing the jira board search command. ```bash acli jira board search [flags] ``` -------------------------------- ### Restore a Jira project command syntax Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-restore Basic syntax for the jira project restore command. ```bash acli jira project restore [flags] ``` -------------------------------- ### Update project from JSON file Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-update Updates a project using details provided in a JSON file. ```bash $ acli jira project update --project-key "TEAM1" --from-json "project.json" ``` -------------------------------- ### acli jira field create command usage Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-field-create Basic syntax for the jira field create command. ```bash acli jira field create [flags] ``` -------------------------------- ### Command usage syntax Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-watcher-remove The basic syntax for executing the remove watcher command. ```bash acli jira workitem watcher remove [flags] ``` -------------------------------- ### Run Rovo Dev in interactive mode Source: https://developer.atlassian.com/cloud/acli/guides/how-to-get-started Launch Rovo Dev in interactive mode after authentication. ```shell acli rovodev run ``` -------------------------------- ### View work item with work item keys Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-view Retrieve information for a specific work item using its key. ```bash $ acli jira workitem view KEY-123 ``` -------------------------------- ### acli jira workitem assign synopsis Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-assign The basic syntax for the assign command. ```bash acli jira workitem assign [flags] ``` -------------------------------- ### View work item command syntax Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-view The basic syntax for the jira workitem view command. ```bash acli jira workitem view [key] [flags] ``` -------------------------------- ### Enable Zsh completion for new sessions on macOS Source: https://developer.atlassian.com/cloud/acli/guides/enable-shell-autocomplete Configure Zsh completion for new sessions on macOS systems. ```bash acli completion zsh > $(brew --prefix)/share/zsh/site-functions/_acli ``` -------------------------------- ### acli rovodev auth login options Source: https://developer.atlassian.com/cloud/acli/reference/commands/rovodev-auth-login Available flags for the authentication command. ```text -e, --email string User email is required for authentication -h, --help Show help for command --token Read token from standard input ``` -------------------------------- ### Usage of acli jira filter add-favourite Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-filter-add-favourite The basic syntax for executing the command. ```bash acli jira filter add-favourite [flags] ``` -------------------------------- ### Jira project restore options Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-project-restore Available flags for the jira project restore command. ```bash -h, --help Show help for command --key string Key of the project to restore ``` -------------------------------- ### Upgrade Atlassian CLI on macOS with Homebrew Source: https://developer.atlassian.com/cloud/acli/guides/update-install-guide Update Homebrew and upgrade the acli package. ```bash brew update ``` ```bash brew upgrade acli ``` ```bash acli --version ``` -------------------------------- ### Authenticate Rovo Dev with API token via echo Source: https://developer.atlassian.com/cloud/acli/guides/how-to-get-started Authenticate with Rovo Dev using an API token piped from an echo command. ```shell $ echo | acli rovodev auth login --site "mysite.atlassian.net" --email "user@atlassian.com" --token ``` -------------------------------- ### Authenticate Jira with OAuth Source: https://developer.atlassian.com/cloud/acli/guides/how-to-get-started Initiate the OAuth authentication flow for Jira, which opens a web browser for site selection. ```shell acli jira auth login --web ``` -------------------------------- ### Create Jira Work Item Source: https://developer.atlassian.com/cloud/acli/guides/how-to-get-started Commands for creating Jira work items using direct flags, files, or JSON configurations. ```bash $ acli jira workitem create ``` ```bash # Create work item by supplying a summary, project name and work item type $ acli jira workitem create --summary "New Task" --project "TEAM" --type "Task" # Create work item from file and supplying all work item details $ acli jira workitem create --from-file "workitem.txt" --project "PROJ" --type "Bug" --assignee "user@atlassian.com" --label "bug,cli" # Generate a JSON file that could be used for workitem creation via --from-json flag $ acli jira workitem create --generate-json # Create work item from a JSON file $ acli jira workitem create --from-json "workitem.json" ``` -------------------------------- ### Command options Source: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-link-list Available flags for the jira workitem link list command, including help and JSON output options. ```text -h, --help Show help for command --json Output in JSON format --key string Workitem key to list the links for ``` -------------------------------- ### Authenticate to Atlassian CLI on CI Source: https://developer.atlassian.com/cloud/acli/guides/use-acli-on-ci Use the BOT_API_TOKEN secret variable to authenticate the CLI. Replace the email and site parameters with your specific details. ```bash echo "$BOT_API_TOKEN" | ./acli jira auth login --email bot@atlassian.com --site hello.atlassian.com --token ``` -------------------------------- ### Configure PowerShell profile on macOS/Linux Source: https://developer.atlassian.com/cloud/acli/guides/enable-shell-autocomplete Steps to check, create, and edit the PowerShell profile on macOS or Linux. ```powershell pwsh -c 'Test-Path $PROFILE' ``` ```powershell pwsh -c 'New-Item -Path $PROFILE -ItemType File -Force' ``` ```powershell nano $PROFILE ``` ```powershell code $PROFILE ``` ```powershell acli completion powershell | Out-String | Invoke-Expression ``` -------------------------------- ### Enable Zsh completion environment Source: https://developer.atlassian.com/cloud/acli/guides/enable-shell-autocomplete Execute this command to enable shell completion in your Zsh environment if it is not already enabled. ```bash echo "autoload -U compinit; compinit" >> ~/.zshrc ```