bb is a command-line client for Bitbucket Data Center and Bitbucket Server, aimed at developers and build engineers who manage repositories from a terminal or scripts. It covers pull requests, repositories, branches, tags, commits, build status and permissions, in a style similar to how the gh tool handles GitHub.
Every command can print its output as JSON, which makes it usable in scripts. A subcommand starts a Model Context Protocol server so AI agents can call the same operations. It does not support Bitbucket Cloud. The code is published under the Apache-2.0 license and runs on Windows.
Alternatives to bb
Products that do a similar job in Developer Tools.
GitHub CLI
Command line tool for working with GitHub from the terminal
GitKraken CLI
command-line interface for GitKraken services
lazygit
Terminal UI for running git commands with keyboard shortcuts
bat
command-line file viewer with syntax highlighting and git integration
GitKraken
Desktop Git client with a visual commit graph and branch view
Worktrunk
command-line helper for managing Git worktrees
onefetch
Command-line tool that shows a summary of a Git repository
gitui
Keyboard-driven terminal interface for git repositories