JIRA CLI
A modern, extensible command-line interface for Atlassian JIRA built with Factory pattern and Commander.js. Manage your issues, projects, and sprints directly from the terminal with a beautiful, user-friendly interface.
✨ Features
- 📋 Issue Management: Create, read, update, and delete JIRA issues with full CRUD operations
- 💬 Comment Management: Add, list, edit, and delete comments on issues with file support
- 📝 Markdown Support: Export issues to markdown files and create/update issues from markdown
- 📊 Project Information: View project details, statistics, and team insights
- 🏃 Sprint Management: Monitor sprint progress, burndown charts, and team velocity
- ⚙️ Smart Configuration: Environment variables and CLI options for flexible setup
- 📈 Advanced Analytics: Get insights into project health, user workload, and performance metrics
- 🤖 Automation-Friendly: Fully scriptable, non-interactive mode for CI/CD pipelines
- 🎨 Beautiful Output: Formatted tables, colored output, and progress indicators
- 🔍 Powerful Search: Filter issues with JQL-like queries and advanced search options
- 🏗️ Modern Architecture: Factory pattern, dependency injection, and extensible command structure
- 🛡️ Secure: Support for API tokens, environment variables, and secure credential storage
🚀 Quick Start
Installation
# Install globally via npm
npm install -g @pchuri/jira-cli
# Or use npx (no installation required)
npx @pchuri/jira-cli
# Or install locally for development
git clone https://github.com/pchuri/jira-cli.git
cd jira-cli
npm install
npm link
Claude Code Integration
jira-cli ships as a Claude Code plugin. Once installed, Claude Code understands all jira-cli commands automatically and receives updates when the skill is improved.
Option 1: Install as Plugin (recommended)
Add the marketplace and install the plugin:
/plugin marketplace add pchuri/jira-cli
/plugin install jira@pchuri-jira-cli
Option 2: Install Skill manually
If you prefer not to use the plugin system, copy the skill documentation into your project:
jira install-skill
This copies the skill to ./.claude/skills/jira/SKILL.md. Claude Code picks it up automatically.
If the file already exists, the command errors by default. Use --force to overwrite:
jira install-skill --force
Use a custom destination directory if needed:
jira install-skill --dest ./custom/skills/jira
Setup
-
Configure using CLI options (Bearer auth - recommended):
jira config --server https://your-jira-instance.atlassian.net \
--token your-api-token
-
Or with username for Basic authentication:
jira config --server https://your-jira-instance.atlassian.net \
--username [email protected] \
--token your-api-token
-
Or use environment variables:
# Bearer authentication (recommended)
export JIRA_HOST=your-jira-instance.atlassian.net
export JIRA_API_TOKEN=your-api-token
export JIRA_API_VERSION=auto # optional: auto (default), 2, 3
# Basic authentication (optional)
export JIRA_HOST=your-jira-instance.atlassian.net
export JIRA_API_TOKEN=your-api-token
export [email protected]
export JIRA_API_VERSION=auto # optional: auto (default), 2, 3
# Scoped API token (Atlassian Cloud) — also set Cloud ID
export JIRA_CLOUD_ID=your-cloud-id # routes through Atlassian Platform API Gateway
-
Verify connection:
jira config --show
jira issue view PROJ-123
-
Create a new issue:
jira issue create --project PROJ --type Bug --summary "Login fails"
-
View project information:
jira project list
Configuration
JIRA CLI supports the following authentication modes:
- Bearer Token Authentication (Recommended) - Uses API token directly
- Basic Authentication - Uses username + API token (legacy)
- Scoped API Token (Atlassian Cloud) - Basic auth + Cloud ID, routed through the Atlassian Platform API Gateway. Use this for Atlassian's newer scoped API tokens.
Option 1: Command Line Configuration
# Bearer authentication (server + token only)
jira config --server https://yourcompany.atlassian.net \
--token your-api-token
# Basic authentication (with username)
jira config --server https://yourcompany.atlassian.net \
--username [email protected] \
--token your-api-token
# Scoped API token (Atlassian Cloud) — set Cloud ID to route via the Platform API Gateway
jira config --server https://yourcompany.atlassian.net \
--username [email protected] \
--token your-scoped-api-token \
--cloud-id your-cloud-id