Skip to main content

bitbucket-jira-cli

A gh-style CLI for Bitbucket (pull requests, repos, pipelines) and Jira (issues), with branch-name-as-Jira-key automation.

Build Python package Build and publish to PyPI PyPI version Docker Hub version Documentation

What it does

bj brings GitHub gh ergonomics to Bitbucket and Jira. It manages Bitbucket pull requests, repositories and pipelines and Jira issues from a single noun-first command surface. It is terminal-native and scriptable, so it pairs well with AI coding agents (see Coding agents).

The signature feature is branch-name-as-Jira-key: your current git branch carries a Jira key (e.g. feature/PROJ-42-thing), and commands use it to auto-link pull requests to tickets and drive Jira transitions.

Requirements

bj works with Bitbucket Cloud and Jira Cloud. Bitbucket and Jira Server or Data Center are not supported yet. Contributions to add on-prem support are welcome.

Quickstart

1. Install

macOS and Linux

curl -LsSf uvx.sh/bitbucket-jira-cli/install.sh | sh

Windows

powershell -ExecutionPolicy ByPass -c "irm https://uvx.sh/bitbucket-jira-cli/install.ps1 | iex"

Installing a specific version:

curl -LsSf uvx.sh/bitbucket-jira-cli/1.2.0/install.sh | sh

Alternative install methods (PyPI via pip / uv, prebuilt Docker image) are covered in the installation docs.

2. Authenticate

bj auth login

3. Use it

# On a branch like feature/PROJ-42-thing:
bj pr create          # open a PR, auto-linked to PROJ-42
bj pr view            # show the PR for the current branch
bj issue view PROJ-42 # show the Jira issue
bj pipeline list      # list Bitbucket Pipelines runs

4. Use it with AI agents (optional)

bj ships an agent skill, so AI coding agents (Claude Code, Copilot, Cursor, Codex, Gemini CLI) can drive it the way they drive gh. Install it like gh skill install, but from the package you already have:

bj skill install --agent claude-code

See the Coding agents guide.

Quick demo

Create a Jira issue, open a branch for it, and open a linked pull request, without leaving the terminal.

bj demo: create a Jira issue, open a branch for it, and open a linked pull request

Documentation

The full documentation lives at https://spenhouet.github.io/bitbucket-jira-cli/.

Contributing

If you would like to contribute, please read our contribution guideline.

License

This tool is an open source project released under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitbucket_jira_cli-1.2.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitbucket_jira_cli-1.2.0-py3-none-any.whl (79.1 kB view details)

Uploaded Python 3

File details

Details for the file bitbucket_jira_cli-1.2.0.tar.gz.

File metadata

  • Download URL: bitbucket_jira_cli-1.2.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bitbucket_jira_cli-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a4aec2aae4fa05671b79d0993804cfa297ac72c8deb8fc9417eb2100f24e7476
MD5 9a1b04f109374e633f260b9c95c788ec
BLAKE2b-256 185ab0d35595fdfaa9192292604d88ee046003be21fa3fcd86b98bf8dbc25014

See more details on using hashes here.

File details

Details for the file bitbucket_jira_cli-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: bitbucket_jira_cli-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 79.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bitbucket_jira_cli-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f9e178455adfc552efbf4a346127f7fa15560980e4a612fb09b60e26d7eb07e
MD5 7f1536055d6069841bbe11285b8bc032
BLAKE2b-256 58dd4655ac6e1fdf5ea6c50ee7e43ce364908926d87224ac9005e8ab3c26bbed

See more details on using hashes here.

Release history Release notifications | RSS feed

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

This release

1.2.0 This release

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page