Set up a local Jira development environment
mainjira-cli, you can clone the repository and optionally run a local Jira instance using the provided make recipes. Note that a trial license key from Atlassian Admin is required for the local server.repository·main·Indexed 24 days ago
https://github.com/ankitpokhrel/jira-cliAn interactive command-line tool for Atlassian Jira designed to improve workflows by providing issue search, navigation, creation, cloning, linking, and ticket transitions without the web UI. It supports both Jira Cloud and on-premise installations, offering features for managing epics, sprints, releases, and worklogs, as well as a --plain flag for shell scripting and data manipulation.
jira-cli, you can clone the repository and optionally run a local Jira instance using the provided make recipes. Note that a trial license key from Atlassian Admin is required for the local server.To use JiraCLI with a local/on-premise instance, follow these steps:
JIRA_API_TOKEN.JIRA_API_TOKEN and set JIRA_AUTH_TYPE to bearer.JIRA_API_TOKEN (if required) and run jira init to provide CA Cert, client Key, and client cert.jira init, select Local as the installation type, and provide the required details.JiraCLI can be installed via several methods:
docker run -it --rm ghcr.io/ankitpokhrel/jira-cli:latestHomebrew or Nix are available via the installation guide.docker run -it --rm ghcr.io/ankitpokhrel/jira-cli:latestTo use JiraCLI with a Cloud instance:
JIRA_API_TOKEN. For persistence, add it to your shell configuration file (e.g., $HOME/.bashrc).jira init, select Cloud as the installation type, and follow the prompts to generate your config file.JiraCLI uses an interactive UI for issue, epic, and sprint explorers. Use the following keyboard shortcuts:
j, k, h, l.g (top) and G (bottom).CTRL + f (down) and CTRL + b (up).v to view issue details, m to transition the selected issue.CTRL + r or F5.ENTER.c to copy issue URL (requires xclip/xsel on Linux), CTRL + k to copy issue key.w or TAB (in explorer view).q, ESC, or CTRL + c.?.If you work with multiple Jira projects or instances, you can specify a custom configuration file using the JIRA_CONFIG_FILE environment variable or the --config/-c CLI flag.
# Using the environment variable
$ JIRA_CONFIG_FILE=./local_jira_config.yaml jira issue list
# Using the --config flag
$ jira issue list -c ./local_jira_config.yamljira issue list -c ./local_jira_config.yamlTo enable autocompletion for Fish, follow one of these methods:
Temporary (current session only):
$ jira completion fish | sourcePermanent:
$ jira completion fish > ~/.config/fish/completions/jira.fishTo enable autocompletion for Zsh, follow these steps:
~/.zshrc:echo "autoload -U compinit; compinit" >> ~/.zshrc$ jira completion zsh > "${fpath[1]}/_jira"To enable autocompletion for PowerShell, follow one of these methods:
Temporary (current session only):
PS> jira completion powershell | Out-String | Invoke-ExpressionPermanent:
PS> jira completion powershell > _jira.ps1Most commands require a Jira API token. The CLI checks for authentication in the following order:
JIRA_API_TOKEN..netrc entry matching your Jira server and login.jira-cli using your login as the account.If none of these are found, the command will fail and prompt you to provide a token. For Cloud servers, you can generate a token at https://id.atlassian.com/manage-profile/security/api-tokens.
To enable autocompletion for Bash, follow one of these methods:
Temporary (current session only):
$ source <(jira completion bash)Permanent (system-wide):
$ jira completion bash > /etc/bash_completion.d/jira$ jira completion bash > /usr/local/etc/bash_completion.d/jiraYou can access help information for the jira CLI to understand available commands, flags, and arguments.
To see the help for the main entry point, run:
jira --helpTo see detailed information about a specific command or subcommand, use the --help flag with that command:
jira <command> <subcommand> --helpHelp output includes:
For more information, visit the official repository: https://github.com/ankitpokhrel/jira-cli