bb

bb 6.1.0

A CLI for Bitbucket Server / Bitbucket Data Center

  • By vriesdemichael
  • Open Source
  • Updated Oct 26, 2026
Download for Windows

About bb

bb works with Bitbucket Data Center and Bitbucket Server from the command line, the way gh works with GitHub: pull requests, repositories, branches, tags, commits, build status and permissions.
Every command can answer in JSON for scripts, and bb ai mcp serve exposes it to AI agents over the Model Context Protocol. It is not for Bitbucket Cloud.

What's new in 6.1.0

v6.1.0
bb v6.1.0 gives administrators who set bb's policy through Group Policy a template to do it with, and sets up shell completion for Windows PowerShell 5.1 when you run the setup from PowerShell 7.
It is a minor release with no breaking changes.
For administrators
- A Group Policy template for bb's Windows policy (#776):
bb reads its machine policy from HKEY_LOCAL_MACHINE\Software\Policies\bb, but there was no administrative template for it, so setting it through Group Policy meant writing registry items by hand. Each release now publishes bb_policy_templates.zip, holding bb.admx and en-US/bb.adml. Extract it into the PolicyDefinitions folder of your central store, and every value bb reads is a setting under Computer Configuration > Administrative Templates > bb, the Bitbucket Data Center CLI, with help that names the registry value it writes. Take the template from the release you deploy, since it offers the values that release reads. Fleet deployment has the steps.
Fixes worth knowing
- bb completion install run from PowerShell 7 sets up Windows PowerShell 5.1 as well (#819):
It set PowerShell 7 up, then printed a block of PowerShell error text and left Windows PowerShell 5.1 without completion. Both are set up now, and bb doctor and bb completion remove find the 5.1 profile too. If you ran the setup from PowerShell 7 before, run it again to add 5.1:
bb completion install --shell powershell
Changes since v6.0.0.
Compare: v6.0.0...v6.1.0
Features
- policy: publish a Group Policy template for the registry values bb reads (959a6d6)
Fixes
- completion: ask Windows PowerShell 5.1 without PowerShell 7's module path (2ad5409)
Refactors
- pr: move helpers used by one group next to it (c4db3f3)
- pr: build each group of pr subcommands in its own file (124eb46)
Docs
- release: write the v6.1.0 notes for the upgrader (30033a5)
Tests
- pr: hold every pr command to a configuration it cannot load and a malformed --repo (14358ec)
Build
- release: check that the local next is origin/next before a promotion (140294e)
CI
- link the rules and say how to rebase in the retarget comment (1faecc8)
- move a pull request opened against main to next (543112f)
- live: keep Bitbucket's whole log when the live job fails (9ad7101)
Chores
- deps: Bump certifi in /docs in the uv group across 1 directory (b8e3262)
- deps: Bump astral-sh/setup-uv from 10.3.0 to 10.3.2 (e6209fa)
- quality: stop counting three commit endpoints pr.go only matched by name (4a96415) …

Full release notes »

Technical details

Publishervriesdemichael
Version6.1.0
Release date2026-10-26
LicenseApache-2.0
Installer typezip
Architecturex64, arm64
Package IDvriesdemichael.bb

Links & install command

Install bb from the command line with Windows Package Manager (winget):

winget install --id=vriesdemichael.bb -e

atlassianbitbucketbitbucket-data-centerbitbucket-serverciclidevopsgolangmcppull-requests

Older versions

  • 6.0.0
  • 5.0.1
  • 5.0.0
  • 4.1.0
  • 4.0.0
  • 3.5.2
  • 3.5.1
  • 3.5.0
  • 3.4.0