bb
Bitbucket's command line tool
It's like
gh(GitHub's CLI) but for BitBucket
This tools is very basic but it does all what I need at the moment (though I am happy to accept PRs)
Installation
pip3 install bb-cli
Auth
At the moment the only way it works is by App passwords auth: https://bitbucket.org/account/settings/app-passwords/
For this you need to have 2FA enabled
At first launch, bb will ask for user and password that you generated at bitbucket and write to ~/.config/bb/conf.py. That's plain python file and you can use it to store information securely:
import os
pswd = os.popen("pass show ep/bb-cli | head -n 1").read().strip()
user = os.popen("pass show ep/bb-cli | grep username").read().strip().split(" ")[-1]
AUTH = (user, pswd)
Usage
> bb pr --help
Usage: bb pr [OPTIONS] COMMAND [ARGS]...
Manage pull requests
Options:
--help Show this message and exit.
Commands:
approve Approve PR by ID
checkout Checkout PR by ID
comments View comments for PR by ID
commits View commits of PR by ID
create Create new PR
decline Decline PR by ID
diff Show diff by PR ID
list List all PRs
merge Merge PR by ID
request-changes Request changes for PR by ID
status Shows more detailed information about PRs (Build,...
Example
git checkout -b test-bb
echo Changes > file.txt
git add file.txt
git commit -m 'New very important patch'
# push current branch to remote and create PR
bb pr create
bb pr status
bb pr merge 1
Metadata
Release files for bb-cli 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bb-cli-0.6.0.tar.gz | 5.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bb_cli-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / bb-cli-0.6.0.tar.gz
| Download URL | bb-cli-0.6.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
470e855f6ef5cafc12615ab02eda032cf74e94058d72c1121e2686c3b6207db1
|
|
BLAKE2b-256 checksum How to use checksums |
de0cff41a4b1cabbadf5dc83e734f8d0ac92b68b0dcfb81c2f2461516f66a14f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.4 Darwin/20.3.0
|
Release files / bb_cli-0.6.0-py3-none-any.whl
| Download URL | bb_cli-0.6.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35b09b0f822ee46dc47ee9d61b06571095c4631f563cabe8c60caae824696c9b
|
|
BLAKE2b-256 checksum How to use checksums |
f48ac26e21a46765d1fe00345aa40f230430c47d23057d232a5485c3e608c7f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.4 Darwin/20.3.0
|
Security for bb-cli 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.