Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

bb

bb is a gh-style CLI for Bitbucket Cloud: one binary for pull requests, repositories, Pipelines and raw API calls, usable by people and by scripts and AI agents alike.

If you know gh, you know bb. Commands, flags and flag values are gh’s, with gh’s meaning. Bitbucket’s own names work too, as extras: pr decline = pr close, pipeline = run, workspace = org, pipeline stop = run cancel, --state declined.

bb pr list                      # open PRs in the current repository
bb pr view 42 --json | jq .state
bb pr checks --watch            # CI status of the current branch's PR
bb run view --log-failed        # logs of the failed steps of the latest pipeline
bb api /user

Where to go next:

Scope

bb targets Bitbucket Cloud (api.bitbucket.org/2.0). Not in scope: Bitbucket Server / Data Center, Bitbucket issues, multiple accounts, OAuth browser login, shell completions, user-defined aliases and extensions, and gh’s --json FIELDS / --jq / --template (bb --json prints the raw API JSON; pipe it to jq).

The full design, including every deliberate difference from gh, is in PRD.md.