bb vriesdemichael
winget install --id=vriesdemichael.bb -e Bitbucket server (not cloud) command line tool. The 'gh' of bitbucket server.
winget install --id=vriesdemichael.bb -e Bitbucket server (not cloud) command line tool. The 'gh' of bitbucket server.
bb)bb is a production-focused CLI for automating Bitbucket Data Center workflows (targeting recent versions of Bitbucket for Data Center).
It combines scriptable machine output, safe dry-run planning, and high-coverage live-behavior
validation against real Bitbucket APIs.
It is designed as the gh-style CLI experience for Bitbucket Data Center, including
repository cloning and browser navigation ergonomics tailored to Bitbucket-hosted projects.
bbbb.machine, v2) for CI/CD and internal tooling.--repo usage.bb repo clone, bb browse).Install on Windows via WinGet:
winget install vriesdemichael.bb
Install on Windows via Scoop:
scoop bucket add vriesdemichael https://github.com/vriesdemichael/scoop
scoop install vriesdemichael/bb
Install on macOS or Linux via Homebrew:
brew install vriesdemichael/tap/bb
Install on Arch Linux from the AUR:
yay -S bb-bin
Install on Debian/Ubuntu or RHEL/Fedora from the release .deb/.rpm:
# Debian/Ubuntu
curl -LO "https://github.com/vriesdemichael/bitbucket-data-center-cli/releases/latest/download/bb_linux_amd64.deb"
sudo dpkg -i bb_linux_amd64.deb
# RHEL/Fedora
curl -LO "https://github.com/vriesdemichael/bitbucket-data-center-cli/releases/latest/download/bb_linux_amd64.rpm"
sudo rpm -i bb_linux_amd64.rpm
Install from Releases (Linux amd64 example):
curl -LO "https://github.com/vriesdemichael/bitbucket-data-center-cli/releases/latest/download/bb_linux_amd64.tar.gz"
curl -LO "https://github.com/vriesdemichael/bitbucket-data-center-cli/releases/latest/download/sha256sums.txt"
sha256sum -c sha256sums.txt --ignore-missing
tar -xzf bb_linux_amd64.tar.gz
install -m 0755 bb /usr/local/bin/bb
Every release also publishes the same files with the version in the name
(bb_1.2.3_linux_amd64.tar.gz). Use those to pin a release; sha256sums.txt
covers both spellings, so the checksum step above works either way.
Authenticate — store a token for your Bitbucket instance:
printf '%s' "$BB_TOKEN" | bb auth login https://bitbucket.acme.corp --token-stdin
bb auth status
Target Bitbucket: https://bitbucket.acme.corp (auth=token, source=stored)
Credential storage: keyring
--token-stdin keeps the token out of the process list and your shell history.
The token is stored in your OS keyring; where none is available bb falls back to
the config file in plaintext and says so — pass --require-keyring to fail
instead.
Clone and browse — no need to look up URLs:
bb repo clone PLATFORM/api
bb browse --repo PLATFORM/api
Cloning into 'api'...
Cloned PLATFORM/api into api
# browse opens https://bitbucket.acme.corp/projects/PLATFORM/repos/api in your browser
Search — find repositories across all projects:
bb search repos --limit 20
PLATFORM/api API Service
PLATFORM/backend Backend Service
PLATFORM/web Frontend Web App
Machine mode — stable JSON envelope for scripting and CI/CD:
bb --json auth status
{
"version": "v2",
"data": {
"bitbucket_url": "https://bitbucket.acme.corp",
"bitbucket_version_target": "",
"auth_mode": "token",
"auth_source": "stored/default"
},
"meta": {
"contract": "bb.machine"
}
}
Ready for daily workflows? See the Developer Cheatsheet & Cookbook for scannable reference tables and top 10 daily developer recipes (PR reviews, local checkout, auto-merge, and IDE setup).
llms.txt):docker/harness/Dockerfile, which is
the one place it is recorded. Newer releases are adopted by bumping that tag when they work;
some do not run in the stack, so the newest published release is not automatically the
supported one.
Set BITBUCKET_VERSION_TARGET if you want to record a version for your own environment.docs/reference/atlassian/bitbucket-openapi.json). This fixes the endpoint and payload
shapes the generated client is built from — it is the provenance of the spec, not a statement
about which server versions work. Behavior is established by live tests, not the spec.bb / bb.machine v2This README is an adopter-focused landing page.
Taskfile.ymldocs/decisions/docs/site/, tools/cli-docs-export/, tools/adr-markdown-export/Atlassian Bitbucket Data Center is proprietary software. Use of local Docker images and server instances must comply with Atlassian licensing terms.