Skip to content

Bitbucket CLI

Manage repositories, pull requests, issues, and pipelines on Bitbucket Cloud — without leaving your terminal.

Repositories

List, view, clone, create, fork, and manage repositories — plus branches, tags, commits, file browsing, webhooks, permissions, deploy keys, and more.

Pull requests

Create, review, merge, approve, decline, and comment on PRs, including inline and threaded comments, tasks, statuses, and diffs.

Issues & pipelines

Track issues end to end and trigger, monitor, and manage CI/CD pipelines, variables, schedules, and caches.

Scriptable

Every command supports --output json for clean, machine-readable output you can pipe into jq and automation.

Terminal window
# Install (Rust toolchain)
cargo install bitbucket-cli
# Authenticate with OAuth 2.0
bitbucket auth login --oauth
# Start working
bitbucket repo list myworkspace
bitbucket pr create myworkspace/myrepo --title "My PR" --source feature-branch