Bitbucket Cloud CLI
A fast, interactive command-line interface for Bitbucket Cloud. Manage repositories, pull requests, and pipelines without leaving your terminal.
curl -sSL https://tyrantkhan.github.io/bitbucket-cli/install.sh | sh
Create, review, merge, approve, and track PRs. View diffs and activity feeds right in your terminal.
Trigger, monitor, and tail pipeline logs. Run custom pipelines with variables from the command line.
List, view, create, and clone repos. Works with all your workspaces and projects.
Workspace, repo, and branch are auto-detected from your git remotes. Just run commands and go.
macOS note
Binary signing is in progress. Installs via Homebrew, mise, or binary download will require removing the quarantine attribute:
xattr -d com.apple.quarantine "$(which bb)"
The curl | sh and go install methods are not affected.
brew install tyrantkhan/tap/bb
mise use -g ubi:tyrantkhan/bitbucket-cli[exe=bb]
curl -sSL https://tyrantkhan.github.io/bitbucket-cli/install.sh | sh
Installs to ~/.local/bin. The script will tell you if it's not in your PATH.
go install github.com/tyrantkhan/bb@latest
Download pre-built binaries from GitHub Releases.
# Authenticate
bb auth login
# List repos in your workspace
bb repo list
# View open pull requests
bb pr list
# Create a pull request from the current branch
bb pr create
# Run a pipeline
bb pipeline run
# Bash — add to ~/.bashrc
if command -v bb >/dev/null; then source <(bb completion bash); fi
# Zsh — add to ~/.zshrc
if command -v bb >/dev/null; then source <(bb completion zsh); fi
# Fish
bb completion fish > ~/.config/fish/completions/bb.fish
# PowerShell
bb completion pwsh > bb.ps1
| bb auth login | Authenticate with Bitbucket Cloud |
| bb auth logout | Remove stored credentials |
| bb auth status | Show authentication status |
| bb repo list | List repositories in a workspace |
| bb repo view | View repository details |
| bb repo create | Create a new repository |
| bb repo clone | Clone a repository |
| bb pr list | List pull requests |
| bb pr view | View pull request details |
| bb pr create | Create a pull request |
| bb pr merge | Merge a pull request |
| bb pr approve | Approve a pull request |
| bb pr decline | Decline a pull request |
| bb pr comment | Add a comment |
| bb pr diff | Show the diff |
| bb pr activity | Show activity feed |
| bb pr status | Show status of relevant PRs |
| bb pr ready | Mark draft PR as ready for review |
| bb pr draft | Convert PR to draft |
| bb pr edit | Edit title, description, or reviewers |
| bb pipeline list | List pipelines |
| bb pipeline view | View pipeline details |
| bb pipeline run | Run a pipeline |
| bb pipeline stop | Stop a running pipeline |
| bb pipeline logs | View step logs |
| bb search code | Search for code across repositories |
| bb completion <shell> | Generate shell completion script (bash, zsh, fish, pwsh) |
Run bb reference for the full command reference.
Download the bb skill file and add it to your project so AI coding assistants (Claude Code, Cursor, etc.) can help you with Bitbucket operations.
Download bb-skill.zipExtract into your project's .claude/skills/ directory to enable the skill in Claude Code.