Repository management
Clone, create, list, view, and delete repositories.
bb repo clone workspace/repobb repo create my-new-projectbb repo list -w myworkspaceRequires Bun 1.0+ runtime.
npm install -g @pilatos/bitbucket-clipnpm add -g @pilatos/bitbucket-clibun install -g @pilatos/bitbucket-clibb auth login # authenticatebb repo clone myworkspace/myrepo # clone a repositorybb pr create -t "My awesome feature" # create a PRbb pr list # list open PRsRepository management
Clone, create, list, view, and delete repositories.
bb repo clone workspace/repobb repo create my-new-projectbb repo list -w myworkspacePull requests
Full PR lifecycle — create, review, approve, merge.
bb pr create -t "Add feature"bb pr approve 42bb pr merge 42 --strategy squashCode review
View diffs, checkout PR branches, inspect checks.
bb pr diff 42bb pr checkout 42bb pr checks 42CI/CD pipelines
Trigger, inspect, and stop Bitbucket Pipelines.
bb pipeline run --branch mainbb pipeline list --status FAILEDbb pipeline logs 42Workspaces and projects
Find the workspaces you belong to and the projects inside them.
bb workspace listbb project listbb project view PROJIssues, snippets, and commits
Track issues, share snippets, read history, and publish build statuses.
bb issue list --state openbb snippet create -t notes -f a.txtbb commit list --limit 10bb status set abc1234 --key BB-DEPLOY --state SUCCESSFULSee Issue commands and Snippet commands.
Jump to the web UI
Open Bitbucket pages — PRs, files, commits, settings — in your browser.
bb browse 42bb browse src/cli.ts:20bb browse --pipelinesScripting and automation
Every command speaks JSON. --json projects to a field list, --jq filters in-process — no external jq binary, no shell pipe.
bb pr list --json id,title,author.display_namebb pipeline run --branch main --json --jq '.build_number'A field list returns a flat array of objects; dotted paths keep their full name as the key. See the Scripting guide.
Raw API access
Reach any Bitbucket 2.0 endpoint not yet wrapped by a typed command.
bb api /userbb api /repositories/{workspace}/{repo}/pullrequests --paginatebb api POST /repositories/ws/repo/issues -f title=BugThis is an unofficial, community-maintained CLI. Not affiliated with Atlassian.