A 30-second walkthrough from "I just downloaded bb" to "I can ship PRs".
Pre-built binary (recommended):
# macOS arm64
curl -L -o /usr/local/bin/bb https://github.com/margus/bitbucket-cli/releases/latest/download/bb-darwin-arm64
chmod +x /usr/local/bin/bb
# macOS amd64
curl -L -o /usr/local/bin/bb https://github.com/margus/bitbucket-cli/releases/latest/download/bb-darwin-amd64
chmod +x /usr/local/bin/bb
# Linux amd64
curl -L -o /usr/local/bin/bb https://github.com/margus/bitbucket-cli/releases/latest/download/bb-linux-amd64
chmod +x /usr/local/bin/bb
# Linux arm64
curl -L -o /usr/local/bin/bb https://github.com/margus/bitbucket-cli/releases/latest/download/bb-linux-arm64
chmod +x /usr/local/bin/bbWindows: download bb-windows-amd64.exe from
https://github.com/margus/bitbucket-cli/releases/latest and put it on
your PATH.
Verify:
bb versionOther options:
# Go modules
go install github.com/margus/bitbucket-cli/cmd/bb@latest
# Homebrew (macOS / Linux)
brew install margus/tap/bb
# Docker (great for CI)
docker run --rm ghcr.io/margus/bitbucket-cli:latest version
# From source
git clone https://github.com/margus/bitbucket-cli && cd bitbucket-cli
make buildThe recommended path is a Bitbucket workspace access token (Atlassian docs: https://support.atlassian.com/bitbucket-cloud/docs/access-tokens/).
In the Bitbucket UI: Workspace settings → Access tokens → Create token.
Give it the scopes you need (typically pullrequest:read+write,
pipeline:read+write, repository:read), then:
bb auth token # paste the token when promptedIf you prefer the legacy username + app password flow, see
auth.md.
Verify:
bb auth showFrom inside a clone of a Bitbucket repository:
bb pr list # all open pull requests
bb pr show 42 # comments on PR 42
bb pipeline latest # most recent pipeline run
bb branch list # all branches sorted by latest commit
bb browse # open the repo in your browserYou don't need a checkout — --project owner/repo works from anywhere:
bb --project margus/bitbucket-cli pr list- Commands reference — every subcommand, with examples
- Configuration — env-var overrides, XDG paths
- Shell completion — tab-complete on bash, zsh, fish