Use Bitbucket from command line. With this app you can see pull request, pipelines, branches etc. from your terminal.
NOTE: Before install this package, you should have PHP >= 7 installed on your machine. For an alternative, use Docker instructions below.
- Download standalone binary from releases
- Move downloaded file to path like
mv bb /usr/local/bin/bbormv bb ~/.local/bin/bb - For testing
bb help - Let's move on to the auth.
As an alternative to having a PHP runtime installed locally, you can make use of a Docker container to run Bitbucket CLI.
First, make sure to create ~/.bitbucket-rest-cli-config.json beforehand:
touch ~/.bitbucket-rest-cli-config.jsonThen, run the tool:
docker run -it --rm --mount type=bind,source="$HOME/.bitbucket-rest-cli-config.json",target=/root/.bitbucket-rest-cli-config.json --mount type=bind,source="$(pwd)",target=/workdir,readonly ghcr.io/bb-cli/bb-cli helpFor ease, configure this as an alias in your chosen shell:
alias bb='docker run -it --rm --mount type=bind,source="$HOME/.bitbucket-rest-cli-config.json",target=/root/.bitbucket-rest-cli-config.json --mount type=bind,source="$(pwd)",target=/workdir,readonly ghcr.io/bb-cli/bb-cli'Then use bb help and bb auth as expected in the documentation.
View the documentation for usage information.
This tool developed with help of Github Copilot ![]()
The MIT License (MIT). Please see License File for more information.
