Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

bb repo

Work with repositories.

bb repo list (alias ls)

bb repo list [OPTIONS] [WORKSPACE]

List repositories in a workspace (default: the current repo’s workspace). Columns: full name, visibility, language, updated.

FlagMeaning
-L, --limit <N>Maximum number of repositories to list [default: 30; 0 = all]
--visibility <VISIBILITY>Filter by visibility: public, private
-l, --language <LANGUAGE>Filter by primary language
--forkShow only forks
--sourceShow only non-forks

bb repo view

bb repo view [OPTIONS] [REPO]

Show a repository: name, description, main branch, visibility, clone URLs, web URL. REPO is WORKSPACE/REPO or a URL (default: the current repo).

FlagMeaning
-w, --webOpen in the browser
-b, --branch <BRANCH>Show this branch’s latest commit (with --web: open the branch). --json still prints the repository.

bb repo clone

bb repo clone [OPTIONS] <REPO> [DIR] [-- <GIT_ARGS>...]

Clone a repository over SSH (git@bitbucket.org:WORKSPACE/REPO.git). Arguments after -- are passed to git clone.

bb repo create (alias new)

bb repo create [OPTIONS] <REPO>

Create a repository WORKSPACE/REPO (private by default).

FlagMeaning
--privateMake the repository private (default)
--publicMake the repository public
-d, --description <DESCRIPTION>Repository description
-p, --project <PROJECT>Project key to create the repository in
-c, --cloneClone the new repository afterwards

bb repo delete

bb repo delete [OPTIONS] [REPO]

Delete a repository (default: the current repo). Refuses without --yes.

FlagMeaning
--yesConfirm deletion

Differences from gh

  • repo list with no argument uses the current repo’s workspace rather than “your” repos, because Bitbucket removed the cross-workspace listing.
  • Extra: repo create -p/--project KEY (Bitbucket projects).
  • Gap: repo create is private by default and needs WORKSPACE/REPO; bb doesn’t prompt.
  • Gap: repo delete refuses without --yes instead of prompting.
  • Gap: repo clone is SSH only (API tokens don’t work for git over HTTPS); no fork/upstream flags.
  • Gap: no repo list --archived/--no-archived, --visibility internal or --topic (Bitbucket has no archived flag, internal visibility or topics).
  • Gap: repo view -b shows the branch’s head commit rather than its README.