All apps/Bitbucket CLI

Bitbucket CLI

bb-cli

Bitbucket Rest API CLI written in pure PHP.

Runs as bb|macOS, Linux, Windows|bb-cli.github.io

Command form

ai-draft · 2 tasks · 6 fields

Create a pull request, list pull requests, or run a pipeline for a branch in the current Bitbucket repository. Other bb commands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui bb-cli

bb pr create

Create a pull request

Source defaults to the current branch. Default reviewers are added automatically.

Create a pull requestExample values, fixed in this page — nothing here reaches a terminal
Basic
Target branch*
string
Source branch
string
Title
string
Description
string
Prompt for missing title/description
-i
TasksEach one presets the form for one job
Create a pull request
targetsourcetitledescriptioninteractive
ParametersOnly these flags are editable in the form
Target branch
string · positional 0
Source branch
string · positional 1
Title
string
--title
Description
string
--description
Prompt for missing title/description
boolean
-i

bb pipeline run

Run a pipeline

Runs the pipeline defined in bitbucket-pipelines.yml for a branch.

Run a pipelineExample values, fixed in this page — nothing here reaches a terminal
Basic
Branch*
string
TasksEach one presets the form for one job
Run pipeline
branch
ParametersOnly these flags are editable in the form
Branch
string · positional 0
SourcesEvery flag above is checked against these
docs
bb pr create <target-branch> [source-branch] [options] Create pull request. If source-branch is omitted, the current branch is used as source. -i Interactive mode - prompts for missing title and/or description --title "..." Set the PR title (non-interactive) --description "..." Set the PR description (non-interactive) bb pr create develop --title "Fix login…
manual2026-10-27

bb-cli.github.io

docs
bb pipeline run <branch-name> Runs pipeline for given branch (defined in bitbucket-pipelines.yml file).
manual2026-10-27

bb-cli.github.io

Before it fills your prompt, Otty checks the installed bb against its version. A form that does not match your version is not offered.