npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hesed/bb

v0.2.1

Published

CLI for Bitbucket API interaction

Downloads

248

Readme

bb

CLI for Bitbucket API interaction

Version Downloads/week

Install

sdkck plugins install @hesed/bb

Usage

$ npm install -g @hesed/bb
$ bb COMMAND
running command...
$ bb (--version)
@hesed/bb/0.2.1 linux-x64 node-v22.22.0
$ bb --help [COMMAND]
USAGE
  $ bb COMMAND
...

Commands

bb bb auth add

Add Atlassian authentication

USAGE
  $ bb bb auth add -e <value> -t <value> [--json]

FLAGS
  -e, --email=<value>  (required) Account email:
  -t, --token=<value>  (required) API Token:

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Add Atlassian authentication

EXAMPLES
  $ bb bb auth add

See code: src/commands/bb/auth/add.ts

bb bb auth test

Test authentication and connection

USAGE
  $ bb bb auth test [--json]

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Test authentication and connection

EXAMPLES
  $ bb bb auth test

See code: src/commands/bb/auth/test.ts

bb bb auth update

Update existing authentication

USAGE
  $ bb bb auth update -e <value> -t <value> [--json]

FLAGS
  -e, --email=<value>  (required) Account email
  -t, --token=<value>  (required) API Token

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Update existing authentication

EXAMPLES
  $ bb bb auth update

See code: src/commands/bb/auth/update.ts

bb bb pipeline get WORKSPACE REPOSLUG PIPELINEUUID

Get details of a specific pipeline

USAGE
  $ bb bb pipeline get WORKSPACE REPOSLUG PIPELINEUUID [--toon]

ARGUMENTS
  WORKSPACE     Workspace slug or UUID
  REPOSLUG      Repository slug
  PIPELINEUUID  Pipeline UUID

FLAGS
  --toon  Format output as toon

DESCRIPTION
  Get details of a specific pipeline

EXAMPLES
  $ bb bb pipeline get my-workspace my-repo {uuid}

See code: src/commands/bb/pipeline/get.ts

bb bb pipeline list WORKSPACE REPOSLUG

List pipelines for a repository

USAGE
  $ bb bb pipeline list WORKSPACE REPOSLUG [--page <value>] [--pagelen <value>] [--sort <value>] [--toon]

ARGUMENTS
  WORKSPACE  Workspace slug or UUID
  REPOSLUG   Repository slug

FLAGS
  --page=<value>     [default: 1] Page number
  --pagelen=<value>  [default: 10] Number of items per page
  --sort=<value>     Sort field (e.g., created_on)
  --toon             Format output as toon

DESCRIPTION
  List pipelines for a repository

EXAMPLES
  $ bb bb pipeline list my-workspace my-repo

See code: src/commands/bb/pipeline/list.ts

bb bb pipeline trigger WORKSPACE REPOSLUG

Trigger a pipeline run

USAGE
  $ bb bb pipeline trigger WORKSPACE REPOSLUG --branch <value> [--custom <value>] [--toon]

ARGUMENTS
  WORKSPACE  Workspace slug or UUID
  REPOSLUG   Repository slug

FLAGS
  --branch=<value>  (required) Branch name to run pipeline on
  --custom=<value>  Custom pipeline pattern name
  --toon            Format output as toon

DESCRIPTION
  Trigger a pipeline run

EXAMPLES
  $ bb bb pipeline trigger my-workspace my-repo --branch main

  $ bb bb pipeline trigger my-workspace my-repo --branch main --custom my-pipeline

See code: src/commands/bb/pipeline/trigger.ts

bb bb pr approve WORKSPACE REPOSLUG PULLREQUESTID

Approve a pull request

USAGE
  $ bb bb pr approve WORKSPACE REPOSLUG PULLREQUESTID [--toon]

ARGUMENTS
  WORKSPACE      Workspace slug or UUID
  REPOSLUG       Repository slug
  PULLREQUESTID  Pull request ID

FLAGS
  --toon  Format output as toon

DESCRIPTION
  Approve a pull request

EXAMPLES
  $ bb bb pr approve my-workspace my-repo 123

See code: src/commands/bb/pr/approve.ts

bb bb pr create WORKSPACE REPOSLUG

Create a new pull request

USAGE
  $ bb bb pr create WORKSPACE REPOSLUG --destination <value> --source <value> --title <value> [--description
    <value>] [--reviewers <value>] [--toon]

ARGUMENTS
  WORKSPACE  Workspace slug or UUID
  REPOSLUG   Repository slug

FLAGS
  --description=<value>  Pull request description
  --destination=<value>  (required) Destination branch name
  --reviewers=<value>    Comma-separated list of reviewer UUIDs
  --source=<value>       (required) Source branch name
  --title=<value>        (required) Pull request title
  --toon                 Format output as toon

DESCRIPTION
  Create a new pull request

EXAMPLES
  $ bb bb pr create my-workspace my-repo --title "My PR" --source feature-branch --destination main

See code: src/commands/bb/pr/create.ts

bb bb pr decline WORKSPACE REPOSLUG PULLREQUESTID

Decline a pull request

USAGE
  $ bb bb pr decline WORKSPACE REPOSLUG PULLREQUESTID [--toon]

ARGUMENTS
  WORKSPACE      Workspace slug or UUID
  REPOSLUG       Repository slug
  PULLREQUESTID  Pull request ID

FLAGS
  --toon  Format output as toon

DESCRIPTION
  Decline a pull request

EXAMPLES
  $ bb bb pr decline my-workspace my-repo 123

See code: src/commands/bb/pr/decline.ts

bb bb pr get WORKSPACE REPOSLUG PULLREQUESTID

Get details of a specific pull request

USAGE
  $ bb bb pr get WORKSPACE REPOSLUG PULLREQUESTID [--toon]

ARGUMENTS
  WORKSPACE      Workspace slug or UUID
  REPOSLUG       Repository slug
  PULLREQUESTID  Pull request ID

FLAGS
  --toon  Format output as toon

DESCRIPTION
  Get details of a specific pull request

EXAMPLES
  $ bb bb pr get my-workspace my-repo 123

See code: src/commands/bb/pr/get.ts

bb bb pr list WORKSPACE REPOSLUG

List pull requests for a repository

USAGE
  $ bb bb pr list WORKSPACE REPOSLUG [--page <value>] [--pagelen <value>] [--state <value>] [--toon]

ARGUMENTS
  WORKSPACE  Workspace slug or UUID
  REPOSLUG   Repository slug

FLAGS
  --page=<value>     [default: 1] Page number
  --pagelen=<value>  [default: 10] Number of items per page
  --state=<value>    Filter by state (OPEN, MERGED, DECLINED, SUPERSEDED)
  --toon             Format output as toon

DESCRIPTION
  List pull requests for a repository

EXAMPLES
  $ bb bb pr list my-workspace my-repo

See code: src/commands/bb/pr/list.ts

bb bb pr merge WORKSPACE REPOSLUG PULLREQUESTID

Merge a pull request

USAGE
  $ bb bb pr merge WORKSPACE REPOSLUG PULLREQUESTID [--close-source-branch] [-m <value>] [--strategy
    merge_commit|squash|fast_forward] [--toon]

ARGUMENTS
  WORKSPACE      Workspace slug or UUID
  REPOSLUG       Repository slug
  PULLREQUESTID  Pull request ID

FLAGS
  -m, --message=<value>      Merge commit message
      --close-source-branch  Close source branch after merge
      --strategy=<option>    Merge strategy (merge_commit, squash, fast_forward)
                             <options: merge_commit|squash|fast_forward>
      --toon                 Format output as toon

DESCRIPTION
  Merge a pull request

EXAMPLES
  $ bb bb pr merge my-workspace my-repo 123

See code: src/commands/bb/pr/merge.ts

bb bb pr unapprove WORKSPACE REPOSLUG PULLREQUESTID

Remove approval from a pull request

USAGE
  $ bb bb pr unapprove WORKSPACE REPOSLUG PULLREQUESTID [--toon]

ARGUMENTS
  WORKSPACE      Workspace slug or UUID
  REPOSLUG       Repository slug
  PULLREQUESTID  Pull request ID

FLAGS
  --toon  Format output as toon

DESCRIPTION
  Remove approval from a pull request

EXAMPLES
  $ bb bb pr unapprove my-workspace my-repo 123

See code: src/commands/bb/pr/unapprove.ts

bb bb pr update WORKSPACE REPOSLUG PULLREQUESTID

Update a pull request

USAGE
  $ bb bb pr update WORKSPACE REPOSLUG PULLREQUESTID [--description <value>] [--title <value>] [--toon]

ARGUMENTS
  WORKSPACE      Workspace slug or UUID
  REPOSLUG       Repository slug
  PULLREQUESTID  Pull request ID

FLAGS
  --description=<value>  Pull request description
  --title=<value>        Pull request title
  --toon                 Format output as toon

DESCRIPTION
  Update a pull request

EXAMPLES
  $ bb bb pr update my-workspace my-repo 1 --title "Updated title"

See code: src/commands/bb/pr/update.ts

bb bb repo create WORKSPACE REPOSLUG

Create a new repository

USAGE
  $ bb bb repo create WORKSPACE REPOSLUG [--description <value>] [--language <value>] [--private] [--project-key
    <value>] [--toon]

ARGUMENTS
  WORKSPACE  Workspace slug or UUID
  REPOSLUG   Repository slug

FLAGS
  --description=<value>  Repository description
  --language=<value>     Repository language
  --private              Make repository private
  --project-key=<value>  Project key
  --toon                 Format output as toon

DESCRIPTION
  Create a new repository

EXAMPLES
  $ bb bb repo create my-workspace my-repo

  $ bb bb repo create my-workspace my-repo --private --description "My new repo"

See code: src/commands/bb/repo/create.ts

bb bb repo delete WORKSPACE REPOSLUG

Delete a repository

USAGE
  $ bb bb repo delete WORKSPACE REPOSLUG [--toon]

ARGUMENTS
  WORKSPACE  Workspace slug or UUID
  REPOSLUG   Repository slug

FLAGS
  --toon  Format output as toon

DESCRIPTION
  Delete a repository

EXAMPLES
  $ bb bb repo delete my-workspace my-repo

See code: src/commands/bb/repo/delete.ts

bb bb repo get WORKSPACE REPOSLUG

Get details of a specific repository

USAGE
  $ bb bb repo get WORKSPACE REPOSLUG [--toon]

ARGUMENTS
  WORKSPACE  Workspace slug or UUID
  REPOSLUG   Repository slug

FLAGS
  --toon  Format output as toon

DESCRIPTION
  Get details of a specific repository

EXAMPLES
  $ bb bb repo get my-workspace my-repo

See code: src/commands/bb/repo/get.ts

bb bb repo list WORKSPACE

List repositories in a workspace

USAGE
  $ bb bb repo list WORKSPACE [--page <value>] [--pagelen <value>] [--q <value>] [--role <value>] [--toon]

ARGUMENTS
  WORKSPACE  Workspace slug or UUID

FLAGS
  --page=<value>     [default: 1] Page number
  --pagelen=<value>  [default: 10] Number of items per page
  --q=<value>        Query string to filter repositories
  --role=<value>     Filter by role (admin, contributor, member, owner)
  --toon             Format output as toon

DESCRIPTION
  List repositories in a workspace

EXAMPLES
  $ bb bb repo list my-workspace

See code: src/commands/bb/repo/list.ts

bb bb workspace get WORKSPACE

Get details of a specific workspace

USAGE
  $ bb bb workspace get WORKSPACE [--toon]

ARGUMENTS
  WORKSPACE  Workspace slug or UUID

FLAGS
  --toon  Format output as toon

DESCRIPTION
  Get details of a specific workspace

EXAMPLES
  $ bb bb workspace get my-workspace

See code: src/commands/bb/workspace/get.ts

bb bb workspace list

List all accessible workspaces

USAGE
  $ bb bb workspace list [--page <value>] [--pagelen <value>] [--toon]

FLAGS
  --page=<value>     [default: 1] Page number
  --pagelen=<value>  [default: 10] Number of items per page
  --toon             Format output as toon

DESCRIPTION
  List all accessible workspaces

EXAMPLES
  $ bb bb workspace list

See code: src/commands/bb/workspace/list.ts