Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

jira-cli

> 开发工具
Open source

Feature-rich interactive Jira command line.

5.9K stars0 likes1 views
WebsiteGitHub

About

Feature-rich interactive Jira command line.

JiraCLI is an interactive command line tool for Atlassian Jira that will help you avoid using the Jira UI to some extent. This tool may not be able to do everything, but it has all the essential features required to improve your day-to-day workflow with Jira.

The tool started with the idea of making issue search and navigation as straightforward as possible. However, with the help of outstanding supporters like you, we evolved, and the tool now includes all necessary features like issue creation, cloning, linking, ticket transition, and much more.

This tool is heavily inspired by the GitHub CLI

Supported platforms

[!NOTE] Some features might work slightly differently in Jira Cloud versus on-premises installations due to the nature of the data. Yet, we've attempted to make the experience as similar as possible.

Platform
Jira

Installation

jira-cli is available as a downloadable packaged binary for Linux, macOS, and Windows from the releases page.

You can use Docker to quickly try out jira-cli.

bash
docker run -it --rm ghcr.io/ankitpokhrel/jira-cli:latest

Follow the installation guide for other installation methods like Homebrew, Nix, etc.

Getting started

Cloud server

  1. Get a Jira API token and export it to your shell as a JIRA_API_TOKEN variable. Add it to your shell configuration file, for instance, $HOME/.bashrc, so that the variable is always available. Alternatively, you can also use .netrc file or keychain to set the token. Learn more here.
  2. Run jira init, select installation type as Cloud, and provide required details to generate a config file required for the tool.

On-premises installation

  1. Export required environment variables:
    • If you are using basic auth, export the password you use to login to Jira as a JIRA_API_TOKEN variable.
    • If you are using personal access token (PAT), get the token from your Jira profile and export it as a JIRA_API_TOKEN variable. In addition to this, set JIRA_AUTH_TYPE env to bearer.
    • Add these ENVs to your shell configuration file, for instance, $HOME/.bashrc, so that they are always available.
    • Alternatively, you can also use .netrc file or keychain to set the token. Learn more here.
  2. Run jira init, select installation type as Local, and provide the required details to generate a config file required for the tool.
    • The most common auth type for an on-premises installation is basic. If you are using your Jira login credentials (username and password), select the basic auth type.
    • If you want to use mtls (client certificates), select auth type mtls and provide the CA Cert, client Key, and client cert.

[!IMPORTANT] If your on-premises Jira installation is using a language other than English, then the issue/epic creation may not work because the older version of Jira API doesn't return the untranslated name for issuetypes. In that case, you will have to fill in epic.name, epic.link and issue.types.*.handle fields manually in the generated config to get the expected behavior.

See FAQs for frequently asked questions.

Authentication types

The tool supports basic, bearer (Personal Access Token), and mtls (Client Certificates) authentication types. Basic auth is used by default.

  • If you want to use PAT, you need to set JIRA_AUTH_TYPE as bearer.
  • If you want to use mtls run jira init. Select installation type Local, and then select authentication type as mtls.
    • In case JIRA_API_TOKEN variable is set it will be used together with mtls.

Shell completion

Check jira completion --help for more info on setting up a Bash/Zsh shell completion.

Multiple projects

You can load a specific configuration file by using the --config/-c flag, or by setting the JIRA_CONFIG_FILE environment variable to specify the file's location.

bash
$ JIRA_CONFIG_FILE=./local_jira_config.yaml jira issue list

# Alternatively, use the `--config/-c` flag
$ jira issue list -c ./local_jira_config.yaml

Usage

The tool currently comes with an issue, epic, and sprint explorer. The flags are POSIX-compliant. You can combine available flags in any order to create a unique query. For example, the command below will give you high priority issues created this month with status To Do that are assigned to you and has the label backend.

bash
jira issue list -yHigh -s"To Do" --created month -lbackend -a$(jira me)

Navigation

The lists are displayed in an interactive UI by default.

  • Use arrow keys or j, k, h, l characters to navigate through the list.
  • Use g and G to quickly navigate to the top and bottom respectively.
  • Use CTRL + f to scroll through a page downwards direction.
  • Use CTRL + b to scroll through a page in upwards direction.
  • Press v to view selected issue details.
  • Press m to transition the selected issue.
  • Press CTRL + r or F5 to refresh the issues list.
  • Hit ENTER to open the selected issue in the browser.
  • Press c to copy issue URL to the system clipboard. This requires xclip / xsel on Linux.
  • Press CTRL + k to copy issue key to the system clipboard.
  • In an explorer view, press w or TAB to toggle focus between the sidebar and the contents screen.
  • Press q / ESC / CTRL + c to quit.
  • Press ? to open the help window.

Resources

  • FAQs
  • Introduction and Motivation
  • Getting Started with JiraCLI

Commands

Issue

Issues are displayed in an interactive table view by default. You can output the results in a plain view using the --plain flag.

List

The list command lets you search and navigate the issues. The issues are sorted by created field in descending order by default.

…

Check some more examples/use-cases below.

List issues that I am watching
bash
jira issue list -w
List issues assigned to me
bash
jira issue list -a$(jira me)
List issues assigned to a user and are reported by another user
bash
jira issue list -a"User A" -r"User B"
List issues assigned to me, is of high priority and is open
bash
jira issue list -a$(jira me) -yHigh -sopen
List issues assigned to no one and are created this week
bash
jira issue list -ax --created week
List issues with resolution won't do
bash
jira issue list -R"Won't do"
List issues whose status is not done and is created before 6 months and is assigned to someone
bash
# Tilde (~) acts as a not operator
jira issue list -s~Done --created-before -24w -a~x
List issues created within an hour and updated in the last 30 minutes :stopwatch:
bash
jira issue list --created -1h --updated -30m
Give me issues that are of high priority, are in progress, were created this month, and have given labels :fire:
bash
jira issue list -yHigh -s"In Progress" --created month -lbackend -l"high-prio"
Wait, what was that ticket I opened earlier today? :tired_face:
bash
jira issue list --history
What was the first issue I ever reported on the current board? :thinking:
bash
jira issue list -r$(jira me) --reverse
What was the first bug I ever fixed in the current board? :beetle:
bash
jira issue list -a$(jira me) -tBug -sDone -rFixed --reverse
What issues did I report this week? :man_shrugging:
bash
jira issue list -r$(jira me) --created week
Am I watching any tickets in project XYZ? :monocle_face:
bash
jira issue list -w -pXYZ

Create

The create command lets you create an issue.

bash
# Create an issue using an interactive prompt
$ jira issue create

# Pass required parameters and use --no-input option to skip prompt
$ jira issue create -tBug -s"New Bug" -yHigh -lbug -lurgent -b"Bug description" --fix-version v2.0 --no-input

To attach epic to an issue on creation, you can use -P/--parent field. We call it parent because the semantics of epic has been changed in next-gen project.

bash
# Create an issue of type Story and attach it to epic with key EPIC-42
$  jira issue create -tStory -s"Epic during creation" -PEPIC-42

You can use a --custom flag to set custom fields while creating the issue. See this post for more details.

The command supports both GitHub-flavored and Jira-flavored Markdown for writing description. You can load pre-defined templates using --template flag.

bash
# Load description from template file
$ jira issue create --template /path/to/template.tmpl

# Get description from standard input
$ jira issue create --template -

# Or, use pipe to read input directly from standard input
$ echo "Description from stdin" | jira issue create -s"Summary" -tTask

The preview above shows a Markdown template passed in JiraCLI and how it is rendered in the Jira UI.

Edit

The edit command lets you edit an issue.

bash
$ jira issue edit ISSUE-1

# Edit issue in the configured project
$ jira issue edit ISSUE-1 -s"New Bug" -yHigh -lbug -lurgent -CBackend -b"Bug description"

# Use --no-input option to disable interactive prompt
$ jira issue edit ISSUE-1 -s"New updated summary" --no-input

# Use minus (-) to remove label, component or fixVersion
# For instance, to edit issue to
#   - remove label p2, component FE, fixVersion v1.0
#   - add label p1, component BE, fixVersion v2.0
$ jira issue edit ISSUE-1 --label -p2 --label p1 --component -FE --component BE --fix-version -v1.0 --fix-version v2.0

Assign

The assign command lets you assign a user to an issue.

bash
# Assign user to an issue using an interactive prompt
$ jira issue assign

# Pass required parameters to skip prompt
$ jira issue assign ISSUE-1 "Jon Doe"

# Assign to self
$ jira issue assign ISSUE-1 $(jira me)

# Will prompt for selection if keyword suffix returns multiple entries
$ jira issue assign ISSUE-1 suffix

# Assign to default assignee
$ jira issue assign ISSUE-1 default

# Unassign
$ jira issue assign ISSUE-1 x

Move/Transition

The move command lets you transition an issue from one state to another.

bash
# Move an issue using an interactive prompt
$ jira issue move

# Pass required parameters to skip prompt
$ jira issue move ISSUE-1 "In Progress"

If your workflow allows to add comment, resolution or assignee while moving an issue, you can do s

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goatlassianclicli-appcommand-line

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具