Skip to content

0pilatos0/bitbucket-cli

Repository files navigation

Bitbucket CLI logo

Bitbucket CLI

Fast, scriptable CLI for Bitbucket Cloud

Inspired by GitHub's gh CLI - the same great experience for Bitbucket

npm version npm downloads License GitHub issues

Docs · Quick Start · Command Reference · Issues

Note: This is an unofficial, community-maintained CLI tool.
It is not affiliated with or endorsed by Atlassian or Bitbucket.


At a glance

  • Stay in the terminal for repo and PR workflows
  • JSON output for scripting and automation
  • Auto-detects workspace and repo from your git directory

Install

npm install -g @pilatos/bitbucket-cli
bb --version

Requires: Bun runtime 1.0 or higher (Node.js is not supported)


Quick Start

bb auth login
bb repo clone myworkspace/myrepo
bb pr list

Common Commands

bb repo list
bb pr create --title "Add feature"
bb pr approve 42
bb config set defaultWorkspace myworkspace

Global options: --json, --no-color, -w, --workspace, -r, --repo


Docs

Full documentation: bitbucket-cli.paulvanderlei.com


Authentication

Note: Bitbucket app passwords are deprecated. Use API tokens instead.


Contributing

Read the Contributing Guide to get started.


Acknowledgments


License

MIT License - see LICENSE for details.

About

A command-line interface for Bitbucket Cloud

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors