# BH CLI Commands > List of available BH CLI commands ## Command-Line Help for `bh` This document contains the help content for the `bh` command-line program. > Generated by `scripts/gen-bh-docs.py` from `bh --help`. Do not hand-edit. **Command Overview:** - [`bh`↴](#bh) - [`bh account`↴](#bh-account) - [`bh account entitlement`↴](#bh-account-entitlement) - [`bh account entitlement list`↴](#bh-account-entitlement-list) - [`bh account get`↴](#bh-account-get) - [`bh artifact`↴](#bh-artifact) - [`bh artifact delete`↴](#bh-artifact-delete) - [`bh artifact download`↴](#bh-artifact-download) - [`bh artifact list`↴](#bh-artifact-list) - [`bh blob`↴](#bh-blob) - [`bh blob download`↴](#bh-blob-download) - [`bh blob ls`↴](#bh-blob-ls) - [`bh blob mkdir`↴](#bh-blob-mkdir) - [`bh blob rm`↴](#bh-blob-rm) - [`bh blob rmdir`↴](#bh-blob-rmdir) - [`bh blob upload`↴](#bh-blob-upload) - [`bh dataset`↴](#bh-dataset) - [`bh dataset create`↴](#bh-dataset-create) - [`bh dataset delete`↴](#bh-dataset-delete) - [`bh dataset describe`↴](#bh-dataset-describe) - [`bh dataset get`↴](#bh-dataset-get) - [`bh dataset list`↴](#bh-dataset-list) - [`bh dataset query`↴](#bh-dataset-query) - [`bh dataset update`↴](#bh-dataset-update) - [`bh module`↴](#bh-module) - [`bh module count`↴](#bh-module-count) - [`bh module create`↴](#bh-module-create) - [`bh module delete`↴](#bh-module-delete) - [`bh module fork`↴](#bh-module-fork) - [`bh module get`↴](#bh-module-get) - [`bh module get-spec`↴](#bh-module-get-spec) - [`bh module list`↴](#bh-module-list) - [`bh module submit`↴](#bh-module-submit) - [`bh module update`↴](#bh-module-update) - [`bh pat`↴](#bh-pat) - [`bh pat create`↴](#bh-pat-create) - [`bh pat delete`↴](#bh-pat-delete) - [`bh pat get`↴](#bh-pat-get) - [`bh pat list`↴](#bh-pat-list) - [`bh pat rotate`↴](#bh-pat-rotate) - [`bh project`↴](#bh-project) - [`bh project activate`↴](#bh-project-activate) - [`bh project count`↴](#bh-project-count) - [`bh project create`↴](#bh-project-create) - [`bh project deactivate`↴](#bh-project-deactivate) - [`bh project delete`↴](#bh-project-delete) - [`bh project get`↴](#bh-project-get) - [`bh project list`↴](#bh-project-list) - [`bh project update`↴](#bh-project-update) - [`bh runner`↴](#bh-runner) - [`bh runner delete`↴](#bh-runner-delete) - [`bh runner list`↴](#bh-runner-list) - [`bh runner registration`↴](#bh-runner-registration) - [`bh runner registration command`↴](#bh-runner-registration-command) - [`bh runner registration token`↴](#bh-runner-registration-token) - [`bh runner release`↴](#bh-runner-release) - [`bh runner release latest`↴](#bh-runner-release-latest) - [`bh runner release list`↴](#bh-runner-release-list) - [`bh scan`↴](#bh-scan) - [`bh scan dispatch`↴](#bh-scan-dispatch) - [`bh scan run`↴](#bh-scan-run) - [`bh scan run cancel`↴](#bh-scan-run-cancel) - [`bh scan run delete`↴](#bh-scan-run-delete) - [`bh scan run events`↴](#bh-scan-run-events) - [`bh scan run get`↴](#bh-scan-run-get) - [`bh scan run list`↴](#bh-scan-run-list) - [`bh scan run logs`↴](#bh-scan-run-logs) - [`bh workflow`↴](#bh-workflow) - [`bh workflow activate`↴](#bh-workflow-activate) - [`bh workflow count`↴](#bh-workflow-count) - [`bh workflow create`↴](#bh-workflow-create) - [`bh workflow deactivate`↴](#bh-workflow-deactivate) - [`bh workflow delete`↴](#bh-workflow-delete) - [`bh workflow get`↴](#bh-workflow-get) - [`bh workflow list`↴](#bh-workflow-list) - [`bh workflow revision`↴](#bh-workflow-revision) - [`bh workflow revision create`↴](#bh-workflow-revision-create) - [`bh workflow revision delete`↴](#bh-workflow-revision-delete) - [`bh workflow revision get`↴](#bh-workflow-revision-get) - [`bh workflow revision list`↴](#bh-workflow-revision-list) - [`bh workflow revision submit`↴](#bh-workflow-revision-submit) - [`bh workflow scans`↴](#bh-workflow-scans) - [`bh workflow update`↴](#bh-workflow-update) ## `bh` BountyHub CLI **Usage:** `bh [FLAGS] ` ### **Subcommands:** - `account` — Account info and entitlements - `artifact` — Workflow run artifacts - `blob` — Blob storage - `dataset` — Project datasets - `module` — Reusable workflow modules - `pat` — Personal access tokens - `project` — Projects - `runner` — Runners - `scan` — Workflow scans and runs - `workflow` — Workflows ### **Options:** - `--hub-url ` — Hub base URL (defaults to BOUNTYHUB_URL, then [https://api.bountyhub.com](https://api.bountyhub.com)) - `--token ` — Personal access token (defaults to BOUNTYHUB_TOKEN) - `--json` — Print machine-readable JSON ## `bh account` Account info and entitlements **Usage:** `bh account ` ### **Subcommands:** - `entitlement` — Entitlement commands - `get` — Show the authenticated account ## `bh account entitlement` Entitlement commands **Usage:** `bh account entitlement ` ### **Subcommands:** - `list` — List entitlements with current usage ## `bh account entitlement list` List entitlements with current usage **Usage:** `bh account entitlement list` ## `bh account get` Show the authenticated account **Usage:** `bh account get` ## `bh artifact` Workflow run artifacts **Usage:** `bh artifact ` ### **Subcommands:** - `delete` — Delete an artifact - `download` — Download an artifact - `list` — List the artifacts of a run ## `bh artifact delete` Delete an artifact **Usage:** `bh artifact delete [FLAGS]` ### **Options:** - `--id ` — Artifact id - `--run-id ` — Run id (with --name) - `--name ` — Artifact name (with --run-id) ## `bh artifact download` Download an artifact **Usage:** `bh artifact download [FLAGS]` ### **Options:** - `--id ` — Artifact id - `--run-id ` — Run id (with --name) - `--name ` — Artifact name (with --run-id) - `-o, --output ` — Write here instead of the artifact's file name ## `bh artifact list` List the artifacts of a run **Usage:** `bh artifact list <--run-id >` ### **Options:** - `--run-id ` — Run id ## `bh blob` Blob storage **Usage:** `bh blob ` ### **Subcommands:** - `download` — Download a blob - `ls` — List directories under a path - `mkdir` — Create a directory - `rm` — Delete a file - `rmdir` — Delete a directory - `upload` — Upload a file to blob storage ## `bh blob download` Download a blob **Usage:** `bh blob download <-s --src > [-d --dst ]` ### **Options:** - `-s, --src ` — Blob path - `-d, --dst ` — Write here instead of the blob's base name ## `bh blob ls` List directories under a path **Usage:** `bh blob ls [-p --path ]` ### **Options:** - `-p, --path ` — Directory path (default: ) ## `bh blob mkdir` Create a directory **Usage:** `bh blob mkdir <-p --path >` ### **Options:** - `-p, --path ` — Blob path ## `bh blob rm` Delete a file **Usage:** `bh blob rm <-p --path >` ### **Options:** - `-p, --path ` — Blob path ## `bh blob rmdir` Delete a directory **Usage:** `bh blob rmdir <-p --path >` ### **Options:** - `-p, --path ` — Blob path ## `bh blob upload` Upload a file to blob storage **Usage:** `bh blob upload <-s --src > <--dst >` ### **Options:** - `-s, --src ` — Local file to upload - `--dst ` — Destination blob path ## `bh dataset` Project datasets **Usage:** `bh dataset ` ### **Subcommands:** - `create` — Create a dataset - `delete` — Delete a dataset - `describe` — Describe a dataset's columns - `get` — Get a dataset by id - `list` — List datasets in a project - `query` — Run a read-only SQL query against a dataset - `update` — Update a dataset's name or description ## `bh dataset create` Create a dataset **Usage:** `bh dataset create ` ### **Arguments:** - `` — Dataset name ### **Options:** - `--project-id ` — Project id - `--description ` — Dataset description - `--schema-json ` — Path to a JSON-encoded dataset schema ## `bh dataset delete` Delete a dataset **Usage:** `bh dataset delete <--dataset-id >` ### **Options:** - `--dataset-id ` — Dataset id ## `bh dataset describe` Describe a dataset's columns **Usage:** `bh dataset describe <--dataset-id >` ### **Options:** - `--dataset-id ` — Dataset id ## `bh dataset get` Get a dataset by id **Usage:** `bh dataset get <--dataset-id >` ### **Options:** - `--dataset-id ` — Dataset id ## `bh dataset list` List datasets in a project **Usage:** `bh dataset list ` ### **Options:** - `--project-id ` — Project id - `--page-size ` — Maximum number of datasets per page - `--page-token ` — Pagination token - `--all` — Follow pagination ## `bh dataset query` Run a read-only SQL query against a dataset **Usage:** `bh dataset query ` ### **Options:** - `--dataset-id ` — Dataset id - `--sql ` — Read-only SQL query - `--page-size ` — Maximum rows per page - `--include-history` — Query the raw append-only history instead of the current state ## `bh dataset update` Update a dataset's name or description **Usage:** `bh dataset update ` ### **Options:** - `--dataset-id ` — Dataset id - `--name ` — New name - `--description ` — New description ## `bh module` Reusable workflow modules **Usage:** `bh module ` ### **Subcommands:** - `count` — Print the module count - `create` — Create a module - `delete` — Delete a module - `fork` — Fork a module into your account - `get` — Get a module by id or name - `get-spec` — Print a module's .bhw spec - `list` — List workflow modules - `submit` — Submit a draft module - `update` — Update a module (creates a new version) ## `bh module count` Print the module count **Usage:** `bh module count` ## `bh module create` Create a module **Usage:** `bh module create ` ### **Arguments:** - `` — Module name ### **Options:** - `--description ` — Module description - `--spec ` — Path to the module .bhw spec - `--draft` — Create as a draft ## `bh module delete` Delete a module **Usage:** `bh module delete <--id >` ### **Options:** - `--id ` — Module id ## `bh module fork` Fork a module into your account **Usage:** `bh module fork <--id >` ### **Options:** - `--id ` — Module id ## `bh module get` Get a module by id or name **Usage:** `bh module get [--id ] [--name ]` ### **Options:** - `--id ` — Module id - `--name ` — Module name ## `bh module get-spec` Print a module's .bhw spec **Usage:** `bh module get-spec <--id > [-o --output ]` ### **Options:** - `--id ` — Module id - `-o, --output ` — Write the spec here instead of printing it ## `bh module list` List workflow modules **Usage:** `bh module list [FLAGS]` ### **Options:** - `--page-size ` — Maximum number of modules per page - `--page-token ` — Pagination token - `--all` — Follow pagination ## `bh module submit` Submit a draft module **Usage:** `bh module submit <--id >` ### **Options:** - `--id ` — Module id ## `bh module update` Update a module (creates a new version) **Usage:** `bh module update ` ### **Options:** - `--id ` — Module id - `--name ` — New name - `--description ` — New description - `--spec ` — Path to the new .bhw spec ## `bh pat` Personal access tokens **Usage:** `bh pat ` ### **Subcommands:** - `create` — Create a token and print its value - `delete` — Delete a token - `get` — Get a token's metadata - `list` — List personal access tokens - `rotate` — Rotate a token and print the new value ## `bh pat create` Create a token and print its value **Usage:** `bh pat create [--scope ] [--expires-in-days ] ` ### **Arguments:** - `` — Token name ### **Options:** - `--scope ` — Scope name such as `project-ro` or `workflow-rw` (repeatable) - `--expires-in-days ` — Expire the token this many days from now ## `bh pat delete` Delete a token **Usage:** `bh pat delete <--id >` ### **Options:** - `--id ` — Token id ## `bh pat get` Get a token's metadata **Usage:** `bh pat get <--id >` ### **Options:** - `--id ` — Token id ## `bh pat list` List personal access tokens **Usage:** `bh pat list [--page-size ] [--page-token ]` ### **Options:** - `--page-size ` — Maximum number of tokens per page - `--page-token ` — Pagination token ## `bh pat rotate` Rotate a token and print the new value **Usage:** `bh pat rotate <--id >` ### **Options:** - `--id ` — Token id ## `bh project` Projects **Usage:** `bh project ` ### **Subcommands:** - `activate` — Activate a project - `count` — Print the project count - `create` — Create a project - `deactivate` — Deactivate a project - `delete` — Delete a project - `get` — Get a project by id or name - `list` — List projects - `update` — Update a project ## `bh project activate` Activate a project **Usage:** `bh project activate <--id >` ### **Options:** - `--id ` — Project id ## `bh project count` Print the project count **Usage:** `bh project count` ## `bh project create` Create a project **Usage:** `bh project create [--description ] ` ### **Arguments:** - `` — Project name ### **Options:** - `--description ` — Project description ## `bh project deactivate` Deactivate a project **Usage:** `bh project deactivate <--id >` ### **Options:** - `--id ` — Project id ## `bh project delete` Delete a project **Usage:** `bh project delete <--id >` ### **Options:** - `--id ` — Project id ## `bh project get` Get a project by id or name **Usage:** `bh project get [--id ] [--name ]` ### **Options:** - `--id ` — Project id - `--name ` — Project name ## `bh project list` List projects **Usage:** `bh project list [FLAGS]` ### **Options:** - `--page-size ` — Maximum number of projects to return per page - `--page-token ` — Pagination token from a previous response - `--all` — Follow pagination until every project is listed ## `bh project update` Update a project **Usage:** `bh project update ` ### **Options:** - `--id ` — Project id - `--name ` — New name - `--description ` — New description ## `bh runner` Runners **Usage:** `bh runner ` ### **Subcommands:** - `delete` — Delete a runner - `list` — List runners - `registration` — Runner registration commands - `release` — Runner release commands ## `bh runner delete` Delete a runner **Usage:** `bh runner delete <--id >` ### **Options:** - `--id ` — Runner id ## `bh runner list` List runners **Usage:** `bh runner list [FLAGS]` ### **Options:** - `--page-size ` — Maximum number of runners per page - `--page-token ` — Pagination token - `--all` — Follow pagination ## `bh runner registration` Runner registration commands **Usage:** `bh runner registration ` ### **Subcommands:** - `command` — Create a registration and print the `runner register` command - `token` — Create a registration and print its token and URL ## `bh runner registration command` Create a registration and print the `runner register` command **Usage:** `bh runner registration command` ## `bh runner registration token` Create a registration and print its token and URL **Usage:** `bh runner registration token` ## `bh runner release` Runner release commands **Usage:** `bh runner release ` ### **Subcommands:** - `latest` — Print the latest runner release - `list` — List runner releases ## `bh runner release latest` Print the latest runner release **Usage:** `bh runner release latest` ## `bh runner release list` List runner releases **Usage:** `bh runner release list [--page-size ] [--page-token ]` ### **Options:** - `--page-size ` — Maximum number of releases per page - `--page-token ` — Pagination token ## `bh scan` Workflow scans and runs **Usage:** `bh scan ` ### **Subcommands:** - `dispatch` — Dispatch a scan run - `run` — Scan run commands ## `bh scan dispatch` Dispatch a scan run **Usage:** `bh scan dispatch ` ### **Options:** - `--scan-id ` — Scan id (`:`) - `--input-string ` — String input as key=value (repeatable) - `--input-bool ` — Boolean input as key=true|false (repeatable) ## `bh scan run` Scan run commands **Usage:** `bh scan run ` ### **Subcommands:** - `cancel` — Cancel a running run - `delete` — Delete one or more finished runs - `events` — List a run's events - `get` — Get a run - `list` — List runs of a scan or revision - `logs` — Print a run's logs ## `bh scan run cancel` Cancel a running run **Usage:** `bh scan run cancel <--id >` ### **Options:** - `--id ` — Run id ## `bh scan run delete` Delete one or more finished runs **Usage:** `bh scan run delete [IDS]…` ## `bh scan run events` List a run's events **Usage:** `bh scan run events ` ### **Options:** - `--id ` — Run id - `--step-id ` — Only events from this step id - `--page-size ` — Maximum number of events per page ## `bh scan run get` Get a run **Usage:** `bh scan run get <--id >` ### **Options:** - `--id ` — Run id ## `bh scan run list` List runs of a scan or revision **Usage:** `bh scan run list [FLAGS]` ### **Options:** - `--scan-id ` — Scan id - `--revision-id ` — Revision id (lists runs across all of the revision's scans) - `--page-size ` — Maximum number of runs per page - `--page-token ` — Pagination token - `--all` — Follow pagination ## `bh scan run logs` Print a run's logs **Usage:** `bh scan run logs <--id > [-o --output ]` ### **Options:** - `--id ` — Run id - `-o, --output ` — Write the logs here instead of printing them ## `bh workflow` Workflows **Usage:** `bh workflow ` ### **Subcommands:** - `activate` — Activate a workflow - `count` — Print the workflow count for a project - `create` — Create a workflow (and its first revision) - `deactivate` — Deactivate a workflow - `delete` — Delete a workflow - `get` — Get a workflow by id or by project + workflow name - `list` — List workflows in a project - `revision` — Workflow revision commands - `scans` — List scans of a revision - `update` — Update a workflow's name or description ## `bh workflow activate` Activate a workflow **Usage:** `bh workflow activate <--id >` ### **Options:** - `--id ` — Workflow id ## `bh workflow count` Print the workflow count for a project **Usage:** `bh workflow count <--project-id >` ### **Options:** - `--project-id ` — Project id ## `bh workflow create` Create a workflow (and its first revision) **Usage:** `bh workflow create ` ### **Arguments:** - `` — Workflow name ### **Options:** - `--project-id ` — Project id - `--description ` — Workflow description - `--comment ` — Revision comment - `--spec ` — Path to the initial .bhw spec - `--revision-name ` — Revision name ## `bh workflow deactivate` Deactivate a workflow **Usage:** `bh workflow deactivate <--id >` ### **Options:** - `--id ` — Workflow id ## `bh workflow delete` Delete a workflow **Usage:** `bh workflow delete <--id >` ### **Options:** - `--id ` — Workflow id ## `bh workflow get` Get a workflow by id or by project + workflow name **Usage:** `bh workflow get [FLAGS]` ### **Options:** - `--id ` — Workflow id - `--project-name ` — Project name (with --workflow-name) - `--workflow-name ` — Workflow name (with --project-name) ## `bh workflow list` List workflows in a project **Usage:** `bh workflow list ` ### **Options:** - `--project-id ` — Project id - `--page-size ` — Maximum number of workflows per page - `--page-token ` — Pagination token - `--all` — Follow pagination ## `bh workflow revision` Workflow revision commands **Usage:** `bh workflow revision ` ### **Subcommands:** - `create` — Create a new revision - `delete` — Delete a revision - `get` — Print a revision's .bhw spec - `list` — List a workflow's revisions - `submit` — Submit a revision ## `bh workflow revision create` Create a new revision **Usage:** `bh workflow revision create ` ### **Options:** - `--workflow-id ` — Workflow id - `--spec ` — Path to the .bhw spec - `--comment ` — Revision comment - `--name ` — Revision name ## `bh workflow revision delete` Delete a revision **Usage:** `bh workflow revision delete <--revision-id >` ### **Options:** - `--revision-id ` — Revision id ## `bh workflow revision get` Print a revision's .bhw spec **Usage:** `bh workflow revision get <--revision-id > [-o --output ]` ### **Options:** - `--revision-id ` — Revision id - `-o, --output ` — Write the spec here instead of printing it ## `bh workflow revision list` List a workflow's revisions **Usage:** `bh workflow revision list ` ### **Options:** - `--workflow-id ` — Workflow id - `--page-size ` — Maximum number of revisions per page - `--page-token ` — Pagination token - `--all` — Follow pagination ## `bh workflow revision submit` Submit a revision **Usage:** `bh workflow revision submit <--revision-id >` ### **Options:** - `--revision-id ` — Revision id ## `bh workflow scans` List scans of a revision **Usage:** `bh workflow scans <--revision-id >` ### **Options:** - `--revision-id ` — Revision id ## `bh workflow update` Update a workflow's name or description **Usage:** `bh workflow update ` ### **Options:** - `--id ` — Workflow id - `--name ` — New name - `--description ` — New description