Gestores de incidenciasGitHub

Comandos de la CLI de GitHub

Consulta todos los comandos, opciones y códigos de salida de gthb, con las lecturas de la API de GitHub.

Busca cualquier comando de gthb, sus opciones y sus códigos de salida, con la seguridad de que coinciden con tu versión: esta página se genera a partir del propio programa. Para la misma lista en JSON, ejecuta gthb commands --json. Las descripciones conservan el idioma de la ayuda.

La primera palabra es el perfil, un nombre que eliges tú: gthb personal config show. GTHB_PROFILE hace lo mismo para toda una sesión de la terminal. Nunca se da un perfil por supuesto: un comando que usa una cuenta se detiene si no lo tiene y muestra los perfiles de este ordenador.

Opciones para todos los comandos

OptionWhat it does
-V, --versionoutput the version number.
-v, --verbosemore detail in what is shown: -v ids, -vv everything we know. Default: 0.
--jsonmachine-readable output: one JSON value on stdout; --json=id,text keeps only those fields.
--jsonlmachine-readable output: one JSON object per line, for streaming and jq.
--quietdiagnostics off; a failure is still said.
--tracethe connection's own log lines on stderr — never content.
--debugon a failure, its whole record — cause and stack — in place of the short line.
--timeout <duration>give up on the whole command after this — 30s, 2m, 500ms.
--offlineanswer from what was recorded and never connect; fails if nothing was.
--no-inputnever prompt or open interactive login; piped input remains available.
--max-input-bytes <bytes>maximum buffered input bytes (default: 16777216).
--max-output-bytes <bytes>maximum machine output bytes (default: 4194304; 0 disables).
--brieffound items as reference, title, time, author and excerpt only.
--fullfound items with their whole text and every provider field.
--compactone line per item for an agent: reference first, text last, paging and next steps as # lines.
--dry-runpreview parsed arguments and permissions before running the action.
--yesgo ahead without the question an ask level puts before a write.
--recordkeep this run even where the config says record false; record_input false leaves the typed words out.
--no-recorddo not keep this run, even if it fails.

gthb commands

every command by section; --json prints its contract, one path per call

gthb commands info

one command contract, or all schemas, error reasons and explicit overrides

gthb commands info [path]
ArgumentObligatoriedadWhat it is
pathoptionalone command path; without one, export schemas, error reasons and explicit overrides.

Example: gthb commands info commands

gthb session

keep this profile's GitHub fine-grained personal access token in the OS keyring

gthb session start

sign this profile in: the GitHub fine-grained personal access token is asked hidden or read from stdin, never taken as an argument, checked with GitHub, and only then kept in the keyring, or in a private file. A fine-grained token, read-only, for one owner's chosen repositories; --owner names that owner.

Changes something on this computer only.

gthb session start [options]
OptionWhat it does
--credential-storage <storage>where the token is kept: keyring, which falls back to a private file by itself, or file. Default: keyring.
--owner <name>the user or organization whose data the token reads, as octo-org.

Example: gthb personal session start --owner octo-org, gthb personal session start --credential-storage file

gthb session status

show where this profile's token comes from: GTHB_TOKEN, the keyring or a file, never the token; --check asks GitHub whose token it is

gthb session status [options]
OptionWhat it does
--checkask GitHub whether the token still works, and whose it is.

Example: gthb personal session status, gthb personal session status --check --json

gthb session end

forget this profile's token on this computer; the token itself stays valid in GitHub

Changes something on this computer only.

gthb session end

Example: gthb personal session end

gthb session list

list the profiles on this computer and whether each has a token; picks none

gthb session list

Example: gthb session list, gthb session list --json

gthb api

the raw GitHub API, one command per operation of its OpenAPI document

gthb api list

list every GitHub API operation this CLI offers, without calling GitHub

gthb api list [query]
ArgumentObligatoriedadWhat it is
queryoptionalfield:value terms that narrow the list — the fields are below.

Example: gthb personal api list, gthb personal api list effect:destructive --json=command,path

gthb api show

show one operation's parameters and request schema, without calling GitHub

gthb api show <operation>
ArgumentObligatoriedadWhat it is
operationrequiredthe operation as api list prints it (quoted), its old name, or its operation id.

Example: gthb personal api show "meta root" --json

gthb api meta

the meta operations

gthb api meta root

GitHub API Root — read (GET /)

gthb api meta root

Example: gthb personal api meta root

gthb api meta get

Get GitHub meta information — read (GET /meta)

gthb api meta get

Example: gthb personal api meta get

gthb api meta get-octocat

Get Octocat — read (GET /octocat)

gthb api meta get-octocat [options]
OptionWhat it does
--s <value>The words to show in Octocat's speech bubble.

Example: gthb personal api meta get-octocat

gthb api meta get-all-versions

Get all API versions — read (GET /versions)

gthb api meta get-all-versions

Example: gthb personal api meta get-all-versions

gthb api meta get-zen

Get the Zen of GitHub — read (GET /zen)

gthb api meta get-zen

Example: gthb personal api meta get-zen

gthb api security-advisories

the security-advisories operations

gthb api security-advisories list-global-advisories

List global security advisories — read (GET /advisories)

gthb api security-advisories list-global-advisories [options]
OptionWhat it does
--ghsa-id <value>If specified, only advisories with this GHSA (GitHub Security Advisory) identifier will be returned.
--type <value>If specified, only advisories of this type will be returned. By default, a request with no other parameters defined will only return reviewed advisories that are not malware.
--cve-id <value>If specified, only advisories with this CVE (Common Vulnerabilities and Exposures) identifier will be returned.
--ecosystem <value>If specified, only advisories for these ecosystems will be returned.
--severity <value>If specified, only advisories with these severities will be returned.
--cwes <value>If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned.
--is-withdrawn <value>Whether to only return advisories that have been withdrawn.
--affects <value>If specified, only return advisories that affect any of package or package@version. A maximum of 1000 packages can be specified.
--published <value>If specified, only return advisories that were published on a date or date range.
--updated <value>If specified, only return advisories that were updated on a date or date range.
--modified <value>If specified, only show advisories that were updated or published on a date or date range.
--epss-percentage <value>If specified, only return advisories that have an EPSS percentage score that matches the provided value.
--epss-percentile <value>If specified, only return advisories that have an EPSS percentile score that matches the provided value.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--direction <value>The direction to sort the results by.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--sort <value>The property to sort the results by.

Example: gthb personal api security-advisories list-global-advisories

gthb api security-advisories get-global-advisory

Get a global security advisory — read (GET /advisories/{ghsa_id})

gthb api security-advisories get-global-advisory [options]
OptionWhat it does
--ghsa-id <value>The GHSA (GitHub Security Advisory) identifier of the advisory.

Example: gthb personal api security-advisories get-global-advisory --ghsa-id <value>

gthb api security-advisories list-org-repository-advisories

List repository security advisories for an organization — read (GET /orgs/{org}/security-advisories)

gthb api security-advisories list-org-repository-advisories [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--direction <value>The direction to sort the results by.
--sort <value>The property to sort the results by.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of advisories to return per page. For more information, see "Using pagination in the REST API.".
--state <value>Filter by the state of the repository advisories. Only advisories of this state will be returned.

Example: gthb personal api security-advisories list-org-repository-advisories --org <value>

gthb api security-advisories list-repository-advisories

List repository security advisories — read (GET /repos/{owner}/{repo}/security-advisories)

gthb api security-advisories list-repository-advisories [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--direction <value>The direction to sort the results by.
--sort <value>The property to sort the results by.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of advisories to return per page. For more information, see "Using pagination in the REST API.".
--state <value>Filter by state of the repository advisories. Only advisories of this state will be returned.

Example: gthb personal api security-advisories list-repository-advisories --owner <value> --repo <value>

gthb api security-advisories get-repository-advisory

Get a repository security advisory — read (GET /repos/{owner}/{repo}/security-advisories/{ghsa_id})

gthb api security-advisories get-repository-advisory [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--ghsa-id <value>The GHSA (GitHub Security Advisory) identifier of the advisory.

Example: gthb personal api security-advisories get-repository-advisory --owner <value> --repo <value> --ghsa-id <value>

gthb api security-advisories list-repository-advisory-comments

List repository security advisory comments — read (GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}/comments)

gthb api security-advisories list-repository-advisory-comments [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--ghsa-id <value>The GHSA (GitHub Security Advisory) identifier of the advisory.
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api security-advisories list-repository-advisory-comments --owner <value> --repo <value> --ghsa-id <value>

gthb api security-advisories get-repository-advisory-comment

Get a repository advisory comment — read (GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}/comments/{comment_id})

gthb api security-advisories get-repository-advisory-comment [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--ghsa-id <value>The GHSA (GitHub Security Advisory) identifier of the advisory.
--comment-id <value>The unique identifier of the comment.

Example: gthb personal api security-advisories get-repository-advisory-comment --owner <value> --repo <value> --ghsa-id <value> --comment-id <value>

gthb api agent-automations

the agent-automations operations

gthb api agent-automations list-automations

List automations for user — read (GET /agents/automations)

gthb api agent-automations list-automations [options]
OptionWhat it does
--page <value>The page number of the results to fetch.
--per-page <value>The number of results per page (max 100).
--type <value>Filter automations by type. personal returns automations owned by their creator, shared returns automations owned by the repository. Omit to return both.

Example: gthb personal api agent-automations list-automations

gthb api agent-automations list-repo-automations

List automations for a repository — read (GET /agents/repos/{owner}/{repo}/automations)

gthb api agent-automations list-repo-automations [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository. The name is not case sensitive.
--page <value>The page number of the results to fetch.
--per-page <value>The number of results per page (max 100).
--type <value>Filter automations by type. personal returns automations owned by their creator, shared returns automations owned by the repository. Omit to return both.
--allread every page, as the API pages it.

Example: gthb personal api agent-automations list-repo-automations --owner <value> --repo <value>

gthb api agent-automations list-available-repo-automation-tools

List available automation tools for a repository — read (GET /agents/repos/{owner}/{repo}/automations/available-tools)

gthb api agent-automations list-available-repo-automation-tools [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository. The name is not case sensitive.

Example: gthb personal api agent-automations list-available-repo-automation-tools --owner <value> --repo <value>

gthb api agent-automations list-available-repo-automation-triggers

List available automation triggers for a repository — read (GET /agents/repos/{owner}/{repo}/automations/available-triggers)

gthb api agent-automations list-available-repo-automation-triggers [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository. The name is not case sensitive.

Example: gthb personal api agent-automations list-available-repo-automation-triggers --owner <value> --repo <value>

gthb api agent-automations get-repo-automation

Get an automation — read (GET /agents/repos/{owner}/{repo}/automations/{automation_id})

gthb api agent-automations get-repo-automation [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository. The name is not case sensitive.
--automation-id <value>The unique identifier of the automation.

Example: gthb personal api agent-automations get-repo-automation --owner <value> --repo <value> --automation-id <value>

gthb api agent-automations list-automation-revisions

List revisions for an automation — read (GET /agents/repos/{owner}/{repo}/automations/{automation_id}/revisions)

gthb api agent-automations list-automation-revisions [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository. The name is not case sensitive.
--automation-id <value>The unique identifier of the automation.
--cursor <value>Opaque cursor identifying where to continue reading revision history,.
--per-page <value>The number of results per page (max 100).

Example: gthb personal api agent-automations list-automation-revisions --owner <value> --repo <value> --automation-id <value>

gthb api agent-automations get-automation-revision

Get an automation revision — read (GET /agents/repos/{owner}/{repo}/automations/{automation_id}/revisions/{revision_id})

gthb api agent-automations get-automation-revision [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository. The name is not case sensitive.
--automation-id <value>The unique identifier of the automation.
--revision-id <value>The unique identifier of the automation revision.

Example: gthb personal api agent-automations get-automation-revision --owner <value> --repo <value> --automation-id <value> --revision-id <value>

gthb api agent-automations list-repo-automation-tasks

List tasks for an automation in a repository — read (GET /agents/repos/{owner}/{repo}/automations/{automation_id}/tasks)

gthb api agent-automations list-repo-automation-tasks [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository. The name is not case sensitive.
--automation-id <value>The unique identifier of the automation.
--per-page <value>The number of results per page (max 100).
--page <value>The page number of the results to fetch.
--sort <value>The field to sort results by. Can be updated_at or created_at.
--direction <value>The direction to sort results. Can be asc or desc.
--state <value>Comma-separated list of task states to filter by. Can be any combination of: queued, in_progress, completed, failed, idle, waiting_for_user, timed_out, cancelled.
--is-archived <value>Filter by archived status. When true, returns only archived tasks. When false or omitted, returns only non-archived tasks. Defaults to false.
--allread every page, as the API pages it.

Example: gthb personal api agent-automations list-repo-automation-tasks --owner <value> --repo <value> --automation-id <value>

gthb api agent-merge-get-agent-merge-enrollment

Get Agent Merge configuration for a pull request — read (GET /agents/repos/{owner}/{repo}/pulls/{pull_number}/agent-merge)

gthb api agent-merge-get-agent-merge-enrollment [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository. The name is not case sensitive.
--pull-number <value>The number that identifies the pull request.

Example: gthb personal api agent-merge-get-agent-merge-enrollment --owner <value> --repo <value> --pull-number <value>

gthb api agent-tasks

the agent-tasks operations

gthb api agent-tasks list-tasks-for-repo

List tasks for repository — read (GET /agents/repos/{owner}/{repo}/tasks)

gthb api agent-tasks list-tasks-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository. The name is not case sensitive.
--per-page <value>The number of results per page (max 100).
--page <value>The page number of the results to fetch.
--sort <value>The field to sort results by. Can be updated_at or created_at.
--direction <value>The direction to sort results. Can be asc or desc.
--state <value>Comma-separated list of task states to filter by. Can be any combination of: queued, in_progress, completed, failed, idle, waiting_for_user, timed_out, cancelled.
--is-archived <value>Filter by archived status. When true, returns only archived tasks. When false or omitted, returns only non-archived tasks. Defaults to false.
--since <value>Only show tasks updated at or after this time (ISO 8601 timestamp).
--creator-id <value>Filter tasks by creator user ID. Accepts one or more user IDs.
--allread every page, as the API pages it.

Example: gthb personal api agent-tasks list-tasks-for-repo --owner <value> --repo <value>

gthb api agent-tasks get-task-by-repo-and-id

Get a task by repo — read (GET /agents/repos/{owner}/{repo}/tasks/{task_id})

gthb api agent-tasks get-task-by-repo-and-id [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository. The name is not case sensitive.
--task-id <value>The unique identifier of the task.

Example: gthb personal api agent-tasks get-task-by-repo-and-id --owner <value> --repo <value> --task-id <value>

gthb api agent-tasks list-tasks

List tasks — read (GET /agents/tasks)

gthb api agent-tasks list-tasks [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100).
--page <value>The page number of the results to fetch.
--sort <value>The field to sort results by. Can be updated_at or created_at.
--direction <value>The direction to sort results. Can be asc or desc.
--state <value>Comma-separated list of task states to filter by. Can be any combination of: queued, in_progress, completed, failed, idle, waiting_for_user, timed_out, cancelled.
--is-archived <value>Filter by archived status. When true, returns only archived tasks. When false or omitted, returns only non-archived tasks. Defaults to false.
--since <value>Only show tasks updated at or after this time (ISO 8601 timestamp).
--allread every page, as the API pages it.

Example: gthb personal api agent-tasks list-tasks

gthb api agent-tasks get-task-by-id

Get a task by ID — read (GET /agents/tasks/{task_id})

gthb api agent-tasks get-task-by-id [options]
OptionWhat it does
--task-id <value>The unique identifier of the task.

Example: gthb personal api agent-tasks get-task-by-id --task-id <value>

gthb api apps

the apps operations

gthb api apps get-authenticated

Get the authenticated app — read (GET /app)

gthb api apps get-authenticated

Example: gthb personal api apps get-authenticated

gthb api apps list-installation-requests-for-authenticated-app

List installation requests for the authenticated app — read (GET /app/installation-requests)

gthb api apps list-installation-requests-for-authenticated-app [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api apps list-installation-requests-for-authenticated-app

gthb api apps list-installations

List installations for the authenticated app — read (GET /app/installations)

gthb api apps list-installations [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--outdated <value>outdated.

Example: gthb personal api apps list-installations

gthb api apps get-installation

Get an installation for the authenticated app — read (GET /app/installations/{installation_id})

gthb api apps get-installation [options]
OptionWhat it does
--installation-id <value>The unique identifier of the installation.

Example: gthb personal api apps get-installation --installation-id <value>

gthb api apps get-by-slug

Get an app — read (GET /apps/{app_slug})

gthb api apps get-by-slug [options]
OptionWhat it does
--app-slug <value>app_slug.

Example: gthb personal api apps get-by-slug --app-slug <value>

gthb api apps list-repos-accessible-to-installation

List repositories accessible to the app installation — read (GET /installation/repositories)

gthb api apps list-repos-accessible-to-installation [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api apps list-repos-accessible-to-installation

gthb api apps get-subscription-plan-for-account

Get a subscription plan for an account — read (GET /marketplace_listing/accounts/{account_id})

gthb api apps get-subscription-plan-for-account [options]
OptionWhat it does
--account-id <value>account_id parameter.

Example: gthb personal api apps get-subscription-plan-for-account --account-id <value>

gthb api apps list-plans

List plans — read (GET /marketplace_listing/plans)

gthb api apps list-plans [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api apps list-plans

gthb api apps list-accounts-for-plan

List accounts for a plan — read (GET /marketplace_listing/plans/{plan_id}/accounts)

gthb api apps list-accounts-for-plan [options]
OptionWhat it does
--plan-id <value>The unique identifier of the plan.
--sort <value>The property to sort the results by.
--direction <value>To return the oldest accounts first, set to asc. Ignored without the sort parameter.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api apps list-accounts-for-plan --plan-id <value>

gthb api apps get-subscription-plan-for-account-stubbed

Get a subscription plan for an account (stubbed) — read (GET /marketplace_listing/stubbed/accounts/{account_id})

gthb api apps get-subscription-plan-for-account-stubbed [options]
OptionWhat it does
--account-id <value>account_id parameter.

Example: gthb personal api apps get-subscription-plan-for-account-stubbed --account-id <value>

gthb api apps list-plans-stubbed

List plans (stubbed) — read (GET /marketplace_listing/stubbed/plans)

gthb api apps list-plans-stubbed [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api apps list-plans-stubbed

gthb api apps list-accounts-for-plan-stubbed

List accounts for a plan (stubbed) — read (GET /marketplace_listing/stubbed/plans/{plan_id}/accounts)

gthb api apps list-accounts-for-plan-stubbed [options]
OptionWhat it does
--plan-id <value>The unique identifier of the plan.
--sort <value>The property to sort the results by.
--direction <value>To return the oldest accounts first, set to asc. Ignored without the sort parameter.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api apps list-accounts-for-plan-stubbed --plan-id <value>

gthb api apps get-org-installation

Get an organization installation for the authenticated app — read (GET /orgs/{org}/installation)

gthb api apps get-org-installation [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api apps get-org-installation --org <value>

gthb api apps get-repo-installation

Get a repository installation for the authenticated app — read (GET /repos/{owner}/{repo}/installation)

gthb api apps get-repo-installation [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api apps get-repo-installation --owner <value> --repo <value>

gthb api apps list-installations-for-authenticated-user

List app installations accessible to the user access token — read (GET /user/installations)

gthb api apps list-installations-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api apps list-installations-for-authenticated-user

gthb api apps list-installation-repos-for-authenticated-user

List repositories accessible to the user access token — read (GET /user/installations/{installation_id}/repositories)

gthb api apps list-installation-repos-for-authenticated-user [options]
OptionWhat it does
--installation-id <value>The unique identifier of the installation.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api apps list-installation-repos-for-authenticated-user --installation-id <value>

gthb api apps list-subscriptions-for-authenticated-user

List subscriptions for the authenticated user — read (GET /user/marketplace_purchases)

gthb api apps list-subscriptions-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api apps list-subscriptions-for-authenticated-user

gthb api apps list-subscriptions-for-authenticated-user-stubbed

List subscriptions for the authenticated user (stubbed) — read (GET /user/marketplace_purchases/stubbed)

gthb api apps list-subscriptions-for-authenticated-user-stubbed [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api apps list-subscriptions-for-authenticated-user-stubbed

gthb api apps get-user-installation

Get a user installation for the authenticated app — read (GET /users/{username}/installation)

gthb api apps get-user-installation [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.

Example: gthb personal api apps get-user-installation --username <value>

gthb api classroom

the classroom operations

gthb api classroom get-an-assignment

Closed - Get an assignment — read (GET /assignments/{assignment_id})

gthb api classroom get-an-assignment [options]
OptionWhat it does
--assignment-id <value>The unique identifier of the classroom assignment.

Example: gthb personal api classroom get-an-assignment --assignment-id <value>

gthb api classroom list-accepted-assignments-for-an-assignment

Closed - List accepted assignments for an assignment — read (GET /assignments/{assignment_id}/accepted_assignments)

gthb api classroom list-accepted-assignments-for-an-assignment [options]
OptionWhat it does
--assignment-id <value>The unique identifier of the classroom assignment.

Example: gthb personal api classroom list-accepted-assignments-for-an-assignment --assignment-id <value>

gthb api classroom get-assignment-grades

Closed - Get assignment grades — read (GET /assignments/{assignment_id}/grades)

gthb api classroom get-assignment-grades [options]
OptionWhat it does
--assignment-id <value>The unique identifier of the classroom assignment.

Example: gthb personal api classroom get-assignment-grades --assignment-id <value>

gthb api classroom list-classrooms

Closed - List classrooms — read (GET /classrooms)

gthb api classroom list-classrooms

Example: gthb personal api classroom list-classrooms

gthb api classroom get-a-classroom

Closed - Get a classroom — read (GET /classrooms/{classroom_id})

gthb api classroom get-a-classroom [options]
OptionWhat it does
--classroom-id <value>The unique identifier of the classroom.

Example: gthb personal api classroom get-a-classroom --classroom-id <value>

gthb api classroom list-assignments-for-a-classroom

Closed - List assignments for a classroom — read (GET /classrooms/{classroom_id}/assignments)

gthb api classroom list-assignments-for-a-classroom [options]
OptionWhat it does
--classroom-id <value>The unique identifier of the classroom.

Example: gthb personal api classroom list-assignments-for-a-classroom --classroom-id <value>

gthb api codes-of-conduct

the codes-of-conduct operations

gthb api codes-of-conduct get-all-codes-of-conduct

Get all codes of conduct — read (GET /codes_of_conduct)

gthb api codes-of-conduct get-all-codes-of-conduct

Example: gthb personal api codes-of-conduct get-all-codes-of-conduct

gthb api codes-of-conduct get-conduct-code

Get a code of conduct — read (GET /codes_of_conduct/{key})

gthb api codes-of-conduct get-conduct-code [options]
OptionWhat it does
--key <value>key.

Example: gthb personal api codes-of-conduct get-conduct-code --key <value>

gthb api emojis-get

Get emojis — read (GET /emojis)

gthb api emojis-get

Example: gthb personal api emojis-get

gthb api actions

the actions operations

gthb api actions get-actions-cache-retention-limit-for-enterprise

Get GitHub Actions cache retention limit for an enterprise — read (GET /enterprises/{enterprise}/actions/cache/retention-limit)

gthb api actions get-actions-cache-retention-limit-for-enterprise [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.

Example: gthb personal api actions get-actions-cache-retention-limit-for-enterprise --enterprise <value>

gthb api actions get-actions-cache-storage-limit-for-enterprise

Get GitHub Actions cache storage limit for an enterprise — read (GET /enterprises/{enterprise}/actions/cache/storage-limit)

gthb api actions get-actions-cache-storage-limit-for-enterprise [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.

Example: gthb personal api actions get-actions-cache-storage-limit-for-enterprise --enterprise <value>

gthb api actions get-actions-cache-retention-limit-for-organization

Get GitHub Actions cache retention limit for an organization — read (GET /organizations/{org}/actions/cache/retention-limit)

gthb api actions get-actions-cache-retention-limit-for-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-actions-cache-retention-limit-for-organization --org <value>

gthb api actions get-actions-cache-storage-limit-for-organization

Get GitHub Actions cache storage limit for an organization — read (GET /organizations/{org}/actions/cache/storage-limit)

gthb api actions get-actions-cache-storage-limit-for-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-actions-cache-storage-limit-for-organization --org <value>

gthb api actions get-actions-cache-usage-for-org

Get GitHub Actions cache usage for an organization — read (GET /orgs/{org}/actions/cache/usage)

gthb api actions get-actions-cache-usage-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-actions-cache-usage-for-org --org <value>

gthb api actions get-actions-cache-usage-by-repo-for-org

List repositories with GitHub Actions cache usage for an organization — read (GET /orgs/{org}/actions/cache/usage-by-repository)

gthb api actions get-actions-cache-usage-by-repo-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions get-actions-cache-usage-by-repo-for-org --org <value>

gthb api actions list-hosted-runners-for-org

List GitHub-hosted runners for an organization — read (GET /orgs/{org}/actions/hosted-runners)

gthb api actions list-hosted-runners-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-hosted-runners-for-org --org <value>

gthb api actions list-custom-images-for-org

List custom images for an organization — read (GET /orgs/{org}/actions/hosted-runners/images/custom)

gthb api actions list-custom-images-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions list-custom-images-for-org --org <value>

gthb api actions get-custom-image-for-org

Get a custom image definition for GitHub Actions Hosted Runners — read (GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id})

gthb api actions get-custom-image-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--image-definition-id <value>Image definition ID of custom image.

Example: gthb personal api actions get-custom-image-for-org --org <value> --image-definition-id <value>

gthb api actions list-custom-image-versions-for-org

List image versions of a custom image for an organization — read (GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions)

gthb api actions list-custom-image-versions-for-org [options]
OptionWhat it does
--image-definition-id <value>Image definition ID of custom image.
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions list-custom-image-versions-for-org --image-definition-id <value> --org <value>

gthb api actions get-custom-image-version-for-org

Get an image version of a custom image for GitHub Actions Hosted Runners — read (GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version})

gthb api actions get-custom-image-version-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--image-definition-id <value>Image definition ID of custom image.
--version-name <value>Version of a custom image.

Example: gthb personal api actions get-custom-image-version-for-org --org <value> --image-definition-id <value> --version-name <value>

gthb api actions get-hosted-runners-github-owned-images-for-org

Get GitHub-owned images for GitHub-hosted runners in an organization — read (GET /orgs/{org}/actions/hosted-runners/images/github-owned)

gthb api actions get-hosted-runners-github-owned-images-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-hosted-runners-github-owned-images-for-org --org <value>

gthb api actions get-hosted-runners-partner-images-for-org

Get partner images for GitHub-hosted runners in an organization — read (GET /orgs/{org}/actions/hosted-runners/images/partner)

gthb api actions get-hosted-runners-partner-images-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-hosted-runners-partner-images-for-org --org <value>

gthb api actions get-hosted-runners-limits-for-org

Get limits on GitHub-hosted runners for an organization — read (GET /orgs/{org}/actions/hosted-runners/limits)

gthb api actions get-hosted-runners-limits-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-hosted-runners-limits-for-org --org <value>

gthb api actions get-hosted-runners-machine-specs-for-org

Get GitHub-hosted runners machine specs for an organization — read (GET /orgs/{org}/actions/hosted-runners/machine-sizes)

gthb api actions get-hosted-runners-machine-specs-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-hosted-runners-machine-specs-for-org --org <value>

gthb api actions get-hosted-runners-platforms-for-org

Get platforms for GitHub-hosted runners in an organization — read (GET /orgs/{org}/actions/hosted-runners/platforms)

gthb api actions get-hosted-runners-platforms-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-hosted-runners-platforms-for-org --org <value>

gthb api actions get-hosted-runner-for-org

Get a GitHub-hosted runner for an organization — read (GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id})

gthb api actions get-hosted-runner-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--hosted-runner-id <value>Unique identifier of the GitHub-hosted runner.

Example: gthb personal api actions get-hosted-runner-for-org --org <value> --hosted-runner-id <value>

gthb api actions get-github-actions-permissions-organization

Get GitHub Actions permissions for an organization — read (GET /orgs/{org}/actions/permissions)

gthb api actions get-github-actions-permissions-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-github-actions-permissions-organization --org <value>

gthb api actions get-artifact-and-log-retention-settings-organization

Get artifact and log retention settings for an organization — read (GET /orgs/{org}/actions/permissions/artifact-and-log-retention)

gthb api actions get-artifact-and-log-retention-settings-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-artifact-and-log-retention-settings-organization --org <value>

gthb api actions get-fork-pr-contributor-approval-permissions-organization

Get fork PR contributor approval permissions for an organization — read (GET /orgs/{org}/actions/permissions/fork-pr-contributor-approval)

gthb api actions get-fork-pr-contributor-approval-permissions-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-fork-pr-contributor-approval-permissions-organization --org <value>

gthb api actions get-private-repo-fork-pr-workflows-settings-organization

Get private repo fork PR workflow settings for an organization — read (GET /orgs/{org}/actions/permissions/fork-pr-workflows-private-repos)

gthb api actions get-private-repo-fork-pr-workflows-settings-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-private-repo-fork-pr-workflows-settings-organization --org <value>

gthb api actions list-selected-repositories-enabled-github-actions-organization

List selected repositories enabled for GitHub Actions in an organization — read (GET /orgs/{org}/actions/permissions/repositories)

gthb api actions list-selected-repositories-enabled-github-actions-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-selected-repositories-enabled-github-actions-organization --org <value>

gthb api actions get-allowed-actions-organization

Get allowed actions and reusable workflows for an organization — read (GET /orgs/{org}/actions/permissions/selected-actions)

gthb api actions get-allowed-actions-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-allowed-actions-organization --org <value>

gthb api actions get-self-hosted-runners-permissions-organization

Get self-hosted runners settings for an organization — read (GET /orgs/{org}/actions/permissions/self-hosted-runners)

gthb api actions get-self-hosted-runners-permissions-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-self-hosted-runners-permissions-organization --org <value>

gthb api actions list-selected-repositories-self-hosted-runners-organization

List repositories allowed to use self-hosted runners in an organization — read (GET /orgs/{org}/actions/permissions/self-hosted-runners/repositories)

gthb api actions list-selected-repositories-self-hosted-runners-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-selected-repositories-self-hosted-runners-organization --org <value>

gthb api actions get-github-actions-default-workflow-permissions-organization

Get default workflow permissions for an organization — read (GET /orgs/{org}/actions/permissions/workflow)

gthb api actions get-github-actions-default-workflow-permissions-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-github-actions-default-workflow-permissions-organization --org <value>

gthb api actions get-org-actions-policies

List organization Actions policies — read (GET /orgs/{org}/actions/policies)

gthb api actions get-org-actions-policies [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--has-parents <value>Include policies configured at higher levels that apply to this organization.
--allread every page, as the API pages it.

Example: gthb personal api actions get-org-actions-policies --org <value>

gthb api actions get-org-actions-policy

Get an organization Actions policy — read (GET /orgs/{org}/actions/policies/{policy_id})

gthb api actions get-org-actions-policy [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--policy-id <value>The ID of the policy.

Example: gthb personal api actions get-org-actions-policy --org <value> --policy-id <value>

gthb api actions list-self-hosted-runner-groups-for-org

List self-hosted runner groups for an organization — read (GET /orgs/{org}/actions/runner-groups)

gthb api actions list-self-hosted-runner-groups-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--visible-to-repository <value>Only return runner groups that are allowed to be used by this repository.
--allread every page, as the API pages it.

Example: gthb personal api actions list-self-hosted-runner-groups-for-org --org <value>

gthb api actions get-self-hosted-runner-group-for-org

Get a self-hosted runner group for an organization — read (GET /orgs/{org}/actions/runner-groups/{runner_group_id})

gthb api actions get-self-hosted-runner-group-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--runner-group-id <value>Unique identifier of the self-hosted runner group.

Example: gthb personal api actions get-self-hosted-runner-group-for-org --org <value> --runner-group-id <value>

gthb api actions list-github-hosted-runners-in-group-for-org

List GitHub-hosted runners in a group for an organization — read (GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners)

gthb api actions list-github-hosted-runners-in-group-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--runner-group-id <value>Unique identifier of the self-hosted runner group.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-github-hosted-runners-in-group-for-org --org <value> --runner-group-id <value>

gthb api actions list-repo-access-to-self-hosted-runner-group-in-org

List repository access to a self-hosted runner group in an organization — read (GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories)

gthb api actions list-repo-access-to-self-hosted-runner-group-in-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--runner-group-id <value>Unique identifier of the self-hosted runner group.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-repo-access-to-self-hosted-runner-group-in-org --org <value> --runner-group-id <value>

gthb api actions list-self-hosted-runners-in-group-for-org

List self-hosted runners in a group for an organization — read (GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners)

gthb api actions list-self-hosted-runners-in-group-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--runner-group-id <value>Unique identifier of the self-hosted runner group.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-self-hosted-runners-in-group-for-org --org <value> --runner-group-id <value>

gthb api actions list-self-hosted-runners-for-org

List self-hosted runners for an organization — read (GET /orgs/{org}/actions/runners)

gthb api actions list-self-hosted-runners-for-org [options]
OptionWhat it does
--name <value>The name of a self-hosted runner.
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-self-hosted-runners-for-org --org <value>

gthb api actions get-runner-version-deprecation-for-org

Get runner version end-of-life schedule for an organization — read (GET /orgs/{org}/actions/runners/deprecations/{version})

gthb api actions get-runner-version-deprecation-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--version-name <value>The runner version to look up.

Example: gthb personal api actions get-runner-version-deprecation-for-org --org <value> --version-name <value>

gthb api actions list-runner-applications-for-org

List runner applications for an organization — read (GET /orgs/{org}/actions/runners/downloads)

gthb api actions list-runner-applications-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions list-runner-applications-for-org --org <value>

gthb api actions get-self-hosted-runner-for-org

Get a self-hosted runner for an organization — read (GET /orgs/{org}/actions/runners/{runner_id})

gthb api actions get-self-hosted-runner-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--runner-id <value>Unique identifier of the self-hosted runner.

Example: gthb personal api actions get-self-hosted-runner-for-org --org <value> --runner-id <value>

gthb api actions list-labels-for-self-hosted-runner-for-org

List labels for a self-hosted runner for an organization — read (GET /orgs/{org}/actions/runners/{runner_id}/labels)

gthb api actions list-labels-for-self-hosted-runner-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--runner-id <value>Unique identifier of the self-hosted runner.

Example: gthb personal api actions list-labels-for-self-hosted-runner-for-org --org <value> --runner-id <value>

gthb api actions list-org-secrets

List organization secrets — read (GET /orgs/{org}/actions/secrets)

gthb api actions list-org-secrets [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-org-secrets --org <value>

gthb api actions get-org-public-key

Get an organization public key — read (GET /orgs/{org}/actions/secrets/public-key)

gthb api actions get-org-public-key [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api actions get-org-public-key --org <value>

gthb api actions get-org-secret

Get an organization secret — read (GET /orgs/{org}/actions/secrets/{secret_name})

gthb api actions get-org-secret [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--secret-name <value>The name of the secret.

Example: gthb personal api actions get-org-secret --org <value> --secret-name <value>

gthb api actions list-selected-repos-for-org-secret

List selected repositories for an organization secret — read (GET /orgs/{org}/actions/secrets/{secret_name}/repositories)

gthb api actions list-selected-repos-for-org-secret [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--secret-name <value>The name of the secret.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-selected-repos-for-org-secret --org <value> --secret-name <value>

gthb api actions list-artifacts-for-repo

List artifacts for a repository — read (GET /repos/{owner}/{repo}/actions/artifacts)

gthb api actions list-artifacts-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--name <value>The name field of an artifact. When specified, only artifacts with this name will be returned.
--allread every page, as the API pages it.

Example: gthb personal api actions list-artifacts-for-repo --owner <value> --repo <value>

gthb api actions get-artifact

Get an artifact — read (GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id})

gthb api actions get-artifact [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--artifact-id <value>The unique identifier of the artifact.

Example: gthb personal api actions get-artifact --owner <value> --repo <value> --artifact-id <value>

gthb api actions get-actions-cache-retention-limit-for-repository

Get GitHub Actions cache retention limit for a repository — read (GET /repos/{owner}/{repo}/actions/cache/retention-limit)

gthb api actions get-actions-cache-retention-limit-for-repository [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions get-actions-cache-retention-limit-for-repository --owner <value> --repo <value>

gthb api actions get-actions-cache-storage-limit-for-repository

Get GitHub Actions cache storage limit for a repository — read (GET /repos/{owner}/{repo}/actions/cache/storage-limit)

gthb api actions get-actions-cache-storage-limit-for-repository [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions get-actions-cache-storage-limit-for-repository --owner <value> --repo <value>

gthb api actions get-actions-cache-usage

Get GitHub Actions cache usage for a repository — read (GET /repos/{owner}/{repo}/actions/cache/usage)

gthb api actions get-actions-cache-usage [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions get-actions-cache-usage --owner <value> --repo <value>

gthb api actions get-actions-cache-list

List GitHub Actions caches for a repository — read (GET /repos/{owner}/{repo}/actions/caches)

gthb api actions get-actions-cache-list [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--ref <value>The full Git reference for narrowing down the cache. The ref for a branch should be formatted as refs/heads/<branch name>. To reference a pull request use refs/pull/<number>/merge.
--key <value>An explicit key or prefix for identifying the cache.
--sort <value>The property to sort the results by. created_at means when the cache was created. last_accessed_at means when the cache was last accessed. size_in_bytes is the size of the cache in bytes.
--direction <value>The direction to sort the results by.
--allread every page, as the API pages it.

Example: gthb personal api actions get-actions-cache-list --owner <value> --repo <value>

gthb api actions list-concurrency-groups-for-repository

List concurrency groups for a repository — read (GET /repos/{owner}/{repo}/actions/concurrency_groups)

gthb api actions list-concurrency-groups-for-repository [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".

Example: gthb personal api actions list-concurrency-groups-for-repository --owner <value> --repo <value>

gthb api actions get-concurrency-group-for-repository

Get a concurrency group for a repository — read (GET /repos/{owner}/{repo}/actions/concurrency_groups/{concurrency_group_name})

gthb api actions get-concurrency-group-for-repository [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--concurrency-group-name <value>The name of the concurrency group.
--ahead-of-run <value>Filter to items ahead of this workflow run ID in the queue, plus the run itself.
--ahead-of-job <value>Filter to items ahead of this job ID in the queue, plus the job itself.

Example: gthb personal api actions get-concurrency-group-for-repository --owner <value> --repo <value> --concurrency-group-name <value>

gthb api actions get-job-for-workflow-run

Get a job for a workflow run — read (GET /repos/{owner}/{repo}/actions/jobs/{job_id})

gthb api actions get-job-for-workflow-run [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--job-id <value>The unique identifier of the job.

Example: gthb personal api actions get-job-for-workflow-run --owner <value> --repo <value> --job-id <value>

gthb api actions get-custom-oidc-sub-claim-for-repo

Get the customization template for an OIDC subject claim for a repository — read (GET /repos/{owner}/{repo}/actions/oidc/customization/sub)

gthb api actions get-custom-oidc-sub-claim-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions get-custom-oidc-sub-claim-for-repo --owner <value> --repo <value>

gthb api actions list-repo-organization-secrets

List repository organization secrets — read (GET /repos/{owner}/{repo}/actions/organization-secrets)

gthb api actions list-repo-organization-secrets [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-repo-organization-secrets --owner <value> --repo <value>

gthb api actions get-github-actions-permissions-repository

Get GitHub Actions permissions for a repository — read (GET /repos/{owner}/{repo}/actions/permissions)

gthb api actions get-github-actions-permissions-repository [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions get-github-actions-permissions-repository --owner <value> --repo <value>

gthb api actions get-workflow-access-to-repository

Get the level of access for workflows outside of the repository — read (GET /repos/{owner}/{repo}/actions/permissions/access)

gthb api actions get-workflow-access-to-repository [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions get-workflow-access-to-repository --owner <value> --repo <value>

gthb api actions get-artifact-and-log-retention-settings-repository

Get artifact and log retention settings for a repository — read (GET /repos/{owner}/{repo}/actions/permissions/artifact-and-log-retention)

gthb api actions get-artifact-and-log-retention-settings-repository [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions get-artifact-and-log-retention-settings-repository --owner <value> --repo <value>

gthb api actions get-fork-pr-contributor-approval-permissions-repository

Get fork PR contributor approval permissions for a repository — read (GET /repos/{owner}/{repo}/actions/permissions/fork-pr-contributor-approval)

gthb api actions get-fork-pr-contributor-approval-permissions-repository [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions get-fork-pr-contributor-approval-permissions-repository --owner <value> --repo <value>

gthb api actions get-private-repo-fork-pr-workflows-settings-repository

Get private repo fork PR workflow settings for a repository — read (GET /repos/{owner}/{repo}/actions/permissions/fork-pr-workflows-private-repos)

gthb api actions get-private-repo-fork-pr-workflows-settings-repository [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions get-private-repo-fork-pr-workflows-settings-repository --owner <value> --repo <value>

gthb api actions get-allowed-actions-repository

Get allowed actions and reusable workflows for a repository — read (GET /repos/{owner}/{repo}/actions/permissions/selected-actions)

gthb api actions get-allowed-actions-repository [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions get-allowed-actions-repository --owner <value> --repo <value>

gthb api actions get-github-actions-default-workflow-permissions-repository

Get default workflow permissions for a repository — read (GET /repos/{owner}/{repo}/actions/permissions/workflow)

gthb api actions get-github-actions-default-workflow-permissions-repository [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions get-github-actions-default-workflow-permissions-repository --owner <value> --repo <value>

gthb api actions get-repo-actions-policies

List repository Actions policies — read (GET /repos/{owner}/{repo}/actions/policies)

gthb api actions get-repo-actions-policies [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--has-parents <value>Include policies configured at higher levels that apply to this repository.
--allread every page, as the API pages it.

Example: gthb personal api actions get-repo-actions-policies --owner <value> --repo <value>

gthb api actions get-repo-actions-policy

Get a repository Actions policy — read (GET /repos/{owner}/{repo}/actions/policies/{policy_id})

gthb api actions get-repo-actions-policy [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--policy-id <value>The ID of the policy.

Example: gthb personal api actions get-repo-actions-policy --owner <value> --repo <value> --policy-id <value>

gthb api actions list-self-hosted-runners-for-repo

List self-hosted runners for a repository — read (GET /repos/{owner}/{repo}/actions/runners)

gthb api actions list-self-hosted-runners-for-repo [options]
OptionWhat it does
--name <value>The name of a self-hosted runner.
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-self-hosted-runners-for-repo --owner <value> --repo <value>

gthb api actions get-runner-version-deprecation-for-repo

Get runner version end-of-life schedule for a repository — read (GET /repos/{owner}/{repo}/actions/runners/deprecations/{version})

gthb api actions get-runner-version-deprecation-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--version-name <value>The runner version to look up.

Example: gthb personal api actions get-runner-version-deprecation-for-repo --owner <value> --repo <value> --version-name <value>

gthb api actions list-runner-applications-for-repo

List runner applications for a repository — read (GET /repos/{owner}/{repo}/actions/runners/downloads)

gthb api actions list-runner-applications-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions list-runner-applications-for-repo --owner <value> --repo <value>

gthb api actions get-self-hosted-runner-for-repo

Get a self-hosted runner for a repository — read (GET /repos/{owner}/{repo}/actions/runners/{runner_id})

gthb api actions get-self-hosted-runner-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--runner-id <value>Unique identifier of the self-hosted runner.

Example: gthb personal api actions get-self-hosted-runner-for-repo --owner <value> --repo <value> --runner-id <value>

gthb api actions list-labels-for-self-hosted-runner-for-repo

List labels for a self-hosted runner for a repository — read (GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels)

gthb api actions list-labels-for-self-hosted-runner-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--runner-id <value>Unique identifier of the self-hosted runner.

Example: gthb personal api actions list-labels-for-self-hosted-runner-for-repo --owner <value> --repo <value> --runner-id <value>

gthb api actions list-workflow-runs-for-repo

List workflow runs for a repository — read (GET /repos/{owner}/{repo}/actions/runs)

gthb api actions list-workflow-runs-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--actor <value>Returns someone's workflow runs. Use the login for the user who created the push associated with the check suite or workflow run.
--branch <value>Returns workflow runs associated with a branch. Use the name of the branch of the push.
--event <value>Returns workflow run triggered by the event you specify. For example, push, pull_request or issue. For more information, see "Events that trigger workflows.".
--status <value>Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub Actions can set a status of waiting, pending, or requested.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--created <value>Returns workflow runs created within the given date-time range. For more information on the syntax, see "Understanding the search syntax.".
--exclude-pull-requests <value>If true pull requests are omitted from the response (empty array).
--check-suite-id <value>Returns workflow runs with the check_suite_id that you specify.
--head-sha <value>Only returns workflow runs that are associated with the specified head_sha.
--allread every page, as the API pages it.

Example: gthb personal api actions list-workflow-runs-for-repo --owner <value> --repo <value>

gthb api actions get-workflow-run

Get a workflow run — read (GET /repos/{owner}/{repo}/actions/runs/{run_id})

gthb api actions get-workflow-run [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--run-id <value>The unique identifier of the workflow run.
--exclude-pull-requests <value>If true pull requests are omitted from the response (empty array).

Example: gthb personal api actions get-workflow-run --owner <value> --repo <value> --run-id <value>

gthb api actions get-reviews-for-run

Get the review history for a workflow run — read (GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals)

gthb api actions get-reviews-for-run [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--run-id <value>The unique identifier of the workflow run.

Example: gthb personal api actions get-reviews-for-run --owner <value> --repo <value> --run-id <value>

gthb api actions list-workflow-run-artifacts

List workflow run artifacts — read (GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts)

gthb api actions list-workflow-run-artifacts [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--run-id <value>The unique identifier of the workflow run.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--name <value>The name field of an artifact. When specified, only artifacts with this name will be returned.
--direction <value>The direction to sort the results by.
--allread every page, as the API pages it.

Example: gthb personal api actions list-workflow-run-artifacts --owner <value> --repo <value> --run-id <value>

gthb api actions get-workflow-run-attempt

Get a workflow run attempt — read (GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number})

gthb api actions get-workflow-run-attempt [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--run-id <value>The unique identifier of the workflow run.
--attempt-number <value>The attempt number of the workflow run.
--exclude-pull-requests <value>If true pull requests are omitted from the response (empty array).

Example: gthb personal api actions get-workflow-run-attempt --owner <value> --repo <value> --run-id <value> --attempt-number <value>

gthb api actions list-jobs-for-workflow-run-attempt

List jobs for a workflow run attempt — read (GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs)

gthb api actions list-jobs-for-workflow-run-attempt [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--run-id <value>The unique identifier of the workflow run.
--attempt-number <value>The attempt number of the workflow run.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-jobs-for-workflow-run-attempt --owner <value> --repo <value> --run-id <value> --attempt-number <value>

gthb api actions list-concurrency-groups-for-workflow-run

List concurrency groups for a workflow run — read (GET /repos/{owner}/{repo}/actions/runs/{run_id}/concurrency_groups)

gthb api actions list-concurrency-groups-for-workflow-run [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--run-id <value>The unique identifier of the workflow run.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".

Example: gthb personal api actions list-concurrency-groups-for-workflow-run --owner <value> --repo <value> --run-id <value>

gthb api actions list-jobs-for-workflow-run

List jobs for a workflow run — read (GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs)

gthb api actions list-jobs-for-workflow-run [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--run-id <value>The unique identifier of the workflow run.
--filter <value>Filters jobs by their completed_at timestamp. latest returns jobs from the most recent execution of the workflow run. all returns all jobs for a workflow run, including from old executions of the workflow run.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-jobs-for-workflow-run --owner <value> --repo <value> --run-id <value>

gthb api actions get-pending-deployments-for-run

Get pending deployments for a workflow run — read (GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments)

gthb api actions get-pending-deployments-for-run [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--run-id <value>The unique identifier of the workflow run.

Example: gthb personal api actions get-pending-deployments-for-run --owner <value> --repo <value> --run-id <value>

gthb api actions get-workflow-run-usage

Get workflow run usage — read (GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing)

gthb api actions get-workflow-run-usage [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--run-id <value>The unique identifier of the workflow run.

Example: gthb personal api actions get-workflow-run-usage --owner <value> --repo <value> --run-id <value>

gthb api actions list-repo-secrets

List repository secrets — read (GET /repos/{owner}/{repo}/actions/secrets)

gthb api actions list-repo-secrets [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-repo-secrets --owner <value> --repo <value>

gthb api actions get-repo-public-key

Get a repository public key — read (GET /repos/{owner}/{repo}/actions/secrets/public-key)

gthb api actions get-repo-public-key [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api actions get-repo-public-key --owner <value> --repo <value>

gthb api actions get-repo-secret

Get a repository secret — read (GET /repos/{owner}/{repo}/actions/secrets/{secret_name})

gthb api actions get-repo-secret [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--secret-name <value>The name of the secret.

Example: gthb personal api actions get-repo-secret --owner <value> --repo <value> --secret-name <value>

gthb api actions list-repo-workflows

List repository workflows — read (GET /repos/{owner}/{repo}/actions/workflows)

gthb api actions list-repo-workflows [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-repo-workflows --owner <value> --repo <value>

gthb api actions get-workflow

Get a workflow — read (GET /repos/{owner}/{repo}/actions/workflows/{workflow_id})

gthb api actions get-workflow [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--workflow-id <value>The ID of the workflow. You can also pass the workflow file name as a string.

Example: gthb personal api actions get-workflow --owner <value> --repo <value> --workflow-id <value>

gthb api actions list-workflow-runs

List workflow runs for a workflow — read (GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs)

gthb api actions list-workflow-runs [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--workflow-id <value>The ID of the workflow. You can also pass the workflow file name as a string.
--actor <value>Returns someone's workflow runs. Use the login for the user who created the push associated with the check suite or workflow run.
--branch <value>Returns workflow runs associated with a branch. Use the name of the branch of the push.
--event <value>Returns workflow run triggered by the event you specify. For example, push, pull_request or issue. For more information, see "Events that trigger workflows.".
--status <value>Returns workflow runs with the check run status or conclusion that you specify. For example, a conclusion can be success or a status can be in_progress. Only GitHub Actions can set a status of waiting, pending, or requested.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--created <value>Returns workflow runs created within the given date-time range. For more information on the syntax, see "Understanding the search syntax.".
--exclude-pull-requests <value>If true pull requests are omitted from the response (empty array).
--check-suite-id <value>Returns workflow runs with the check_suite_id that you specify.
--head-sha <value>Only returns workflow runs that are associated with the specified head_sha.
--allread every page, as the API pages it.

Example: gthb personal api actions list-workflow-runs --owner <value> --repo <value> --workflow-id <value>

gthb api actions get-workflow-usage

Get workflow usage — read (GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing)

gthb api actions get-workflow-usage [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--workflow-id <value>The ID of the workflow. You can also pass the workflow file name as a string.

Example: gthb personal api actions get-workflow-usage --owner <value> --repo <value> --workflow-id <value>

gthb api actions list-environment-secrets

List environment secrets — read (GET /repos/{owner}/{repo}/environments/{environment_name}/secrets)

gthb api actions list-environment-secrets [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--environment-name <value>The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with %2F.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api actions list-environment-secrets --owner <value> --repo <value> --environment-name <value>

gthb api actions get-environment-public-key

Get an environment public key — read (GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key)

gthb api actions get-environment-public-key [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--environment-name <value>The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with %2F.

Example: gthb personal api actions get-environment-public-key --owner <value> --repo <value> --environment-name <value>

gthb api actions get-environment-secret

Get an environment secret — read (GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name})

gthb api actions get-environment-secret [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--environment-name <value>The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with %2F.
--secret-name <value>The name of the secret.

Example: gthb personal api actions get-environment-secret --owner <value> --repo <value> --environment-name <value> --secret-name <value>

gthb api oidc

the oidc operations

gthb api oidc list-oidc-custom-property-inclusions-for-enterprise

List OIDC custom property inclusions for an enterprise — read (GET /enterprises/{enterprise}/actions/oidc/customization/properties/repo)

gthb api oidc list-oidc-custom-property-inclusions-for-enterprise [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.

Example: gthb personal api oidc list-oidc-custom-property-inclusions-for-enterprise --enterprise <value>

gthb api oidc list-oidc-custom-property-inclusions-for-org

List OIDC custom property inclusions for an organization — read (GET /orgs/{org}/actions/oidc/customization/properties/repo)

gthb api oidc list-oidc-custom-property-inclusions-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api oidc list-oidc-custom-property-inclusions-for-org --org <value>

gthb api oidc get-oidc-custom-sub-template-for-org

Get the customization template for an OIDC subject claim for an organization — read (GET /orgs/{org}/actions/oidc/customization/sub)

gthb api oidc get-oidc-custom-sub-template-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api oidc get-oidc-custom-sub-template-for-org --org <value>

gthb api code-security

the code-security operations

gthb api code-security get-configurations-for-enterprise

Get code security configurations for an enterprise — read (GET /enterprises/{enterprise}/code-security/configurations)

gthb api code-security get-configurations-for-enterprise [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".

Example: gthb personal api code-security get-configurations-for-enterprise --enterprise <value>

gthb api code-security get-default-configurations-for-enterprise

Get default code security configurations for an enterprise — read (GET /enterprises/{enterprise}/code-security/configurations/defaults)

gthb api code-security get-default-configurations-for-enterprise [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.

Example: gthb personal api code-security get-default-configurations-for-enterprise --enterprise <value>

gthb api code-security get-single-configuration-for-enterprise

Retrieve a code security configuration of an enterprise — read (GET /enterprises/{enterprise}/code-security/configurations/{configuration_id})

gthb api code-security get-single-configuration-for-enterprise [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.
--configuration-id <value>The unique identifier of the code security configuration.

Example: gthb personal api code-security get-single-configuration-for-enterprise --enterprise <value> --configuration-id <value>

gthb api code-security get-repositories-for-enterprise-configuration

Get repositories associated with an enterprise code security configuration — read (GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories)

gthb api code-security get-repositories-for-enterprise-configuration [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.
--configuration-id <value>The unique identifier of the code security configuration.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--status <value>A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned.

Example: gthb personal api code-security get-repositories-for-enterprise-configuration --enterprise <value> --configuration-id <value>

gthb api code-security get-configurations-for-org

Get code security configurations for an organization — read (GET /orgs/{org}/code-security/configurations)

gthb api code-security get-configurations-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--target-type <value>The target type of the code security configuration.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".

Example: gthb personal api code-security get-configurations-for-org --org <value>

gthb api code-security get-default-configurations

Get default code security configurations — read (GET /orgs/{org}/code-security/configurations/defaults)

gthb api code-security get-default-configurations [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api code-security get-default-configurations --org <value>

gthb api code-security get-configuration

Get a code security configuration — read (GET /orgs/{org}/code-security/configurations/{configuration_id})

gthb api code-security get-configuration [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--configuration-id <value>The unique identifier of the code security configuration.

Example: gthb personal api code-security get-configuration --org <value> --configuration-id <value>

gthb api code-security get-repositories-for-configuration

Get repositories associated with a code security configuration — read (GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories)

gthb api code-security get-repositories-for-configuration [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--configuration-id <value>The unique identifier of the code security configuration.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--status <value>A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned.

Example: gthb personal api code-security get-repositories-for-configuration --org <value> --configuration-id <value>

gthb api code-security get-configuration-for-repository

Get the code security configuration associated with a repository — read (GET /repos/{owner}/{repo}/code-security-configuration)

gthb api code-security get-configuration-for-repository [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api code-security get-configuration-for-repository --owner <value> --repo <value>

gthb api copilot

the copilot operations

gthb api copilot enterprise-one-day-usage-metrics

Get Copilot enterprise usage metrics for a specific day — read (GET /enterprises/{enterprise}/copilot/metrics/reports/enterprise-1-day)

gthb api copilot enterprise-one-day-usage-metrics [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.
--day <value>The day to request data for, in YYYY-MM-DD format.

Example: gthb personal api copilot enterprise-one-day-usage-metrics --enterprise <value> --day <value>

gthb api copilot enterprise-usage-metrics

Get Copilot enterprise usage metrics — read (GET /enterprises/{enterprise}/copilot/metrics/reports/enterprise-28-day/latest)

gthb api copilot enterprise-usage-metrics [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.

Example: gthb personal api copilot enterprise-usage-metrics --enterprise <value>

gthb api copilot enterprise-repos-one-day-report

Get Copilot enterprise repository report for a specific day — read (GET /enterprises/{enterprise}/copilot/metrics/reports/repos-1-day)

gthb api copilot enterprise-repos-one-day-report [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.
--day <value>The day to request data for, in YYYY-MM-DD format.

Example: gthb personal api copilot enterprise-repos-one-day-report --enterprise <value> --day <value>

gthb api copilot enterprise-user-teams-one-day-report

Get Copilot enterprise user-teams report for a specific day — read (GET /enterprises/{enterprise}/copilot/metrics/reports/user-teams-1-day)

gthb api copilot enterprise-user-teams-one-day-report [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.
--day <value>The day to request data for, in YYYY-MM-DD format.

Example: gthb personal api copilot enterprise-user-teams-one-day-report --enterprise <value> --day <value>

gthb api copilot users-one-day-usage-metrics

Get Copilot users usage metrics for a specific day — read (GET /enterprises/{enterprise}/copilot/metrics/reports/users-1-day)

gthb api copilot users-one-day-usage-metrics [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.
--day <value>The day to request data for, in YYYY-MM-DD format.

Example: gthb personal api copilot users-one-day-usage-metrics --enterprise <value> --day <value>

gthb api copilot users-usage-metrics

Get Copilot users usage metrics — read (GET /enterprises/{enterprise}/copilot/metrics/reports/users-28-day/latest)

gthb api copilot users-usage-metrics [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.

Example: gthb personal api copilot users-usage-metrics --enterprise <value>

gthb api copilot get-enterprise-code-review-policy

Get the Copilot code review policy for an enterprise — read (GET /enterprises/{enterprise}/copilot/policies/code-review)

gthb api copilot get-enterprise-code-review-policy [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.

Example: gthb personal api copilot get-enterprise-code-review-policy --enterprise <value>

gthb api copilot get-copilot-organization-details

Get Copilot seat information and settings for an organization — read (GET /orgs/{org}/copilot/billing)

gthb api copilot get-copilot-organization-details [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api copilot get-copilot-organization-details --org <value>

gthb api copilot list-copilot-seats

List all Copilot seat assignments for an organization — read (GET /orgs/{org}/copilot/billing/seats)

gthb api copilot list-copilot-seats [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api copilot list-copilot-seats --org <value>

gthb api copilot get-organization-code-review-runner

Get the Copilot code review runner configuration for an organization — read (GET /orgs/{org}/copilot/code-review/runner)

gthb api copilot get-organization-code-review-runner [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api copilot get-organization-code-review-runner --org <value>

gthb api copilot get-organization-code-review-settings

Get Copilot code review settings for an organization — read (GET /orgs/{org}/copilot/code-review/settings)

gthb api copilot get-organization-code-review-settings [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api copilot get-organization-code-review-settings --org <value>

gthb api copilot get-copilot-coding-agent-permissions-organization

Get Copilot cloud agent permissions for an organization — read (GET /orgs/{org}/copilot/coding-agent/permissions)

gthb api copilot get-copilot-coding-agent-permissions-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api copilot get-copilot-coding-agent-permissions-organization --org <value>

gthb api copilot list-copilot-coding-agent-selected-repositories-for-organization

List repositories enabled for Copilot cloud agent in an organization — read (GET /orgs/{org}/copilot/coding-agent/permissions/repositories)

gthb api copilot list-copilot-coding-agent-selected-repositories-for-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api copilot list-copilot-coding-agent-selected-repositories-for-organization --org <value>

gthb api copilot content-exclusion-for-organization

Get Copilot content exclusion rules for an organization — read (GET /orgs/{org}/copilot/content_exclusion)

gthb api copilot content-exclusion-for-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api copilot content-exclusion-for-organization --org <value>

gthb api copilot organization-one-day-usage-metrics

Get Copilot organization usage metrics for a specific day — read (GET /orgs/{org}/copilot/metrics/reports/organization-1-day)

gthb api copilot organization-one-day-usage-metrics [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--day <value>The day to request data for, in YYYY-MM-DD format.

Example: gthb personal api copilot organization-one-day-usage-metrics --org <value> --day <value>

gthb api copilot organization-usage-metrics

Get Copilot organization usage metrics — read (GET /orgs/{org}/copilot/metrics/reports/organization-28-day/latest)

gthb api copilot organization-usage-metrics [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api copilot organization-usage-metrics --org <value>

gthb api copilot organization-repos-one-day-report

Get Copilot organization repository report for a specific day — read (GET /orgs/{org}/copilot/metrics/reports/repos-1-day)

gthb api copilot organization-repos-one-day-report [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--day <value>The day to request data for, in YYYY-MM-DD format.

Example: gthb personal api copilot organization-repos-one-day-report --org <value> --day <value>

gthb api copilot organization-user-teams-one-day-report

Get Copilot organization user-teams report for a specific day — read (GET /orgs/{org}/copilot/metrics/reports/user-teams-1-day)

gthb api copilot organization-user-teams-one-day-report [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--day <value>The day to request data for, in YYYY-MM-DD format.

Example: gthb personal api copilot organization-user-teams-one-day-report --org <value> --day <value>

gthb api copilot organization-users-one-day-usage-metrics

Get Copilot organization users usage metrics for a specific day — read (GET /orgs/{org}/copilot/metrics/reports/users-1-day)

gthb api copilot organization-users-one-day-usage-metrics [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--day <value>The day to request data for, in YYYY-MM-DD format.

Example: gthb personal api copilot organization-users-one-day-usage-metrics --org <value> --day <value>

gthb api copilot organization-users-usage-metrics

Get Copilot organization users usage metrics — read (GET /orgs/{org}/copilot/metrics/reports/users-28-day/latest)

gthb api copilot organization-users-usage-metrics [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api copilot organization-users-usage-metrics --org <value>

gthb api copilot get-organization-code-review-policy

Get the Copilot code review policy for an organization — read (GET /orgs/{org}/copilot/policies/code-review)

gthb api copilot get-organization-code-review-policy [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api copilot get-organization-code-review-policy --org <value>

gthb api copilot get-copilot-seat-details-for-user

Get Copilot seat assignment details for a user — read (GET /orgs/{org}/members/{username}/copilot)

gthb api copilot get-copilot-seat-details-for-user [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--username <value>The handle for the GitHub user account.

Example: gthb personal api copilot get-copilot-seat-details-for-user --org <value> --username <value>

gthb api copilot get-copilot-team-customizations

Get Copilot customizations for a team — read (GET /orgs/{org}/teams/{team_slug}/copilot/customizations)

gthb api copilot get-copilot-team-customizations [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--team-slug <value>The slug of the team name.

Example: gthb personal api copilot get-copilot-team-customizations --org <value> --team-slug <value>

gthb api copilot get-copilot-cloud-agent-configuration

Get Copilot cloud agent configuration for a repository — read (GET /repos/{owner}/{repo}/copilot/cloud-agent/configuration)

gthb api copilot get-copilot-cloud-agent-configuration [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api copilot get-copilot-cloud-agent-configuration --owner <value> --repo <value>

gthb api copilot get-repository-code-review-settings

Get Copilot code review settings for a repository — read (GET /repos/{owner}/{repo}/copilot/code-review/settings)

gthb api copilot get-repository-code-review-settings [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api copilot get-repository-code-review-settings --owner <value> --repo <value>

gthb api dependabot

the dependabot operations

gthb api dependabot list-alerts-for-enterprise

List Dependabot alerts for an enterprise — read (GET /enterprises/{enterprise}/dependabot/alerts)

gthb api dependabot list-alerts-for-enterprise [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.
--classification <value>A comma-separated list of vulnerability classifications. If specified, only alerts for vulnerabilities with these classifications will be returned.
--state <value>A comma-separated list of states. If specified, only alerts with these states will be returned.
--severity <value>A comma-separated list of severities. If specified, only alerts with these severities will be returned.
--ecosystem <value>A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.
--package <value>A comma-separated list of package names. If specified, only alerts for these packages will be returned.
--epss-percentage <value>CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:.
--has <value>Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.
--assignee <value>Filter alerts by assignees.
--scope <value>The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned.
--relationship <value>A comma-separated list of relationships of the vulnerable dependency to your project. If specified, only alerts with these relationships will be returned.
--sort <value>The property by which to sort the results.
--direction <value>The direction to sort the results by.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api dependabot list-alerts-for-enterprise --enterprise <value>

gthb api dependabot repository-access-for-enterprise

Lists the repositories Dependabot can access in an enterprise — read (GET /enterprises/{enterprise}/dependabot/repository-access)

gthb api dependabot repository-access-for-enterprise [options]
OptionWhat it does
--enterprise <value>The slug version of the enterprise name.
--page <value>The page number of results to fetch.
--per-page <value>Number of results per page.
--allread every page, as the API pages it.

Example: gthb personal api dependabot repository-access-for-enterprise --enterprise <value>

gthb api dependabot list-alerts-for-org

List Dependabot alerts for an organization — read (GET /orgs/{org}/dependabot/alerts)

gthb api dependabot list-alerts-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--classification <value>A comma-separated list of vulnerability classifications. If specified, only alerts for vulnerabilities with these classifications will be returned.
--state <value>A comma-separated list of states. If specified, only alerts with these states will be returned.
--severity <value>A comma-separated list of severities. If specified, only alerts with these severities will be returned.
--ecosystem <value>A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.
--package <value>A comma-separated list of package names. If specified, only alerts for these packages will be returned.
--epss-percentage <value>CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:.
--artifact-registry-url <value>A comma-separated list of artifact registry URLs. If specified, only alerts for repositories with storage records matching these URLs will be returned.
--artifact-registry <value>A comma-separated list of Artifact Registry name strings. If specified, only alerts for repositories with storage records matching these registries will be returned.
--has <value>Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.
--assignee <value>Filter alerts by assignees.
--runtime-risk <value>A comma-separated list of runtime risk strings. If specified, only alerts for repositories with deployment records matching these risks will be returned.
--scope <value>The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned.
--relationship <value>A comma-separated list of relationships of the vulnerable dependency to your project. If specified, only alerts with these relationships will be returned.
--sort <value>The property by which to sort the results.
--direction <value>The direction to sort the results by.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api dependabot list-alerts-for-org --org <value>

gthb api dependabot repository-access-for-org

Lists the repositories Dependabot can access in an organization — read (GET /orgs/{org}/dependabot/repository-access)

gthb api dependabot repository-access-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--page <value>The page number of results to fetch.
--per-page <value>Number of results per page.
--allread every page, as the API pages it.

Example: gthb personal api dependabot repository-access-for-org --org <value>

gthb api dependabot list-org-secrets

List organization secrets — read (GET /orgs/{org}/dependabot/secrets)

gthb api dependabot list-org-secrets [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api dependabot list-org-secrets --org <value>

gthb api dependabot get-org-public-key

Get an organization public key — read (GET /orgs/{org}/dependabot/secrets/public-key)

gthb api dependabot get-org-public-key [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api dependabot get-org-public-key --org <value>

gthb api dependabot get-org-secret

Get an organization secret — read (GET /orgs/{org}/dependabot/secrets/{secret_name})

gthb api dependabot get-org-secret [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--secret-name <value>The name of the secret.

Example: gthb personal api dependabot get-org-secret --org <value> --secret-name <value>

gthb api dependabot list-selected-repos-for-org-secret

List selected repositories for an organization secret — read (GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories)

gthb api dependabot list-selected-repos-for-org-secret [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--secret-name <value>The name of the secret.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api dependabot list-selected-repos-for-org-secret --org <value> --secret-name <value>

gthb api dependabot list-alerts-for-repo

List Dependabot alerts for a repository — read (GET /repos/{owner}/{repo}/dependabot/alerts)

gthb api dependabot list-alerts-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--classification <value>A comma-separated list of vulnerability classifications. If specified, only alerts for vulnerabilities with these classifications will be returned.
--state <value>A comma-separated list of states. If specified, only alerts with these states will be returned.
--severity <value>A comma-separated list of severities. If specified, only alerts with these severities will be returned.
--ecosystem <value>A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.
--package <value>A comma-separated list of package names. If specified, only alerts for these packages will be returned.
--manifest <value>A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned.
--epss-percentage <value>CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:.
--has <value>Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.
--assignee <value>Filter alerts by assignees.
--scope <value>The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned.
--relationship <value>A comma-separated list of relationships of the vulnerable dependency to your project. If specified, only alerts with these relationships will be returned.
--sort <value>The property by which to sort the results.
--direction <value>The direction to sort the results by.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api dependabot list-alerts-for-repo --owner <value> --repo <value>

gthb api dependabot get-alert

Get a Dependabot alert — read (GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number})

gthb api dependabot get-alert [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--alert-number <value>The number that identifies a Dependabot alert in its repository.

Example: gthb personal api dependabot get-alert --owner <value> --repo <value> --alert-number <value>

gthb api dependabot get-repository-runner-settings

Get repository Dependabot runner settings — read (GET /repos/{owner}/{repo}/dependabot/runner-settings)

gthb api dependabot get-repository-runner-settings [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api dependabot get-repository-runner-settings --owner <value> --repo <value>

gthb api dependabot list-repo-secrets

List repository secrets — read (GET /repos/{owner}/{repo}/dependabot/secrets)

gthb api dependabot list-repo-secrets [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api dependabot list-repo-secrets --owner <value> --repo <value>

gthb api dependabot get-repo-public-key

Get a repository public key — read (GET /repos/{owner}/{repo}/dependabot/secrets/public-key)

gthb api dependabot get-repo-public-key [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api dependabot get-repo-public-key --owner <value> --repo <value>

gthb api dependabot get-repo-secret

Get a repository secret — read (GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name})

gthb api dependabot get-repo-secret [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--secret-name <value>The name of the secret.

Example: gthb personal api dependabot get-repo-secret --owner <value> --repo <value> --secret-name <value>

gthb api activity

the activity operations

gthb api activity list-public-events

List public events — read (GET /events)

gthb api activity list-public-events [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-public-events

gthb api activity get-feeds

Get feeds — read (GET /feeds)

gthb api activity get-feeds

Example: gthb personal api activity get-feeds

gthb api activity list-public-events-for-repo-network

List public events for a network of repositories — read (GET /networks/{owner}/{repo}/events)

gthb api activity list-public-events-for-repo-network [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-public-events-for-repo-network --owner <value> --repo <value>

gthb api activity list-notifications-for-authenticated-user

List notifications for the authenticated user — read (GET /notifications)

gthb api activity list-notifications-for-authenticated-user [options]
OptionWhat it does
--all <value>If true, show notifications marked as read.
--is-done <value>Whether to return only done notifications (true) or exclude them (false). When omitted, notifications are not filtered by done status. Use all=true&is_done=true for done notifications or all=true&is_done=false for both read and unread inbox notifications. If all is omitted or false, is_done=true returns no notifications.
--participating <value>If true, only shows notifications in which the user is directly participating or mentioned.
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--before <value>Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 50). For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-notifications-for-authenticated-user

gthb api activity get-thread

Get a thread — read (GET /notifications/threads/{thread_id})

gthb api activity get-thread [options]
OptionWhat it does
--thread-id <value>The unique identifier of the notification thread. This corresponds to the value returned in the id field when you retrieve notifications (for example with the GET /notifications operation).

Example: gthb personal api activity get-thread --thread-id <value>

gthb api activity get-thread-subscription-for-authenticated-user

Get a thread subscription for the authenticated user — read (GET /notifications/threads/{thread_id}/subscription)

gthb api activity get-thread-subscription-for-authenticated-user [options]
OptionWhat it does
--thread-id <value>The unique identifier of the notification thread. This corresponds to the value returned in the id field when you retrieve notifications (for example with the GET /notifications operation).

Example: gthb personal api activity get-thread-subscription-for-authenticated-user --thread-id <value>

gthb api activity list-public-org-events

List public organization events — read (GET /orgs/{org}/events)

gthb api activity list-public-org-events [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-public-org-events --org <value>

gthb api activity list-repo-events

List repository events — read (GET /repos/{owner}/{repo}/events)

gthb api activity list-repo-events [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-repo-events --owner <value> --repo <value>

gthb api activity list-repo-notifications-for-authenticated-user

List repository notifications for the authenticated user — read (GET /repos/{owner}/{repo}/notifications)

gthb api activity list-repo-notifications-for-authenticated-user [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--all <value>If true, show notifications marked as read.
--is-done <value>Whether to return only done notifications (true) or exclude them (false). When omitted, notifications are not filtered by done status. Use all=true&is_done=true for done notifications or all=true&is_done=false for both read and unread inbox notifications. If all is omitted or false, is_done=true returns no notifications.
--participating <value>If true, only shows notifications in which the user is directly participating or mentioned.
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--before <value>Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-repo-notifications-for-authenticated-user --owner <value> --repo <value>

gthb api activity list-stargazers-for-repo

List stargazers — read (GET /repos/{owner}/{repo}/stargazers)

gthb api activity list-stargazers-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-stargazers-for-repo --owner <value> --repo <value>

gthb api activity get-stargazer-count-for-repo

Get stargazer count — read (GET /repos/{owner}/{repo}/stargazers/count)

gthb api activity get-stargazer-count-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api activity get-stargazer-count-for-repo --owner <value> --repo <value>

gthb api activity get-stargazer-history-for-repo

Get repository star history — read (GET /repos/{owner}/{repo}/stargazers/history)

gthb api activity get-stargazer-history-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 30). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity get-stargazer-history-for-repo --owner <value> --repo <value>

gthb api activity list-watchers-for-repo

List watchers — read (GET /repos/{owner}/{repo}/subscribers)

gthb api activity list-watchers-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-watchers-for-repo --owner <value> --repo <value>

gthb api activity get-repo-subscription

Get a repository subscription — read (GET /repos/{owner}/{repo}/subscription)

gthb api activity get-repo-subscription [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api activity get-repo-subscription --owner <value> --repo <value>

gthb api activity list-repos-starred-by-authenticated-user

List repositories starred by the authenticated user — read (GET /user/starred)

gthb api activity list-repos-starred-by-authenticated-user [options]
OptionWhat it does
--sort <value>The property to sort the results by. created means when the repository was starred. updated means when the repository was last pushed to.
--direction <value>The direction to sort the results by.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-repos-starred-by-authenticated-user

gthb api activity check-repo-is-starred-by-authenticated-user

Check if a repository is starred by the authenticated user — read (GET /user/starred/{owner}/{repo})

gthb api activity check-repo-is-starred-by-authenticated-user [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api activity check-repo-is-starred-by-authenticated-user --owner <value> --repo <value>

gthb api activity list-watched-repos-for-authenticated-user

List repositories watched by the authenticated user — read (GET /user/subscriptions)

gthb api activity list-watched-repos-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-watched-repos-for-authenticated-user

gthb api activity list-events-for-authenticated-user

List events for the authenticated user — read (GET /users/{username}/events)

gthb api activity list-events-for-authenticated-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-events-for-authenticated-user --username <value>

gthb api activity list-org-events-for-authenticated-user

List organization events for the authenticated user — read (GET /users/{username}/events/orgs/{org})

gthb api activity list-org-events-for-authenticated-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-org-events-for-authenticated-user --username <value> --org <value>

gthb api activity list-public-events-for-user

List public events for a user — read (GET /users/{username}/events/public)

gthb api activity list-public-events-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-public-events-for-user --username <value>

gthb api activity list-received-events-for-user

List events received by the authenticated user — read (GET /users/{username}/received_events)

gthb api activity list-received-events-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-received-events-for-user --username <value>

gthb api activity list-received-public-events-for-user

List public events received by a user — read (GET /users/{username}/received_events/public)

gthb api activity list-received-public-events-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-received-public-events-for-user --username <value>

gthb api activity list-repos-starred-by-user

List repositories starred by a user — read (GET /users/{username}/starred)

gthb api activity list-repos-starred-by-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--sort <value>The property to sort the results by. created means when the repository was starred. updated means when the repository was last pushed to.
--direction <value>The direction to sort the results by.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-repos-starred-by-user --username <value>

gthb api activity list-repos-watched-by-user

List repositories watched by a user — read (GET /users/{username}/subscriptions)

gthb api activity list-repos-watched-by-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api activity list-repos-watched-by-user --username <value>

gthb api gitignore

the gitignore operations

gthb api gitignore get-all-templates

Get all gitignore templates — read (GET /gitignore/templates)

gthb api gitignore get-all-templates

Example: gthb personal api gitignore get-all-templates

gthb api gitignore get-template

Get a gitignore template — read (GET /gitignore/templates/{name})

gthb api gitignore get-template [options]
OptionWhat it does
--name <value>name.

Example: gthb personal api gitignore get-template --name <value>

gthb api issues

the issues operations

gthb api issues list

List issues assigned to the authenticated user — read (GET /issues)

gthb api issues list [options]
OptionWhat it does
--filter <value>Indicates which sorts of issues to return. assigned means issues assigned to you. created means issues created by you. mentioned means issues mentioning you. subscribed means issues you're subscribed to updates for. all or repos means all issues you can see, regardless of participation or creation.
--state <value>Indicates the state of the issues to return.
--labels <value>A list of comma separated label names. Example: bug,ui,@high.
--sort <value>What to sort results by.
--direction <value>The direction to sort the results by.
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--collab <value>collab.
--orgs <value>orgs.
--owned <value>owned.
--pulls <value>pulls.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list

gthb api issues list-for-org

List organization issues assigned to the authenticated user — read (GET /orgs/{org}/issues)

gthb api issues list-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--filter <value>Indicates which sorts of issues to return. assigned means issues assigned to you. created means issues created by you. mentioned means issues mentioning you. subscribed means issues you're subscribed to updates for. all or repos means all issues you can see, regardless of participation or creation.
--state <value>Indicates the state of the issues to return.
--labels <value>A list of comma separated label names. Example: bug,ui,@high.
--type <value>Can be the name of an issue type.
--sort <value>What to sort results by.
--direction <value>The direction to sort the results by.
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-for-org --org <value>

gthb api issues list-assignees

List assignees — read (GET /repos/{owner}/{repo}/assignees)

gthb api issues list-assignees [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-assignees --owner <value> --repo <value>

gthb api issues check-user-can-be-assigned

Check if a user can be assigned — read (GET /repos/{owner}/{repo}/assignees/{assignee})

gthb api issues check-user-can-be-assigned [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--assignee <value>assignee.

Example: gthb personal api issues check-user-can-be-assigned --owner <value> --repo <value> --assignee <value>

gthb api issues list-for-repo

List repository issues — read (GET /repos/{owner}/{repo}/issues)

gthb api issues list-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--milestone <value>If an integer is passed, it should refer to a milestone by its number field. If the string * is passed, issues with any milestone are accepted. If the string none is passed, issues without milestones are returned.
--state <value>Indicates the state of the issues to return.
--assignee <value>Can be the name of a user. Pass in none for issues with no assigned user, and * for issues assigned to any user.
--type <value>Can be the name of an issue type. If the string * is passed, issues with any type are accepted. If the string none is passed, issues without type are returned.
--creator <value>The user that created the issue.
--mentioned <value>A user that's mentioned in the issue.
--issue-field-values <value>A comma-separated list of issue field filters in field_slug:value format.
--labels <value>A list of comma separated label names. Example: bug,ui,@high.
--sort <value>What to sort results by.
--direction <value>The direction to sort the results by.
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-for-repo --owner <value> --repo <value>

gthb api issues list-comments-for-repo

List issue comments for a repository — read (GET /repos/{owner}/{repo}/issues/comments)

gthb api issues list-comments-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--sort <value>The property to sort the results by.
--direction <value>Either asc or desc. Ignored without the sort parameter.
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-comments-for-repo --owner <value> --repo <value>

gthb api issues get-comment

Get an issue comment — read (GET /repos/{owner}/{repo}/issues/comments/{comment_id})

gthb api issues get-comment [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--comment-id <value>The unique identifier of the comment.

Example: gthb personal api issues get-comment --owner <value> --repo <value> --comment-id <value>

gthb api issues list-events-for-repo

List issue events for a repository — read (GET /repos/{owner}/{repo}/issues/events)

gthb api issues list-events-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-events-for-repo --owner <value> --repo <value>

gthb api issues get-event

Get an issue event — read (GET /repos/{owner}/{repo}/issues/events/{event_id})

gthb api issues get-event [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--event-id <value>event_id.

Example: gthb personal api issues get-event --owner <value> --repo <value> --event-id <value>

gthb api issues get

Get an issue — read (GET /repos/{owner}/{repo}/issues/{issue_number})

gthb api issues get [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.

Example: gthb personal api issues get --owner <value> --repo <value> --issue-number <value>

gthb api issues list-issue-artifacts

List issue artifacts — read (GET /repos/{owner}/{repo}/issues/{issue_number}/artifacts)

gthb api issues list-issue-artifacts [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--type <value>The artifact type to return.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-issue-artifacts --owner <value> --repo <value> --issue-number <value>

gthb api issues get-issue-artifact

Get an issue artifact — read (GET /repos/{owner}/{repo}/issues/{issue_number}/artifacts/{artifact_number})

gthb api issues get-issue-artifact [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--artifact-number <value>The artifact number within the issue.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues get-issue-artifact --owner <value> --repo <value> --issue-number <value> --artifact-number <value>

gthb api issues check-user-can-be-assigned-to-issue

Check if a user can be assigned to a issue — read (GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee})

gthb api issues check-user-can-be-assigned-to-issue [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--assignee <value>assignee.

Example: gthb personal api issues check-user-can-be-assigned-to-issue --owner <value> --repo <value> --issue-number <value> --assignee <value>

gthb api issues list-comments

List issue comments — read (GET /repos/{owner}/{repo}/issues/{issue_number}/comments)

gthb api issues list-comments [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-comments --owner <value> --repo <value> --issue-number <value>

gthb api issues list-dependencies-blocked-by

List dependencies an issue is blocked by — read (GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by)

gthb api issues list-dependencies-blocked-by [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-dependencies-blocked-by --owner <value> --repo <value> --issue-number <value>

gthb api issues list-dependencies-blocking

List dependencies an issue is blocking — read (GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking)

gthb api issues list-dependencies-blocking [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-dependencies-blocking --owner <value> --repo <value> --issue-number <value>

gthb api issues list-events

List issue events — read (GET /repos/{owner}/{repo}/issues/{issue_number}/events)

gthb api issues list-events [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-events --owner <value> --repo <value> --issue-number <value>

gthb api issues list-issue-field-values-for-issue

List issue field values for an issue — read (GET /repos/{owner}/{repo}/issues/{issue_number}/issue-field-values)

gthb api issues list-issue-field-values-for-issue [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-issue-field-values-for-issue --owner <value> --repo <value> --issue-number <value>

gthb api issues list-labels-on-issue

List labels for an issue — read (GET /repos/{owner}/{repo}/issues/{issue_number}/labels)

gthb api issues list-labels-on-issue [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-labels-on-issue --owner <value> --repo <value> --issue-number <value>

gthb api issues get-parent

Get parent issue — read (GET /repos/{owner}/{repo}/issues/{issue_number}/parent)

gthb api issues get-parent [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.

Example: gthb personal api issues get-parent --owner <value> --repo <value> --issue-number <value>

gthb api issues list-relates-to

List issues related to an issue — read (GET /repos/{owner}/{repo}/issues/{issue_number}/relates_to)

gthb api issues list-relates-to [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-relates-to --owner <value> --repo <value> --issue-number <value>

gthb api issues list-sub-issues

List sub-issues — read (GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues)

gthb api issues list-sub-issues [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-sub-issues --owner <value> --repo <value> --issue-number <value>

gthb api issues list-suggestions

List issue suggestions — read (GET /repos/{owner}/{repo}/issues/{issue_number}/suggestions)

gthb api issues list-suggestions [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--state <value>Filter suggestions by their state.
--action <value>Filter suggestions by the change they propose.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-suggestions --owner <value> --repo <value> --issue-number <value>

gthb api issues list-events-for-timeline

List timeline events for an issue — read (GET /repos/{owner}/{repo}/issues/{issue_number}/timeline)

gthb api issues list-events-for-timeline [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--exclude <value>A comma-separated list of timeline event names to exclude from the response.

Example: gthb personal api issues list-events-for-timeline --owner <value> --repo <value> --issue-number <value>

gthb api issues list-labels-for-repo

List labels for a repository — read (GET /repos/{owner}/{repo}/labels)

gthb api issues list-labels-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-labels-for-repo --owner <value> --repo <value>

gthb api issues get-label

Get a label — read (GET /repos/{owner}/{repo}/labels/{name})

gthb api issues get-label [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--name <value>name.

Example: gthb personal api issues get-label --owner <value> --repo <value> --name <value>

gthb api issues list-milestones

List milestones — read (GET /repos/{owner}/{repo}/milestones)

gthb api issues list-milestones [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--state <value>The state of the milestone. Either open, closed, or all.
--sort <value>What to sort results by. Either due_on or completeness.
--direction <value>The direction of the sort. Either asc or desc.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-milestones --owner <value> --repo <value>

gthb api issues get-milestone

Get a milestone — read (GET /repos/{owner}/{repo}/milestones/{milestone_number})

gthb api issues get-milestone [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--milestone-number <value>The number that identifies the milestone.

Example: gthb personal api issues get-milestone --owner <value> --repo <value> --milestone-number <value>

gthb api issues list-labels-for-milestone

List labels for issues in a milestone — read (GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels)

gthb api issues list-labels-for-milestone [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--milestone-number <value>The number that identifies the milestone.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-labels-for-milestone --owner <value> --repo <value> --milestone-number <value>

gthb api issues list-for-authenticated-user

List user account issues assigned to the authenticated user — read (GET /user/issues)

gthb api issues list-for-authenticated-user [options]
OptionWhat it does
--filter <value>Indicates which sorts of issues to return. assigned means issues assigned to you. created means issues created by you. mentioned means issues mentioning you. subscribed means issues you're subscribed to updates for. all or repos means all issues you can see, regardless of participation or creation.
--state <value>Indicates the state of the issues to return.
--labels <value>A list of comma separated label names. Example: bug,ui,@high.
--sort <value>What to sort results by.
--direction <value>The direction to sort the results by.
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api issues list-for-authenticated-user

gthb api licenses

the licenses operations

gthb api licenses get-all-commonly-used

Get all commonly used licenses — read (GET /licenses)

gthb api licenses get-all-commonly-used [options]
OptionWhat it does
--featured <value>featured.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api licenses get-all-commonly-used

gthb api licenses get

Get a license — read (GET /licenses/{license})

gthb api licenses get [options]
OptionWhat it does
--license <value>license.

Example: gthb personal api licenses get --license <value>

gthb api orgs

the orgs operations

gthb api orgs list

List organizations — read (GET /organizations)

gthb api orgs list [options]
OptionWhat it does
--since <value>An organization ID. Only return organizations with an ID greater than this ID.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list

gthb api orgs get

Get an organization — read (GET /orgs/{org})

gthb api orgs get [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api orgs get --org <value>

gthb api orgs get-cluster-deployment-records-job

Get cluster deployment records job status — read (GET /orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/jobs/{job_id})

gthb api orgs get-cluster-deployment-records-job [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--cluster <value>The cluster name.
--job-id <value>The ID of the job.

Example: gthb personal api orgs get-cluster-deployment-records-job --org <value> --cluster <value> --job-id <value>

gthb api orgs list-artifact-deployment-records

List artifact deployment records — read (GET /orgs/{org}/artifacts/{subject_digest}/metadata/deployment-records)

gthb api orgs list-artifact-deployment-records [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--subject-digest <value>The SHA256 digest of the artifact, in the form sha256:HEX_DIGEST.

Example: gthb personal api orgs list-artifact-deployment-records --org <value> --subject-digest <value>

gthb api orgs list-artifact-storage-records

List artifact storage records — read (GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records)

gthb api orgs list-artifact-storage-records [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--subject-digest <value>The parameter should be set to the attestation's subject's SHA256 digest, in the form sha256:HEX_DIGEST.

Example: gthb personal api orgs list-artifact-storage-records --org <value> --subject-digest <value>

gthb api orgs list-attestation-repositories

List attestation repositories — read (GET /orgs/{org}/attestations/repositories)

gthb api orgs list-attestation-repositories [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--org <value>The organization name. The name is not case sensitive.
--predicate-type <value>Optional filter for fetching attestations with a given predicate type.

Example: gthb personal api orgs list-attestation-repositories --org <value>

gthb api orgs list-attestations

List attestations — read (GET /orgs/{org}/attestations/{subject_digest})

gthb api orgs list-attestations [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--org <value>The organization name. The name is not case sensitive.
--subject-digest <value>The parameter should be set to the attestation's subject's SHA256 digest, in the form sha256:HEX_DIGEST.
--predicate-type <value>Optional filter for fetching attestations with a given predicate type.

Example: gthb personal api orgs list-attestations --org <value> --subject-digest <value>

gthb api orgs list-blocked-users

List users blocked by an organization — read (GET /orgs/{org}/blocks)

gthb api orgs list-blocked-users [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-blocked-users --org <value>

gthb api orgs check-blocked-user

Check if a user is blocked by an organization — read (GET /orgs/{org}/blocks/{username})

gthb api orgs check-blocked-user [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--username <value>The handle for the GitHub user account.

Example: gthb personal api orgs check-blocked-user --org <value> --username <value>

gthb api orgs list-failed-invitations

List failed organization invitations — read (GET /orgs/{org}/failed_invitations)

gthb api orgs list-failed-invitations [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-failed-invitations --org <value>

gthb api orgs api-insights-get-route-stats-by-actor

Get route stats by actor — read (GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id})

gthb api orgs api-insights-get-route-stats-by-actor [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--actor-type <value>The type of the actor.
--actor-id <value>The ID of the actor.
--min-timestamp <value>The minimum timestamp to query for stats. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--max-timestamp <value>The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--direction <value>The direction to sort the results by.
--sort <value>The property to sort the results by.
--api-route-substring <value>Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search.

Example: gthb personal api orgs api-insights-get-route-stats-by-actor --org <value> --actor-type <value> --actor-id <value> --min-timestamp <value>

gthb api orgs api-insights-get-subject-stats

Get subject stats — read (GET /orgs/{org}/insights/api/subject-stats)

gthb api orgs api-insights-get-subject-stats [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--min-timestamp <value>The minimum timestamp to query for stats. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--max-timestamp <value>The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--direction <value>The direction to sort the results by.
--sort <value>The property to sort the results by.
--subject-name-substring <value>Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search.

Example: gthb personal api orgs api-insights-get-subject-stats --org <value> --min-timestamp <value>

gthb api orgs api-insights-get-summary-stats

Get summary stats — read (GET /orgs/{org}/insights/api/summary-stats)

gthb api orgs api-insights-get-summary-stats [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--min-timestamp <value>The minimum timestamp to query for stats. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--max-timestamp <value>The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

Example: gthb personal api orgs api-insights-get-summary-stats --org <value> --min-timestamp <value>

gthb api orgs api-insights-get-summary-stats-by-user

Get summary stats by user — read (GET /orgs/{org}/insights/api/summary-stats/users/{user_id})

gthb api orgs api-insights-get-summary-stats-by-user [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--user-id <value>The ID of the user to query for stats.
--min-timestamp <value>The minimum timestamp to query for stats. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--max-timestamp <value>The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

Example: gthb personal api orgs api-insights-get-summary-stats-by-user --org <value> --user-id <value> --min-timestamp <value>

gthb api orgs api-insights-get-summary-stats-by-actor

Get summary stats by actor — read (GET /orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id})

gthb api orgs api-insights-get-summary-stats-by-actor [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--min-timestamp <value>The minimum timestamp to query for stats. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--max-timestamp <value>The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--actor-type <value>The type of the actor.
--actor-id <value>The ID of the actor.

Example: gthb personal api orgs api-insights-get-summary-stats-by-actor --org <value> --min-timestamp <value> --actor-type <value> --actor-id <value>

gthb api orgs api-insights-get-time-stats

Get time stats — read (GET /orgs/{org}/insights/api/time-stats)

gthb api orgs api-insights-get-time-stats [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--min-timestamp <value>The minimum timestamp to query for stats. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--max-timestamp <value>The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--timestamp-increment <value>The increment of time used to breakdown the query results (5m, 10m, 1h, etc.).

Example: gthb personal api orgs api-insights-get-time-stats --org <value> --min-timestamp <value> --timestamp-increment <value>

gthb api orgs api-insights-get-time-stats-by-user

Get time stats by user — read (GET /orgs/{org}/insights/api/time-stats/users/{user_id})

gthb api orgs api-insights-get-time-stats-by-user [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--user-id <value>The ID of the user to query for stats.
--min-timestamp <value>The minimum timestamp to query for stats. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--max-timestamp <value>The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--timestamp-increment <value>The increment of time used to breakdown the query results (5m, 10m, 1h, etc.).

Example: gthb personal api orgs api-insights-get-time-stats-by-user --org <value> --user-id <value> --min-timestamp <value> --timestamp-increment <value>

gthb api orgs api-insights-get-time-stats-by-actor

Get time stats by actor — read (GET /orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id})

gthb api orgs api-insights-get-time-stats-by-actor [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--actor-type <value>The type of the actor.
--actor-id <value>The ID of the actor.
--min-timestamp <value>The minimum timestamp to query for stats. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--max-timestamp <value>The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--timestamp-increment <value>The increment of time used to breakdown the query results (5m, 10m, 1h, etc.).

Example: gthb personal api orgs api-insights-get-time-stats-by-actor --org <value> --actor-type <value> --actor-id <value> --min-timestamp <value> --timestamp-increment <value>

gthb api orgs api-insights-get-user-stats

Get user stats — read (GET /orgs/{org}/insights/api/user-stats/{user_id})

gthb api orgs api-insights-get-user-stats [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--user-id <value>The ID of the user to query for stats.
--min-timestamp <value>The minimum timestamp to query for stats. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--max-timestamp <value>The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--direction <value>The direction to sort the results by.
--sort <value>The property to sort the results by.
--actor-name-substring <value>Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search.

Example: gthb personal api orgs api-insights-get-user-stats --org <value> --user-id <value> --min-timestamp <value>

gthb api orgs list-app-installations

List app installations for an organization — read (GET /orgs/{org}/installations)

gthb api orgs list-app-installations [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api orgs list-app-installations --org <value>

gthb api orgs list-pending-invitations

List pending organization invitations — read (GET /orgs/{org}/invitations)

gthb api orgs list-pending-invitations [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--role <value>Filter invitations by their member role.
--invitation-source <value>Filter invitations by their invitation source.

Example: gthb personal api orgs list-pending-invitations --org <value>

gthb api orgs list-invitation-teams

List organization invitation teams — read (GET /orgs/{org}/invitations/{invitation_id}/teams)

gthb api orgs list-invitation-teams [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--invitation-id <value>The unique identifier of the invitation.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-invitation-teams --org <value> --invitation-id <value>

gthb api orgs list-issue-fields

List issue fields for an organization — read (GET /orgs/{org}/issue-fields)

gthb api orgs list-issue-fields [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api orgs list-issue-fields --org <value>

gthb api orgs list-issue-types

List issue types for an organization — read (GET /orgs/{org}/issue-types)

gthb api orgs list-issue-types [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api orgs list-issue-types --org <value>

gthb api orgs list-members

List organization members — read (GET /orgs/{org}/members)

gthb api orgs list-members [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--filter <value>Filter members returned in the list. 2fa_disabled means that only members without two-factor authentication enabled will be returned. 2fa_insecure means that only members with insecure 2FA methods will be returned. These options are only available for organization owners.
--role <value>Filter members returned by their role.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-members --org <value>

gthb api orgs check-membership-for-user

Check organization membership for a user — read (GET /orgs/{org}/members/{username})

gthb api orgs check-membership-for-user [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--username <value>The handle for the GitHub user account.

Example: gthb personal api orgs check-membership-for-user --org <value> --username <value>

gthb api orgs get-membership-for-user

Get organization membership for a user — read (GET /orgs/{org}/memberships/{username})

gthb api orgs get-membership-for-user [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--username <value>The handle for the GitHub user account.

Example: gthb personal api orgs get-membership-for-user --org <value> --username <value>

gthb api orgs list-org-roles

Get all organization roles for an organization — read (GET /orgs/{org}/organization-roles)

gthb api orgs list-org-roles [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api orgs list-org-roles --org <value>

gthb api orgs get-org-role

Get an organization role — read (GET /orgs/{org}/organization-roles/{role_id})

gthb api orgs get-org-role [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--role-id <value>The unique identifier of the role.

Example: gthb personal api orgs get-org-role --org <value> --role-id <value>

gthb api orgs list-org-role-teams

List teams that are assigned to an organization role — read (GET /orgs/{org}/organization-roles/{role_id}/teams)

gthb api orgs list-org-role-teams [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--role-id <value>The unique identifier of the role.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-org-role-teams --org <value> --role-id <value>

gthb api orgs list-org-role-users

List users that are assigned to an organization role — read (GET /orgs/{org}/organization-roles/{role_id}/users)

gthb api orgs list-org-role-users [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--role-id <value>The unique identifier of the role.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-org-role-users --org <value> --role-id <value>

gthb api orgs list-outside-collaborators

List outside collaborators for an organization — read (GET /orgs/{org}/outside_collaborators)

gthb api orgs list-outside-collaborators [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--filter <value>Filter the list of outside collaborators. 2fa_disabled means that only outside collaborators without two-factor authentication enabled will be returned. 2fa_insecure means that only outside collaborators with insecure 2FA methods will be returned.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-outside-collaborators --org <value>

gthb api orgs list-pat-grant-requests

List requests to access organization resources with fine-grained personal access tokens — read (GET /orgs/{org}/personal-access-token-requests)

gthb api orgs list-pat-grant-requests [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--sort <value>The property by which to sort the results.
--direction <value>The direction to sort the results by.
--owner <value>A list of owner usernames to use to filter the results.
--repository <value>The name of the repository to use to filter the results.
--permission <value>The permission to use to filter the results.
--last-used-before <value>Only show fine-grained personal access tokens used before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--last-used-after <value>Only show fine-grained personal access tokens used after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--token-id <value>The ID of the token.

Example: gthb personal api orgs list-pat-grant-requests --org <value>

gthb api orgs list-pat-grant-request-repositories

List repositories requested to be accessed by a fine-grained personal access token — read (GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories)

gthb api orgs list-pat-grant-request-repositories [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--pat-request-id <value>Unique identifier of the request for access via fine-grained personal access token.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-pat-grant-request-repositories --org <value> --pat-request-id <value>

gthb api orgs list-pat-grants

List fine-grained personal access tokens with access to organization resources — read (GET /orgs/{org}/personal-access-tokens)

gthb api orgs list-pat-grants [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--sort <value>The property by which to sort the results.
--direction <value>The direction to sort the results by.
--owner <value>A list of owner usernames to use to filter the results.
--repository <value>The name of the repository to use to filter the results.
--permission <value>The permission to use to filter the results.
--last-used-before <value>Only show fine-grained personal access tokens used before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--last-used-after <value>Only show fine-grained personal access tokens used after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--token-id <value>The ID of the token.

Example: gthb personal api orgs list-pat-grants --org <value>

gthb api orgs list-pat-grant-repositories

List repositories a fine-grained personal access token has access to — read (GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories)

gthb api orgs list-pat-grant-repositories [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--pat-id <value>Unique identifier of the fine-grained personal access token.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-pat-grant-repositories --org <value> --pat-id <value>

gthb api orgs external-properties-for-repos-get-organization-app-installations

Get registered app installations for external custom properties — read (GET /orgs/{org}/properties/installations)

gthb api orgs external-properties-for-repos-get-organization-app-installations [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api orgs external-properties-for-repos-get-organization-app-installations --org <value>

gthb api orgs external-properties-for-repos-get-organization-definitions

Get all external custom properties for a GitHub App installation in an organization — read (GET /orgs/{org}/properties/installations/schema)

gthb api orgs external-properties-for-repos-get-organization-definitions [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api orgs external-properties-for-repos-get-organization-definitions --org <value>

gthb api orgs custom-properties-for-repos-get-organization-definitions

Get all custom properties for an organization — read (GET /orgs/{org}/properties/schema)

gthb api orgs custom-properties-for-repos-get-organization-definitions [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api orgs custom-properties-for-repos-get-organization-definitions --org <value>

gthb api orgs custom-properties-for-repos-get-organization-definition

Get a custom property for an organization — read (GET /orgs/{org}/properties/schema/{custom_property_name})

gthb api orgs custom-properties-for-repos-get-organization-definition [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--custom-property-name <value>The custom property name.

Example: gthb personal api orgs custom-properties-for-repos-get-organization-definition --org <value> --custom-property-name <value>

gthb api orgs custom-properties-for-repos-get-organization-values

List custom property values for organization repositories — read (GET /orgs/{org}/properties/values)

gthb api orgs custom-properties-for-repos-get-organization-values [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--repository-query <value>Finds repositories in the organization with a query containing one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See "Searching for repositories" for a detailed list of qualifiers.

Example: gthb personal api orgs custom-properties-for-repos-get-organization-values --org <value>

gthb api orgs list-public-members

List public organization members — read (GET /orgs/{org}/public_members)

gthb api orgs list-public-members [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-public-members --org <value>

gthb api orgs check-public-membership-for-user

Check public organization membership for a user — read (GET /orgs/{org}/public_members/{username})

gthb api orgs check-public-membership-for-user [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--username <value>The handle for the GitHub user account.

Example: gthb personal api orgs check-public-membership-for-user --org <value> --username <value>

gthb api orgs get-org-ruleset-history

Get organization ruleset history — read (GET /orgs/{org}/rulesets/{ruleset_id}/history)

gthb api orgs get-org-ruleset-history [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--ruleset-id <value>The ID of the ruleset.

Example: gthb personal api orgs get-org-ruleset-history --org <value> --ruleset-id <value>

gthb api orgs get-org-ruleset-version

Get organization ruleset version — read (GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id})

gthb api orgs get-org-ruleset-version [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--ruleset-id <value>The ID of the ruleset.
--version-id <value>The ID of the version.

Example: gthb personal api orgs get-org-ruleset-version --org <value> --ruleset-id <value> --version-id <value>

gthb api orgs list-security-manager-teams

List security manager teams — read (GET /orgs/{org}/security-managers)

gthb api orgs list-security-manager-teams [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api orgs list-security-manager-teams --org <value>

gthb api orgs get-immutable-releases-settings

Get immutable releases settings for an organization — read (GET /orgs/{org}/settings/immutable-releases)

gthb api orgs get-immutable-releases-settings [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api orgs get-immutable-releases-settings --org <value>

gthb api orgs get-immutable-releases-settings-repositories

List selected repositories for immutable releases enforcement — read (GET /orgs/{org}/settings/immutable-releases/repositories)

gthb api orgs get-immutable-releases-settings-repositories [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api orgs get-immutable-releases-settings-repositories --org <value>

gthb api orgs list-memberships-for-authenticated-user

List organization memberships for the authenticated user — read (GET /user/memberships/orgs)

gthb api orgs list-memberships-for-authenticated-user [options]
OptionWhat it does
--state <value>Indicates the state of the memberships to return. If not specified, the API returns both active and pending memberships.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-memberships-for-authenticated-user

gthb api orgs get-membership-for-authenticated-user

Get an organization membership for the authenticated user — read (GET /user/memberships/orgs/{org})

gthb api orgs get-membership-for-authenticated-user [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api orgs get-membership-for-authenticated-user --org <value>

gthb api orgs list-for-authenticated-user

List organizations for the authenticated user — read (GET /user/orgs)

gthb api orgs list-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-for-authenticated-user

gthb api orgs list-for-user

List organizations for a user — read (GET /users/{username}/orgs)

gthb api orgs list-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api orgs list-for-user --username <value>

gthb api billing

the billing operations

gthb api billing get-github-billing-ai-credit-usage-report-org

Get billing AI credit usage report for an organization — read (GET /organizations/{org}/settings/billing/ai_credit/usage)

gthb api billing get-github-billing-ai-credit-usage-report-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--year <value>If specified, only return results for a single year. The value of year is an integer with four digits representing a year. For example, 2025. Default value is the current year.
--month <value>If specified, only return results for a single month. The value of month is an integer between 1 and 12. Default value is the current month. If no year is specified the default year is used.
--day <value>If specified, only return results for a single day. The value of day is an integer between 1 and 31. If no year or month is specified, the default year and month are used.
--user <value>The user name to query usage for. The name is not case sensitive.
--model <value>The model name to query usage for. The name is not case sensitive.
--product <value>The product name to query usage for. The name is not case sensitive.

Example: gthb personal api billing get-github-billing-ai-credit-usage-report-org --org <value>

gthb api billing get-all-budgets-org

Get all budgets for an organization — read (GET /organizations/{org}/settings/billing/budgets)

gthb api billing get-all-budgets-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--page <value>The page number of the results to fetch.
--per-page <value>The number of results per page (max 100).
--scope <value>Filter budgets by scope type.
--user <value>Filter consumed amount details for budgets by the specified user login.

Example: gthb personal api billing get-all-budgets-org --org <value>

gthb api billing get-budget-org

Get a budget by ID for an organization — read (GET /organizations/{org}/settings/billing/budgets/{budget_id})

gthb api billing get-budget-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--budget-id <value>The ID corresponding to the budget.

Example: gthb personal api billing get-budget-org --org <value> --budget-id <value>

gthb api billing get-github-billing-premium-request-usage-report-org

Get billing premium request usage report for an organization — read (GET /organizations/{org}/settings/billing/premium_request/usage)

gthb api billing get-github-billing-premium-request-usage-report-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--year <value>If specified, only return results for a single year. The value of year is an integer with four digits representing a year. For example, 2025. Default value is the current year.
--month <value>If specified, only return results for a single month. The value of month is an integer between 1 and 12. Default value is the current month. If no year is specified the default year is used.
--day <value>If specified, only return results for a single day. The value of day is an integer between 1 and 31. If no year or month is specified, the default year and month are used.
--user <value>The user name to query usage for. The name is not case sensitive.
--model <value>The model name to query usage for. The name is not case sensitive.
--product <value>The product name to query usage for. The name is not case sensitive.

Example: gthb personal api billing get-github-billing-premium-request-usage-report-org --org <value>

gthb api billing get-github-billing-usage-report-org

Get billing usage report for an organization — read (GET /organizations/{org}/settings/billing/usage)

gthb api billing get-github-billing-usage-report-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--year <value>If specified, only return results for a single year. The value of year is an integer with four digits representing a year. For example, 2025. Default value is the current year.
--month <value>If specified, only return results for a single month. The value of month is an integer between 1 and 12. If no year is specified the default year is used.
--day <value>If specified, only return results for a single day. The value of day is an integer between 1 and 31. If no year or month is specified, the default year and month are used.

Example: gthb personal api billing get-github-billing-usage-report-org --org <value>

gthb api billing get-github-billing-usage-summary-report-org

Get billing usage summary for an organization — read (GET /organizations/{org}/settings/billing/usage/summary)

gthb api billing get-github-billing-usage-summary-report-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--year <value>If specified, only return results for a single year. The value of year is an integer with four digits representing a year. For example, 2025. Default value is the current year.
--month <value>If specified, only return results for a single month. The value of month is an integer between 1 and 12. Default value is the current month. If no year is specified the default year is used.
--day <value>If specified, only return results for a single day. The value of day is an integer between 1 and 31. If no year or month is specified, the default year and month are used.
--repository <value>The repository name to query for usage in the format owner/repository.
--product <value>The product name to query usage for. The name is not case sensitive.
--sku <value>The SKU to query for usage.

Example: gthb personal api billing get-github-billing-usage-summary-report-org --org <value>

gthb api billing get-github-billing-ai-credit-usage-report-user

Get billing AI credit usage report for a user — read (GET /users/{username}/settings/billing/ai_credit/usage)

gthb api billing get-github-billing-ai-credit-usage-report-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--year <value>If specified, only return results for a single year. The value of year is an integer with four digits representing a year. For example, 2025. Default value is the current year.
--month <value>If specified, only return results for a single month. The value of month is an integer between 1 and 12. Default value is the current month. If no year is specified the default year is used.
--day <value>If specified, only return results for a single day. The value of day is an integer between 1 and 31. If no year or month is specified, the default year and month are used.
--model <value>The model name to query usage for. The name is not case sensitive.
--product <value>The product name to query usage for. The name is not case sensitive.

Example: gthb personal api billing get-github-billing-ai-credit-usage-report-user --username <value>

gthb api billing get-github-billing-premium-request-usage-report-user

Get billing premium request usage report for a user — read (GET /users/{username}/settings/billing/premium_request/usage)

gthb api billing get-github-billing-premium-request-usage-report-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--year <value>If specified, only return results for a single year. The value of year is an integer with four digits representing a year. For example, 2025. Default value is the current year.
--month <value>If specified, only return results for a single month. The value of month is an integer between 1 and 12. Default value is the current month. If no year is specified the default year is used.
--day <value>If specified, only return results for a single day. The value of day is an integer between 1 and 31. If no year or month is specified, the default year and month are used.
--model <value>The model name to query usage for. The name is not case sensitive.
--product <value>The product name to query usage for. The name is not case sensitive.

Example: gthb personal api billing get-github-billing-premium-request-usage-report-user --username <value>

gthb api billing get-github-billing-usage-report-user

Get billing usage report for a user — read (GET /users/{username}/settings/billing/usage)

gthb api billing get-github-billing-usage-report-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--year <value>If specified, only return results for a single year. The value of year is an integer with four digits representing a year. For example, 2025. Default value is the current year.
--month <value>If specified, only return results for a single month. The value of month is an integer between 1 and 12. If no year is specified the default year is used.
--day <value>If specified, only return results for a single day. The value of day is an integer between 1 and 31. If no year or month is specified, the default year and month are used.

Example: gthb personal api billing get-github-billing-usage-report-user --username <value>

gthb api billing get-github-billing-usage-summary-report-user

Get billing usage summary for a user — read (GET /users/{username}/settings/billing/usage/summary)

gthb api billing get-github-billing-usage-summary-report-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--year <value>If specified, only return results for a single year. The value of year is an integer with four digits representing a year. For example, 2025. Default value is the current year.
--month <value>If specified, only return results for a single month. The value of month is an integer between 1 and 12. Default value is the current month. If no year is specified the default year is used.
--day <value>If specified, only return results for a single day. The value of day is an integer between 1 and 31. If no year or month is specified, the default year and month are used.
--repository <value>The repository name to query for usage in the format owner/repository.
--product <value>The product name to query usage for. The name is not case sensitive.
--sku <value>The SKU to query for usage.

Example: gthb personal api billing get-github-billing-usage-summary-report-user --username <value>

gthb api agents

the agents operations

gthb api agents list-org-secrets

List organization secrets — read (GET /orgs/{org}/agents/secrets)

gthb api agents list-org-secrets [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api agents list-org-secrets --org <value>

gthb api agents get-org-public-key

Get an organization public key — read (GET /orgs/{org}/agents/secrets/public-key)

gthb api agents get-org-public-key [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api agents get-org-public-key --org <value>

gthb api agents get-org-secret

Get an organization secret — read (GET /orgs/{org}/agents/secrets/{secret_name})

gthb api agents get-org-secret [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--secret-name <value>The name of the secret.

Example: gthb personal api agents get-org-secret --org <value> --secret-name <value>

gthb api agents list-selected-repos-for-org-secret

List selected repositories for an organization secret — read (GET /orgs/{org}/agents/secrets/{secret_name}/repositories)

gthb api agents list-selected-repos-for-org-secret [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--secret-name <value>The name of the secret.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api agents list-selected-repos-for-org-secret --org <value> --secret-name <value>

gthb api agents list-repo-organization-secrets

List repository organization secrets — read (GET /repos/{owner}/{repo}/agents/organization-secrets)

gthb api agents list-repo-organization-secrets [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api agents list-repo-organization-secrets --owner <value> --repo <value>

gthb api agents list-repo-secrets

List repository secrets — read (GET /repos/{owner}/{repo}/agents/secrets)

gthb api agents list-repo-secrets [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api agents list-repo-secrets --owner <value> --repo <value>

gthb api agents get-repo-public-key

Get a repository public key — read (GET /repos/{owner}/{repo}/agents/secrets/public-key)

gthb api agents get-repo-public-key [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api agents get-repo-public-key --owner <value> --repo <value>

gthb api agents get-repo-secret

Get a repository secret — read (GET /repos/{owner}/{repo}/agents/secrets/{secret_name})

gthb api agents get-repo-secret [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--secret-name <value>The name of the secret.

Example: gthb personal api agents get-repo-secret --owner <value> --repo <value> --secret-name <value>

gthb api campaigns

the campaigns operations

gthb api campaigns list-org-campaigns

List campaigns for an organization — read (GET /orgs/{org}/campaigns)

gthb api campaigns list-org-campaigns [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--direction <value>The direction to sort the results by.
--state <value>If specified, only campaigns with this state will be returned.
--sort <value>The property by which to sort the results.

Example: gthb personal api campaigns list-org-campaigns --org <value>

gthb api campaigns get-campaign-summary

Get a campaign for an organization — read (GET /orgs/{org}/campaigns/{campaign_number})

gthb api campaigns get-campaign-summary [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--campaign-number <value>The campaign number.

Example: gthb personal api campaigns get-campaign-summary --org <value> --campaign-number <value>

gthb api code-scanning

the code-scanning operations

gthb api code-scanning get-ai-scan-enablement-for-org

Get the AI Scan setting for an organization — read (GET /orgs/{org}/code-scanning/ai-scan)

gthb api code-scanning get-ai-scan-enablement-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api code-scanning get-ai-scan-enablement-for-org --org <value>

gthb api code-scanning list-alerts-for-org

List code scanning alerts for an organization — read (GET /orgs/{org}/code-scanning/alerts)

gthb api code-scanning list-alerts-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--tool-name <value>The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either tool_name or tool_guid, but not both.
--tool-guid <value>The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either tool_guid or tool_name, but not both.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--direction <value>The direction to sort the results by.
--state <value>If specified, only code scanning alerts with this state will be returned.
--sort <value>The property by which to sort the results.
--severity <value>If specified, only code scanning alerts with this severity will be returned.
--assignees <value>Filter alerts by assignees. Provide a comma-separated list of user handles (e.g., octocat or octocat,hubot).

Example: gthb personal api code-scanning list-alerts-for-org --org <value>

gthb api code-scanning get-ai-scan-enablement

Get AI Scan enablement for a repository — read (GET /repos/{owner}/{repo}/code-scanning/ai-scan)

gthb api code-scanning get-ai-scan-enablement [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api code-scanning get-ai-scan-enablement --owner <value> --repo <value>

gthb api code-scanning list-alerts-for-repo

List code scanning alerts for a repository — read (GET /repos/{owner}/{repo}/code-scanning/alerts)

gthb api code-scanning list-alerts-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--tool-name <value>The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either tool_name or tool_guid, but not both.
--tool-guid <value>The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either tool_guid or tool_name, but not both.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--ref <value>The Git reference for the results you want to list. The ref for a branch can be formatted either as refs/heads/<branch name> or simply <branch name>. To reference a pull request use refs/pull/<number>/merge.
--pr <value>The number of the pull request for the results you want to list.
--direction <value>The direction to sort the results by.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--sort <value>The property by which to sort the results.
--state <value>If specified, only code scanning alerts with this state will be returned.
--severity <value>If specified, only code scanning alerts with this severity will be returned.
--assignees <value>Filter alerts by assignees. Provide a comma-separated list of user handles (e.g., octocat or octocat,hubot).

Example: gthb personal api code-scanning list-alerts-for-repo --owner <value> --repo <value>

gthb api code-scanning get-alert

Get a code scanning alert — read (GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number})

gthb api code-scanning get-alert [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--alert-number <value>The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.

Example: gthb personal api code-scanning get-alert --owner <value> --repo <value> --alert-number <value>

gthb api code-scanning get-autofix

Get the status of an autofix for a code scanning alert — read (GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix)

gthb api code-scanning get-autofix [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--alert-number <value>The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.

Example: gthb personal api code-scanning get-autofix --owner <value> --repo <value> --alert-number <value>

gthb api code-scanning list-alert-instances

List instances of a code scanning alert — read (GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances)

gthb api code-scanning list-alert-instances [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--alert-number <value>The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--ref <value>The Git reference for the results you want to list. The ref for a branch can be formatted either as refs/heads/<branch name> or simply <branch name>. To reference a pull request use refs/pull/<number>/merge.
--pr <value>The number of the pull request for the results you want to list.

Example: gthb personal api code-scanning list-alert-instances --owner <value> --repo <value> --alert-number <value>

gthb api code-scanning list-recent-analyses

List code scanning analyses for a repository — read (GET /repos/{owner}/{repo}/code-scanning/analyses)

gthb api code-scanning list-recent-analyses [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--tool-name <value>The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either tool_name or tool_guid, but not both.
--tool-guid <value>The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either tool_guid or tool_name, but not both.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--pr <value>The number of the pull request for the results you want to list.
--ref <value>The Git reference for the analyses you want to list. The ref for a branch can be formatted either as refs/heads/<branch name> or simply <branch name>. To reference a pull request use refs/pull/<number>/merge.
--sarif-id <value>Filter analyses belonging to the same SARIF upload.
--direction <value>The direction to sort the results by.
--sort <value>The property by which to sort the results.

Example: gthb personal api code-scanning list-recent-analyses --owner <value> --repo <value>

gthb api code-scanning get-analysis

Get a code scanning analysis for a repository — read (GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id})

gthb api code-scanning get-analysis [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--analysis-id <value>The ID of the analysis, as returned from the GET /repos/{owner}/{repo}/code-scanning/analyses operation.

Example: gthb personal api code-scanning get-analysis --owner <value> --repo <value> --analysis-id <value>

gthb api code-scanning list-codeql-databases

List CodeQL databases for a repository — read (GET /repos/{owner}/{repo}/code-scanning/codeql/databases)

gthb api code-scanning list-codeql-databases [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api code-scanning list-codeql-databases --owner <value> --repo <value>

gthb api code-scanning get-codeql-database

Get a CodeQL database for a repository — read (GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language})

gthb api code-scanning get-codeql-database [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--language <value>The language of the CodeQL database.

Example: gthb personal api code-scanning get-codeql-database --owner <value> --repo <value> --language <value>

gthb api code-scanning get-variant-analysis

Get the summary of a CodeQL variant analysis — read (GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id})

gthb api code-scanning get-variant-analysis [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--codeql-variant-analysis-id <value>The unique identifier of the variant analysis.

Example: gthb personal api code-scanning get-variant-analysis --owner <value> --repo <value> --codeql-variant-analysis-id <value>

gthb api code-scanning get-variant-analysis-repo-task

Get the analysis status of a repository in a CodeQL variant analysis — read (GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name})

gthb api code-scanning get-variant-analysis-repo-task [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the controller repository.
--codeql-variant-analysis-id <value>The ID of the variant analysis.
--repo-owner <value>The account owner of the variant analysis repository. The name is not case sensitive.
--repo-name <value>The name of the variant analysis repository.

Example: gthb personal api code-scanning get-variant-analysis-repo-task --owner <value> --repo <value> --codeql-variant-analysis-id <value> --repo-owner <value> --repo-name <value>

gthb api code-scanning get-default-setup

Get a code scanning default setup configuration — read (GET /repos/{owner}/{repo}/code-scanning/default-setup)

gthb api code-scanning get-default-setup [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api code-scanning get-default-setup --owner <value> --repo <value>

gthb api code-scanning get-sarif

Get information about a SARIF upload — read (GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id})

gthb api code-scanning get-sarif [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--sarif-id <value>The SARIF ID obtained after uploading.

Example: gthb personal api code-scanning get-sarif --owner <value> --repo <value> --sarif-id <value>

gthb api codespaces

the codespaces operations

gthb api codespaces list-in-organization

List codespaces for the organization — read (GET /orgs/{org}/codespaces)

gthb api codespaces list-in-organization [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--org <value>The organization name. The name is not case sensitive.
--allread every page, as the API pages it.

Example: gthb personal api codespaces list-in-organization --org <value>

gthb api codespaces list-org-secrets

List organization secrets — read (GET /orgs/{org}/codespaces/secrets)

gthb api codespaces list-org-secrets [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api codespaces list-org-secrets --org <value>

gthb api codespaces get-org-public-key

Get an organization public key — read (GET /orgs/{org}/codespaces/secrets/public-key)

gthb api codespaces get-org-public-key [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api codespaces get-org-public-key --org <value>

gthb api codespaces get-org-secret

Get an organization secret — read (GET /orgs/{org}/codespaces/secrets/{secret_name})

gthb api codespaces get-org-secret [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--secret-name <value>The name of the secret.

Example: gthb personal api codespaces get-org-secret --org <value> --secret-name <value>

gthb api codespaces list-selected-repos-for-org-secret

List selected repositories for an organization secret — read (GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories)

gthb api codespaces list-selected-repos-for-org-secret [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--secret-name <value>The name of the secret.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api codespaces list-selected-repos-for-org-secret --org <value> --secret-name <value>

gthb api codespaces get-codespaces-for-user-in-org

List codespaces for a user in organization — read (GET /orgs/{org}/members/{username}/codespaces)

gthb api codespaces get-codespaces-for-user-in-org [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--org <value>The organization name. The name is not case sensitive.
--username <value>The handle for the GitHub user account.
--allread every page, as the API pages it.

Example: gthb personal api codespaces get-codespaces-for-user-in-org --org <value> --username <value>

gthb api codespaces list-in-repository-for-authenticated-user

List codespaces in a repository for the authenticated user — read (GET /repos/{owner}/{repo}/codespaces)

gthb api codespaces list-in-repository-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--allread every page, as the API pages it.

Example: gthb personal api codespaces list-in-repository-for-authenticated-user --owner <value> --repo <value>

gthb api codespaces list-devcontainers-in-repository-for-authenticated-user

List devcontainer configurations in a repository for the authenticated user — read (GET /repos/{owner}/{repo}/codespaces/devcontainers)

gthb api codespaces list-devcontainers-in-repository-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--allread every page, as the API pages it.

Example: gthb personal api codespaces list-devcontainers-in-repository-for-authenticated-user --owner <value> --repo <value>

gthb api codespaces repo-machines-for-authenticated-user

List available machine types for a repository — read (GET /repos/{owner}/{repo}/codespaces/machines)

gthb api codespaces repo-machines-for-authenticated-user [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--location <value>The location to check for available machines. Assigned by IP if not provided.
--client-ip <value>IP for location auto-detection when proxying a request.
--ref <value>The branch or commit to check for prebuild availability and devcontainer restrictions.

Example: gthb personal api codespaces repo-machines-for-authenticated-user --owner <value> --repo <value>

gthb api codespaces pre-flight-with-repo-for-authenticated-user

Get default attributes for a codespace — read (GET /repos/{owner}/{repo}/codespaces/new)

gthb api codespaces pre-flight-with-repo-for-authenticated-user [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--ref <value>The branch or commit to check for a default devcontainer path. If not specified, the default branch will be checked.
--client-ip <value>An alternative IP for default location auto-detection, such as when proxying a request.

Example: gthb personal api codespaces pre-flight-with-repo-for-authenticated-user --owner <value> --repo <value>

gthb api codespaces check-permissions-for-devcontainer

Check if permissions defined by a devcontainer have been accepted by the authenticated user — read (GET /repos/{owner}/{repo}/codespaces/permissions_check)

gthb api codespaces check-permissions-for-devcontainer [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--ref <value>The git reference that points to the location of the devcontainer configuration to use for the permission check. The value of ref will typically be a branch name (heads/BRANCH_NAME). For more information, see "Git References" in the Git documentation.
--devcontainer-path <value>Path to the devcontainer.json configuration to use for the permission check.

Example: gthb personal api codespaces check-permissions-for-devcontainer --owner <value> --repo <value> --ref <value> --devcontainer-path <value>

gthb api codespaces list-repo-secrets

List repository secrets — read (GET /repos/{owner}/{repo}/codespaces/secrets)

gthb api codespaces list-repo-secrets [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api codespaces list-repo-secrets --owner <value> --repo <value>

gthb api codespaces get-repo-public-key

Get a repository public key — read (GET /repos/{owner}/{repo}/codespaces/secrets/public-key)

gthb api codespaces get-repo-public-key [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api codespaces get-repo-public-key --owner <value> --repo <value>

gthb api codespaces get-repo-secret

Get a repository secret — read (GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name})

gthb api codespaces get-repo-secret [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--secret-name <value>The name of the secret.

Example: gthb personal api codespaces get-repo-secret --owner <value> --repo <value> --secret-name <value>

gthb api codespaces list-for-authenticated-user

List codespaces for the authenticated user — read (GET /user/codespaces)

gthb api codespaces list-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--repository-id <value>ID of the Repository to filter on.
--allread every page, as the API pages it.

Example: gthb personal api codespaces list-for-authenticated-user

gthb api codespaces list-secrets-for-authenticated-user

List secrets for the authenticated user — read (GET /user/codespaces/secrets)

gthb api codespaces list-secrets-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api codespaces list-secrets-for-authenticated-user

gthb api codespaces get-public-key-for-authenticated-user

Get public key for the authenticated user — read (GET /user/codespaces/secrets/public-key)

gthb api codespaces get-public-key-for-authenticated-user

Example: gthb personal api codespaces get-public-key-for-authenticated-user

gthb api codespaces get-secret-for-authenticated-user

Get a secret for the authenticated user — read (GET /user/codespaces/secrets/{secret_name})

gthb api codespaces get-secret-for-authenticated-user [options]
OptionWhat it does
--secret-name <value>The name of the secret.

Example: gthb personal api codespaces get-secret-for-authenticated-user --secret-name <value>

gthb api codespaces list-repositories-for-secret-for-authenticated-user

List selected repositories for a user secret — read (GET /user/codespaces/secrets/{secret_name}/repositories)

gthb api codespaces list-repositories-for-secret-for-authenticated-user [options]
OptionWhat it does
--secret-name <value>The name of the secret.

Example: gthb personal api codespaces list-repositories-for-secret-for-authenticated-user --secret-name <value>

gthb api codespaces get-for-authenticated-user

Get a codespace for the authenticated user — read (GET /user/codespaces/{codespace_name})

gthb api codespaces get-for-authenticated-user [options]
OptionWhat it does
--codespace-name <value>The name of the codespace.

Example: gthb personal api codespaces get-for-authenticated-user --codespace-name <value>

gthb api codespaces get-export-details-for-authenticated-user

Get details about a codespace export — read (GET /user/codespaces/{codespace_name}/exports/{export_id})

gthb api codespaces get-export-details-for-authenticated-user [options]
OptionWhat it does
--codespace-name <value>The name of the codespace.
--export-id <value>The ID of the export operation, or latest. Currently only latest is currently supported.

Example: gthb personal api codespaces get-export-details-for-authenticated-user --codespace-name <value> --export-id <value>

gthb api codespaces codespace-machines-for-authenticated-user

List machine types for a codespace — read (GET /user/codespaces/{codespace_name}/machines)

gthb api codespaces codespace-machines-for-authenticated-user [options]
OptionWhat it does
--codespace-name <value>The name of the codespace.

Example: gthb personal api codespaces codespace-machines-for-authenticated-user --codespace-name <value>

gthb api copilot-spaces

the copilot-spaces operations

gthb api copilot-spaces list-for-org

List organization Copilot Spaces — read (GET /orgs/{org}/copilot-spaces)

gthb api copilot-spaces list-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100).
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor.
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor.

Example: gthb personal api copilot-spaces list-for-org --org <value>

gthb api copilot-spaces get-for-org

Get an organization Copilot Space — read (GET /orgs/{org}/copilot-spaces/{space_number})

gthb api copilot-spaces get-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--space-number <value>The unique identifier of the Copilot Space.

Example: gthb personal api copilot-spaces get-for-org --org <value> --space-number <value>

gthb api copilot-spaces list-collaborators-for-org

List collaborators for an organization Copilot Space — read (GET /orgs/{org}/copilot-spaces/{space_number}/collaborators)

gthb api copilot-spaces list-collaborators-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--space-number <value>The unique identifier of the Copilot Space.

Example: gthb personal api copilot-spaces list-collaborators-for-org --org <value> --space-number <value>

gthb api copilot-spaces list-for-user

List Copilot Spaces for a user — read (GET /users/{username}/copilot-spaces)

gthb api copilot-spaces list-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100).
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor.
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor.

Example: gthb personal api copilot-spaces list-for-user --username <value>

gthb api copilot-spaces get-for-user

Get a Copilot Space for a user — read (GET /users/{username}/copilot-spaces/{space_number})

gthb api copilot-spaces get-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--space-number <value>The unique identifier of the Copilot Space.

Example: gthb personal api copilot-spaces get-for-user --username <value> --space-number <value>

gthb api copilot-spaces list-collaborators-for-user

List collaborators for a Copilot Space for a user — read (GET /users/{username}/copilot-spaces/{space_number}/collaborators)

gthb api copilot-spaces list-collaborators-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--space-number <value>The unique identifier of the Copilot Space.

Example: gthb personal api copilot-spaces list-collaborators-for-user --username <value> --space-number <value>

gthb api packages

the packages operations

gthb api packages list-docker-migration-conflicting-packages-for-organization

Get list of conflicting packages during Docker migration for organization — read (GET /orgs/{org}/docker/conflicts)

gthb api packages list-docker-migration-conflicting-packages-for-organization [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api packages list-docker-migration-conflicting-packages-for-organization --org <value>

gthb api packages list-packages-for-organization

List packages for an organization — read (GET /orgs/{org}/packages)

gthb api packages list-packages-for-organization [options]
OptionWhat it does
--package-type <value>The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
--org <value>The organization name. The name is not case sensitive.
--visibility <value>The selected visibility of the packages. This parameter is optional and only filters an existing result set.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api packages list-packages-for-organization --package-type <value> --org <value>

gthb api packages get-package-for-organization

Get a package for an organization — read (GET /orgs/{org}/packages/{package_type}/{package_name})

gthb api packages get-package-for-organization [options]
OptionWhat it does
--package-type <value>The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
--package-name <value>The name of the package.
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api packages get-package-for-organization --package-type <value> --package-name <value> --org <value>

gthb api packages get-all-package-versions-for-package-owned-by-org

List package versions for a package owned by an organization — read (GET /orgs/{org}/packages/{package_type}/{package_name}/versions)

gthb api packages get-all-package-versions-for-package-owned-by-org [options]
OptionWhat it does
--package-type <value>The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
--package-name <value>The name of the package.
--org <value>The organization name. The name is not case sensitive.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--state <value>The state of the package, either active or deleted.

Example: gthb personal api packages get-all-package-versions-for-package-owned-by-org --package-type <value> --package-name <value> --org <value>

gthb api packages get-package-version-for-organization

Get a package version for an organization — read (GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id})

gthb api packages get-package-version-for-organization [options]
OptionWhat it does
--package-type <value>The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
--package-name <value>The name of the package.
--org <value>The organization name. The name is not case sensitive.
--package-version-id <value>Unique identifier of the package version.

Example: gthb personal api packages get-package-version-for-organization --package-type <value> --package-name <value> --org <value> --package-version-id <value>

gthb api packages list-docker-migration-conflicting-packages-for-authenticated-user

Get list of conflicting packages during Docker migration for authenticated-user — read (GET /user/docker/conflicts)

gthb api packages list-docker-migration-conflicting-packages-for-authenticated-user

Example: gthb personal api packages list-docker-migration-conflicting-packages-for-authenticated-user

gthb api packages list-packages-for-authenticated-user

List packages for the authenticated user's namespace — read (GET /user/packages)

gthb api packages list-packages-for-authenticated-user [options]
OptionWhat it does
--package-type <value>The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
--visibility <value>The selected visibility of the packages. This parameter is optional and only filters an existing result set.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api packages list-packages-for-authenticated-user --package-type <value>

gthb api packages get-package-for-authenticated-user

Get a package for the authenticated user — read (GET /user/packages/{package_type}/{package_name})

gthb api packages get-package-for-authenticated-user [options]
OptionWhat it does
--package-type <value>The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
--package-name <value>The name of the package.

Example: gthb personal api packages get-package-for-authenticated-user --package-type <value> --package-name <value>

gthb api packages get-all-package-versions-for-package-owned-by-authenticated-user

List package versions for a package owned by the authenticated user — read (GET /user/packages/{package_type}/{package_name}/versions)

gthb api packages get-all-package-versions-for-package-owned-by-authenticated-user [options]
OptionWhat it does
--package-type <value>The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
--package-name <value>The name of the package.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--state <value>The state of the package, either active or deleted.

Example: gthb personal api packages get-all-package-versions-for-package-owned-by-authenticated-user --package-type <value> --package-name <value>

gthb api packages get-package-version-for-authenticated-user

Get a package version for the authenticated user — read (GET /user/packages/{package_type}/{package_name}/versions/{package_version_id})

gthb api packages get-package-version-for-authenticated-user [options]
OptionWhat it does
--package-type <value>The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
--package-name <value>The name of the package.
--package-version-id <value>Unique identifier of the package version.

Example: gthb personal api packages get-package-version-for-authenticated-user --package-type <value> --package-name <value> --package-version-id <value>

gthb api packages list-docker-migration-conflicting-packages-for-user

Get list of conflicting packages during Docker migration for user — read (GET /users/{username}/docker/conflicts)

gthb api packages list-docker-migration-conflicting-packages-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.

Example: gthb personal api packages list-docker-migration-conflicting-packages-for-user --username <value>

gthb api packages list-packages-for-user

List packages for a user — read (GET /users/{username}/packages)

gthb api packages list-packages-for-user [options]
OptionWhat it does
--package-type <value>The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
--visibility <value>The selected visibility of the packages. This parameter is optional and only filters an existing result set.
--username <value>The handle for the GitHub user account.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api packages list-packages-for-user --package-type <value> --username <value>

gthb api packages get-package-for-user

Get a package for a user — read (GET /users/{username}/packages/{package_type}/{package_name})

gthb api packages get-package-for-user [options]
OptionWhat it does
--package-type <value>The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
--package-name <value>The name of the package.
--username <value>The handle for the GitHub user account.

Example: gthb personal api packages get-package-for-user --package-type <value> --package-name <value> --username <value>

gthb api packages get-all-package-versions-for-package-owned-by-user

List package versions for a package owned by a user — read (GET /users/{username}/packages/{package_type}/{package_name}/versions)

gthb api packages get-all-package-versions-for-package-owned-by-user [options]
OptionWhat it does
--package-type <value>The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
--package-name <value>The name of the package.
--username <value>The handle for the GitHub user account.

Example: gthb personal api packages get-all-package-versions-for-package-owned-by-user --package-type <value> --package-name <value> --username <value>

gthb api packages get-package-version-for-user

Get a package version for a user — read (GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id})

gthb api packages get-package-version-for-user [options]
OptionWhat it does
--package-type <value>The type of supported package. Packages in GitHub's Gradle registry have the type maven. Docker images pushed to GitHub's Container registry (ghcr.io) have the type container. You can use the type docker to find images that were pushed to GitHub's Docker registry (docker.pkg.github.com), even if these have now been migrated to the Container registry.
--package-name <value>The name of the package.
--package-version-id <value>Unique identifier of the package version.
--username <value>The handle for the GitHub user account.

Example: gthb personal api packages get-package-version-for-user --package-type <value> --package-name <value> --package-version-id <value> --username <value>

gthb api interactions

the interactions operations

gthb api interactions get-restrictions-for-org

Get interaction restrictions for an organization — read (GET /orgs/{org}/interaction-limits)

gthb api interactions get-restrictions-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api interactions get-restrictions-for-org --org <value>

gthb api interactions get-pull-request-creation-cap-for-org

Get pull request creation cap for an org — read (GET /orgs/{org}/interaction-limits/pulls/creation-cap)

gthb api interactions get-pull-request-creation-cap-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api interactions get-pull-request-creation-cap-for-org --org <value>

gthb api interactions get-restrictions-for-repo

Get interaction restrictions for a repository — read (GET /repos/{owner}/{repo}/interaction-limits)

gthb api interactions get-restrictions-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api interactions get-restrictions-for-repo --owner <value> --repo <value>

gthb api interactions get-pull-request-bypass-list-for-repo

Get pull request creation cap bypass list for a repository — read (GET /repos/{owner}/{repo}/interaction-limits/pulls/bypass-list)

gthb api interactions get-pull-request-bypass-list-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api interactions get-pull-request-bypass-list-for-repo --owner <value> --repo <value>

gthb api interactions get-pull-request-creation-cap-for-repo

Get pull request creation cap for a repository — read (GET /repos/{owner}/{repo}/interaction-limits/pulls/creation-cap)

gthb api interactions get-pull-request-creation-cap-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api interactions get-pull-request-creation-cap-for-repo --owner <value> --repo <value>

gthb api interactions get-restrictions-for-authenticated-user

Get interaction restrictions for your public repositories — read (GET /user/interaction-limits)

gthb api interactions get-restrictions-for-authenticated-user

Example: gthb personal api interactions get-restrictions-for-authenticated-user

gthb api migrations

the migrations operations

gthb api migrations list-for-org

List organization migrations — read (GET /orgs/{org}/migrations)

gthb api migrations list-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--exclude <value>Exclude attributes from the API response to improve performance.

Example: gthb personal api migrations list-for-org --org <value>

gthb api migrations get-status-for-org

Get an organization migration status — read (GET /orgs/{org}/migrations/{migration_id})

gthb api migrations get-status-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--migration-id <value>The unique identifier of the migration.
--exclude <value>Exclude attributes from the API response to improve performance.

Example: gthb personal api migrations get-status-for-org --org <value> --migration-id <value>

gthb api migrations list-repos-for-org

List repositories in an organization migration — read (GET /orgs/{org}/migrations/{migration_id}/repositories)

gthb api migrations list-repos-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--migration-id <value>The unique identifier of the migration.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api migrations list-repos-for-org --org <value> --migration-id <value>

gthb api migrations get-import-status

Get an import status — read (GET /repos/{owner}/{repo}/import)

gthb api migrations get-import-status [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api migrations get-import-status --owner <value> --repo <value>

gthb api migrations get-commit-authors

Get commit authors — read (GET /repos/{owner}/{repo}/import/authors)

gthb api migrations get-commit-authors [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--since <value>A user ID. Only return users with an ID greater than this ID.

Example: gthb personal api migrations get-commit-authors --owner <value> --repo <value>

gthb api migrations get-large-files

Get large files — read (GET /repos/{owner}/{repo}/import/large_files)

gthb api migrations get-large-files [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api migrations get-large-files --owner <value> --repo <value>

gthb api migrations list-for-authenticated-user

List user migrations — read (GET /user/migrations)

gthb api migrations list-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api migrations list-for-authenticated-user

gthb api migrations get-status-for-authenticated-user

Get a user migration status — read (GET /user/migrations/{migration_id})

gthb api migrations get-status-for-authenticated-user [options]
OptionWhat it does
--migration-id <value>The unique identifier of the migration.
--exclude <value>exclude.

Example: gthb personal api migrations get-status-for-authenticated-user --migration-id <value>

gthb api migrations list-repos-for-authenticated-user

List repositories for a user migration — read (GET /user/migrations/{migration_id}/repositories)

gthb api migrations list-repos-for-authenticated-user [options]
OptionWhat it does
--migration-id <value>The unique identifier of the migration.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api migrations list-repos-for-authenticated-user --migration-id <value>

gthb api projects

the projects operations

gthb api projects list-for-org

List projects for organization — read (GET /orgs/{org}/projectsV2)

gthb api projects list-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--q <value>Limit results to projects of the specified type.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api projects list-for-org --org <value>

gthb api projects get-for-org

Get project for organization — read (GET /orgs/{org}/projectsV2/{project_number})

gthb api projects get-for-org [options]
OptionWhat it does
--project-number <value>The project's number.
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api projects get-for-org --project-number <value> --org <value>

gthb api projects list-fields-for-org

List project fields for organization — read (GET /orgs/{org}/projectsV2/{project_number}/fields)

gthb api projects list-fields-for-org [options]
OptionWhat it does
--project-number <value>The project's number.
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".

Example: gthb personal api projects list-fields-for-org --project-number <value> --org <value>

gthb api projects get-field-for-org

Get project field for organization — read (GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id})

gthb api projects get-field-for-org [options]
OptionWhat it does
--project-number <value>The project's number.
--field-id <value>The unique identifier of the field.
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api projects get-field-for-org --project-number <value> --field-id <value> --org <value>

gthb api projects list-items-for-org

List items for an organization owned project — read (GET /orgs/{org}/projectsV2/{project_number}/items)

gthb api projects list-items-for-org [options]
OptionWhat it does
--project-number <value>The project's number.
--org <value>The organization name. The name is not case sensitive.
--q <value>Search query to filter items, see Filtering projects for more information.
--fields <value>Limit results to specific fields, by their IDs. If not specified, the title field will be returned.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api projects list-items-for-org --project-number <value> --org <value>

gthb api projects get-org-item

Get an item for an organization owned project — read (GET /orgs/{org}/projectsV2/{project_number}/items/{item_id})

gthb api projects get-org-item [options]
OptionWhat it does
--project-number <value>The project's number.
--org <value>The organization name. The name is not case sensitive.
--item-id <value>The unique identifier of the project item.
--fields <value>Limit results to specific fields, by their IDs. If not specified, the title field will be returned.

Example: gthb personal api projects get-org-item --project-number <value> --org <value> --item-id <value>

gthb api projects list-view-items-for-org

List items for an organization project view — read (GET /orgs/{org}/projectsV2/{project_number}/views/{view_number}/items)

gthb api projects list-view-items-for-org [options]
OptionWhat it does
--project-number <value>The project's number.
--org <value>The organization name. The name is not case sensitive.
--view-number <value>The number that identifies the project view.
--fields <value>Limit results to specific fields, by their IDs. If not specified, the.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api projects list-view-items-for-org --project-number <value> --org <value> --view-number <value>

gthb api projects list-for-user

List projects for user — read (GET /users/{username}/projectsV2)

gthb api projects list-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--q <value>Limit results to projects of the specified type.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api projects list-for-user --username <value>

gthb api projects get-for-user

Get project for user — read (GET /users/{username}/projectsV2/{project_number})

gthb api projects get-for-user [options]
OptionWhat it does
--project-number <value>The project's number.
--username <value>The handle for the GitHub user account.

Example: gthb personal api projects get-for-user --project-number <value> --username <value>

gthb api projects list-fields-for-user

List project fields for user — read (GET /users/{username}/projectsV2/{project_number}/fields)

gthb api projects list-fields-for-user [options]
OptionWhat it does
--project-number <value>The project's number.
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".

Example: gthb personal api projects list-fields-for-user --project-number <value> --username <value>

gthb api projects get-field-for-user

Get project field for user — read (GET /users/{username}/projectsV2/{project_number}/fields/{field_id})

gthb api projects get-field-for-user [options]
OptionWhat it does
--project-number <value>The project's number.
--field-id <value>The unique identifier of the field.
--username <value>The handle for the GitHub user account.

Example: gthb personal api projects get-field-for-user --project-number <value> --field-id <value> --username <value>

gthb api projects list-items-for-user

List items for a user owned project — read (GET /users/{username}/projectsV2/{project_number}/items)

gthb api projects list-items-for-user [options]
OptionWhat it does
--project-number <value>The project's number.
--username <value>The handle for the GitHub user account.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--q <value>Search query to filter items, see Filtering projects for more information.
--fields <value>Limit results to specific fields, by their IDs. If not specified, the title field will be returned.

Example: gthb personal api projects list-items-for-user --project-number <value> --username <value>

gthb api projects get-user-item

Get an item for a user owned project — read (GET /users/{username}/projectsV2/{project_number}/items/{item_id})

gthb api projects get-user-item [options]
OptionWhat it does
--project-number <value>The project's number.
--username <value>The handle for the GitHub user account.
--item-id <value>The unique identifier of the project item.
--fields <value>Limit results to specific fields, by their IDs. If not specified, the title field will be returned.

Example: gthb personal api projects get-user-item --project-number <value> --username <value> --item-id <value>

gthb api projects list-view-items-for-user

List items for a user project view — read (GET /users/{username}/projectsV2/{project_number}/views/{view_number}/items)

gthb api projects list-view-items-for-user [options]
OptionWhat it does
--project-number <value>The project's number.
--username <value>The handle for the GitHub user account.
--view-number <value>The number that identifies the project view.
--fields <value>Limit results to specific fields, by their IDs. If not specified, the.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api projects list-view-items-for-user --project-number <value> --username <value> --view-number <value>

gthb api repos

the repos operations

gthb api repos list-for-org

List organization repositories — read (GET /orgs/{org}/repos)

gthb api repos list-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--type <value>Specifies the types of repositories you want returned.
--sort <value>The property to sort the results by.
--direction <value>The order to sort by. Default: asc when using full_name, otherwise desc.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-for-org --org <value>

gthb api repos get-org-rulesets

Get all organization repository rulesets — read (GET /orgs/{org}/rulesets)

gthb api repos get-org-rulesets [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--targets <value>A comma-separated list of rule targets to filter by.

Example: gthb personal api repos get-org-rulesets --org <value>

gthb api repos get-org-rule-suites

List organization rule suites — read (GET /orgs/{org}/rulesets/rule-suites)

gthb api repos get-org-rule-suites [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--ref <value>The name of the ref. Cannot contain wildcard characters. Optionally prefix with refs/heads/ to limit to branches or refs/tags/ to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.
--repository-name <value>The name of the repository to filter on.
--time-period <value>The time period to filter by.
--actor-name <value>The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned.
--rule-suite-result <value>The rule suite results to filter on. When specified, only suites with this result will be returned.
--evaluate-status <value>The evaluate status to filter on. When specified, only rule suites resulting from rulesets with the specified evaluate status will be returned.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos get-org-rule-suites --org <value>

gthb api repos get-org-rule-suite

Get an organization rule suite — read (GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id})

gthb api repos get-org-rule-suite [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--rule-suite-id <value>The unique identifier of the rule suite result.
--include-metadata <value>When set to true, the response will include additional metadata for pull request and required status check rule evaluation.

Example: gthb personal api repos get-org-rule-suite --org <value> --rule-suite-id <value>

gthb api repos get-org-ruleset

Get an organization repository ruleset — read (GET /orgs/{org}/rulesets/{ruleset_id})

gthb api repos get-org-ruleset [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--ruleset-id <value>The ID of the ruleset.

Example: gthb personal api repos get-org-ruleset --org <value> --ruleset-id <value>

gthb api repos get

Get a repository — read (GET /repos/{owner}/{repo})

gthb api repos get [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get --owner <value> --repo <value>

gthb api repos list-activities

List repository activities — read (GET /repos/{owner}/{repo}/activity)

gthb api repos list-activities [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--direction <value>The direction to sort the results by.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--ref <value>The Git reference for the activities you want to list.
--actor <value>The GitHub username to use to filter by the actor who performed the activity.
--time-period <value>The time period to filter by.
--activity-type <value>The activity type to filter by.

Example: gthb personal api repos list-activities --owner <value> --repo <value>

gthb api repos list-attestations

List attestations — read (GET /repos/{owner}/{repo}/attestations/{subject_digest})

gthb api repos list-attestations [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--subject-digest <value>The parameter should be set to the attestation's subject's SHA256 digest, in the form sha256:HEX_DIGEST.
--predicate-type <value>Optional filter for fetching attestations with a given predicate type.

Example: gthb personal api repos list-attestations --owner <value> --repo <value> --subject-digest <value>

Get all autolinks of a repository — read (GET /repos/{owner}/{repo}/autolinks)

gthb api repos list-autolinks [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos list-autolinks --owner <value> --repo <value>

Get an autolink reference of a repository — read (GET /repos/{owner}/{repo}/autolinks/{autolink_id})

gthb api repos get-autolink [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--autolink-id <value>The unique identifier of the autolink.

Example: gthb personal api repos get-autolink --owner <value> --repo <value> --autolink-id <value>

gthb api repos check-automated-security-fixes

Check if Dependabot security updates are enabled for a repository — read (GET /repos/{owner}/{repo}/automated-security-fixes)

gthb api repos check-automated-security-fixes [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos check-automated-security-fixes --owner <value> --repo <value>

gthb api repos list-branches

List branches — read (GET /repos/{owner}/{repo}/branches)

gthb api repos list-branches [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--protected <value>Setting to true returns only branches protected by branch protections or rulesets. When set to false, only unprotected branches are returned. Omitting this parameter returns all branches.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-branches --owner <value> --repo <value>

gthb api repos get-branch

Get a branch — read (GET /repos/{owner}/{repo}/branches/{branch})

gthb api repos get-branch [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--branch <value>The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

Example: gthb personal api repos get-branch --owner <value> --repo <value> --branch <value>

gthb api repos get-branch-protection

Get branch protection — read (GET /repos/{owner}/{repo}/branches/{branch}/protection)

gthb api repos get-branch-protection [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--branch <value>The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

Example: gthb personal api repos get-branch-protection --owner <value> --repo <value> --branch <value>

gthb api repos get-admin-branch-protection

Get admin branch protection — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins)

gthb api repos get-admin-branch-protection [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--branch <value>The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

Example: gthb personal api repos get-admin-branch-protection --owner <value> --repo <value> --branch <value>

gthb api repos get-pull-request-review-protection

Get pull request review protection — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews)

gthb api repos get-pull-request-review-protection [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--branch <value>The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

Example: gthb personal api repos get-pull-request-review-protection --owner <value> --repo <value> --branch <value>

gthb api repos get-commit-signature-protection

Get commit signature protection — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures)

gthb api repos get-commit-signature-protection [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--branch <value>The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

Example: gthb personal api repos get-commit-signature-protection --owner <value> --repo <value> --branch <value>

gthb api repos get-status-checks-protection

Get status checks protection — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks)

gthb api repos get-status-checks-protection [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--branch <value>The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

Example: gthb personal api repos get-status-checks-protection --owner <value> --repo <value> --branch <value>

gthb api repos get-all-status-check-contexts

Get all status check contexts — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts)

gthb api repos get-all-status-check-contexts [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--branch <value>The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

Example: gthb personal api repos get-all-status-check-contexts --owner <value> --repo <value> --branch <value>

gthb api repos get-access-restrictions

Get access restrictions — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions)

gthb api repos get-access-restrictions [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--branch <value>The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

Example: gthb personal api repos get-access-restrictions --owner <value> --repo <value> --branch <value>

gthb api repos get-apps-with-access-to-protected-branch

Get apps with access to the protected branch — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps)

gthb api repos get-apps-with-access-to-protected-branch [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--branch <value>The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

Example: gthb personal api repos get-apps-with-access-to-protected-branch --owner <value> --repo <value> --branch <value>

gthb api repos get-teams-with-access-to-protected-branch

Get teams with access to the protected branch — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams)

gthb api repos get-teams-with-access-to-protected-branch [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--branch <value>The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

Example: gthb personal api repos get-teams-with-access-to-protected-branch --owner <value> --repo <value> --branch <value>

gthb api repos get-users-with-access-to-protected-branch

Get users with access to the protected branch — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users)

gthb api repos get-users-with-access-to-protected-branch [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--branch <value>The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

Example: gthb personal api repos get-users-with-access-to-protected-branch --owner <value> --repo <value> --branch <value>

gthb api repos list-collaborators

List repository collaborators — read (GET /repos/{owner}/{repo}/collaborators)

gthb api repos list-collaborators [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--affiliation <value>Filter collaborators returned by their affiliation. outside means all outside collaborators of an organization-owned repository. direct means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. all means all collaborators the authenticated user can see.
--permission <value>Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-collaborators --owner <value> --repo <value>

gthb api repos check-collaborator

Check if a user is a repository collaborator — read (GET /repos/{owner}/{repo}/collaborators/{username})

gthb api repos check-collaborator [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--username <value>The handle for the GitHub user account.

Example: gthb personal api repos check-collaborator --owner <value> --repo <value> --username <value>

gthb api repos get-collaborator-permission-level

Get repository permissions for a user — read (GET /repos/{owner}/{repo}/collaborators/{username}/permission)

gthb api repos get-collaborator-permission-level [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--username <value>The handle for the GitHub user account.

Example: gthb personal api repos get-collaborator-permission-level --owner <value> --repo <value> --username <value>

gthb api repos list-commit-comments-for-repo

List commit comments for a repository — read (GET /repos/{owner}/{repo}/comments)

gthb api repos list-commit-comments-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-commit-comments-for-repo --owner <value> --repo <value>

gthb api repos get-commit-comment

Get a commit comment — read (GET /repos/{owner}/{repo}/comments/{comment_id})

gthb api repos get-commit-comment [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--comment-id <value>The unique identifier of the comment.

Example: gthb personal api repos get-commit-comment --owner <value> --repo <value> --comment-id <value>

gthb api repos list-commits

List commits — read (GET /repos/{owner}/{repo}/commits)

gthb api repos list-commits [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--sha <value>SHA or branch to start listing commits from. Default: the repository’s default branch (usually main).
--path <value>Only commits containing this file path will be returned.
--author <value>GitHub username or email address to use to filter by commit author.
--committer <value>GitHub username or email address to use to filter by commit committer.
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Due to limitations of Git, timestamps must be between 1970-01-01 and 2099-12-31 (inclusive) or unexpected results may be returned.
--until <value>Only commits before this date will be returned. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Due to limitations of Git, timestamps must be between 1970-01-01 and 2099-12-31 (inclusive) or unexpected results may be returned.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-commits --owner <value> --repo <value>

gthb api repos list-branches-for-head-commit

List branches for HEAD commit — read (GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head)

gthb api repos list-branches-for-head-commit [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--commit-sha <value>The SHA of the commit.

Example: gthb personal api repos list-branches-for-head-commit --owner <value> --repo <value> --commit-sha <value>

gthb api repos list-comments-for-commit

List commit comments — read (GET /repos/{owner}/{repo}/commits/{commit_sha}/comments)

gthb api repos list-comments-for-commit [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--commit-sha <value>The SHA of the commit.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-comments-for-commit --owner <value> --repo <value> --commit-sha <value>

gthb api repos list-pull-requests-associated-with-commit

List pull requests associated with a commit — read (GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls)

gthb api repos list-pull-requests-associated-with-commit [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--commit-sha <value>The SHA of the commit.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-pull-requests-associated-with-commit --owner <value> --repo <value> --commit-sha <value>

gthb api repos get-commit

Get a commit — read (GET /repos/{owner}/{repo}/commits/{ref})

gthb api repos get-commit [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--ref <value>The commit reference. Can be a commit SHA, branch name (heads/BRANCH_NAME), or tag name (tags/TAG_NAME). For more information, see "Git References" in the Git documentation.

Example: gthb personal api repos get-commit --owner <value> --repo <value> --ref <value>

gthb api repos get-combined-status-for-ref

Get the combined status for a specific reference — read (GET /repos/{owner}/{repo}/commits/{ref}/status)

gthb api repos get-combined-status-for-ref [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--ref <value>The commit reference. Can be a commit SHA, branch name (heads/BRANCH_NAME), or tag name (tags/TAG_NAME). For more information, see "Git References" in the Git documentation.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos get-combined-status-for-ref --owner <value> --repo <value> --ref <value>

gthb api repos list-commit-statuses-for-ref

List commit statuses for a reference — read (GET /repos/{owner}/{repo}/commits/{ref}/statuses)

gthb api repos list-commit-statuses-for-ref [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--ref <value>The commit reference. Can be a commit SHA, branch name (heads/BRANCH_NAME), or tag name (tags/TAG_NAME). For more information, see "Git References" in the Git documentation.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-commit-statuses-for-ref --owner <value> --repo <value> --ref <value>

gthb api repos get-community-profile-metrics

Get community profile metrics — read (GET /repos/{owner}/{repo}/community/profile)

gthb api repos get-community-profile-metrics [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-community-profile-metrics --owner <value> --repo <value>

gthb api repos compare-commits

Compare two commits — read (GET /repos/{owner}/{repo}/compare/{basehead})

gthb api repos compare-commits [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--basehead <value>The base branch and head branch to compare. This parameter expects the format BASE...HEAD. Both must be branch names in repo. To compare with a branch that exists in a different repository in the same network as repo, the basehead parameter expects the format USERNAME:BASE...USERNAME:HEAD.

Example: gthb personal api repos compare-commits --owner <value> --repo <value> --basehead <value>

gthb api repos list-contributors

List repository contributors — read (GET /repos/{owner}/{repo}/contributors)

gthb api repos list-contributors [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--anon <value>Set to 1 or true to include anonymous contributors in results.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-contributors --owner <value> --repo <value>

gthb api repos list-deployments

List deployments — read (GET /repos/{owner}/{repo}/deployments)

gthb api repos list-deployments [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--sha <value>The SHA recorded at creation time.
--ref <value>The name of the ref. This can be a branch, tag, or SHA.
--task <value>The name of the task for the deployment (e.g., deploy or deploy:migrations).
--environment <value>The name of the environment that was deployed to (e.g., staging or production).
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-deployments --owner <value> --repo <value>

gthb api repos get-deployment

Get a deployment — read (GET /repos/{owner}/{repo}/deployments/{deployment_id})

gthb api repos get-deployment [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--deployment-id <value>deployment_id parameter.

Example: gthb personal api repos get-deployment --owner <value> --repo <value> --deployment-id <value>

gthb api repos list-deployment-statuses

List deployment statuses — read (GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses)

gthb api repos list-deployment-statuses [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--deployment-id <value>deployment_id parameter.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-deployment-statuses --owner <value> --repo <value> --deployment-id <value>

gthb api repos get-deployment-status

Get a deployment status — read (GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id})

gthb api repos get-deployment-status [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--deployment-id <value>deployment_id parameter.
--status-id <value>status_id.

Example: gthb personal api repos get-deployment-status --owner <value> --repo <value> --deployment-id <value> --status-id <value>

gthb api repos get-all-environments

List environments — read (GET /repos/{owner}/{repo}/environments)

gthb api repos get-all-environments [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api repos get-all-environments --owner <value> --repo <value>

gthb api repos get-environment

Get an environment — read (GET /repos/{owner}/{repo}/environments/{environment_name})

gthb api repos get-environment [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--environment-name <value>The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with %2F.

Example: gthb personal api repos get-environment --owner <value> --repo <value> --environment-name <value>

gthb api repos list-deployment-branch-policies

List deployment branch policies — read (GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies)

gthb api repos list-deployment-branch-policies [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--environment-name <value>The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with %2F.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api repos list-deployment-branch-policies --owner <value> --repo <value> --environment-name <value>

gthb api repos get-deployment-branch-policy

Get a deployment branch policy — read (GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id})

gthb api repos get-deployment-branch-policy [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--environment-name <value>The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with %2F.
--branch-policy-id <value>The unique identifier of the branch policy.

Example: gthb personal api repos get-deployment-branch-policy --owner <value> --repo <value> --environment-name <value> --branch-policy-id <value>

gthb api repos get-all-deployment-protection-rules

Get all deployment protection rules for an environment — read (GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules)

gthb api repos get-all-deployment-protection-rules [options]
OptionWhat it does
--environment-name <value>The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with %2F.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--owner <value>The account owner of the repository. The name is not case sensitive.

Example: gthb personal api repos get-all-deployment-protection-rules --environment-name <value> --repo <value> --owner <value>

gthb api repos list-custom-deployment-rule-integrations

List custom deployment rule integrations available for an environment — read (GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps)

gthb api repos list-custom-deployment-rule-integrations [options]
OptionWhat it does
--environment-name <value>The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with %2F.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--owner <value>The account owner of the repository. The name is not case sensitive.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api repos list-custom-deployment-rule-integrations --environment-name <value> --repo <value> --owner <value>

gthb api repos get-custom-deployment-protection-rule

Get a custom deployment protection rule — read (GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id})

gthb api repos get-custom-deployment-protection-rule [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--environment-name <value>The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with %2F.
--protection-rule-id <value>The unique identifier of the protection rule.

Example: gthb personal api repos get-custom-deployment-protection-rule --owner <value> --repo <value> --environment-name <value> --protection-rule-id <value>

gthb api repos list-forks

List forks — read (GET /repos/{owner}/{repo}/forks)

gthb api repos list-forks [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--sort <value>The sort order. stargazers will sort by star count.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-forks --owner <value> --repo <value>

gthb api repos get-hash-algorithm

Get the hash algorithm for a repository — read (GET /repos/{owner}/{repo}/hash-algorithm)

gthb api repos get-hash-algorithm [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-hash-algorithm --owner <value> --repo <value>

gthb api repos check-immutable-releases

Check if immutable releases are enabled for a repository — read (GET /repos/{owner}/{repo}/immutable-releases)

gthb api repos check-immutable-releases [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos check-immutable-releases --owner <value> --repo <value>

gthb api repos list-invitations

List repository invitations — read (GET /repos/{owner}/{repo}/invitations)

gthb api repos list-invitations [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-invitations --owner <value> --repo <value>

gthb api repos list-issue-types

List issue types for a repository — read (GET /repos/{owner}/{repo}/issue-types)

gthb api repos list-issue-types [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos list-issue-types --owner <value> --repo <value>

gthb api repos list-deploy-keys

List deploy keys — read (GET /repos/{owner}/{repo}/keys)

gthb api repos list-deploy-keys [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-deploy-keys --owner <value> --repo <value>

gthb api repos get-deploy-key

Get a deploy key — read (GET /repos/{owner}/{repo}/keys/{key_id})

gthb api repos get-deploy-key [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--key-id <value>The unique identifier of the key.

Example: gthb personal api repos get-deploy-key --owner <value> --repo <value> --key-id <value>

gthb api repos list-languages

List repository languages — read (GET /repos/{owner}/{repo}/languages)

gthb api repos list-languages [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos list-languages --owner <value> --repo <value>

gthb api repos get-pages

Get a GitHub Pages site — read (GET /repos/{owner}/{repo}/pages)

gthb api repos get-pages [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-pages --owner <value> --repo <value>

gthb api repos list-pages-builds

List GitHub Pages builds — read (GET /repos/{owner}/{repo}/pages/builds)

gthb api repos list-pages-builds [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-pages-builds --owner <value> --repo <value>

gthb api repos get-latest-pages-build

Get latest Pages build — read (GET /repos/{owner}/{repo}/pages/builds/latest)

gthb api repos get-latest-pages-build [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-latest-pages-build --owner <value> --repo <value>

gthb api repos get-pages-build

Get GitHub Pages build — read (GET /repos/{owner}/{repo}/pages/builds/{build_id})

gthb api repos get-pages-build [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--build-id <value>build_id.

Example: gthb personal api repos get-pages-build --owner <value> --repo <value> --build-id <value>

gthb api repos get-pages-deployment

Get the status of a GitHub Pages deployment — read (GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id})

gthb api repos get-pages-deployment [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--pages-deployment-id <value>The ID of the Pages deployment. You can also give the commit SHA of the deployment.

Example: gthb personal api repos get-pages-deployment --owner <value> --repo <value> --pages-deployment-id <value>

gthb api repos get-pages-health-check

Get a DNS health check for GitHub Pages — read (GET /repos/{owner}/{repo}/pages/health)

gthb api repos get-pages-health-check [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-pages-health-check --owner <value> --repo <value>

gthb api repos list-planning-statuses

List planning statuses for a repository — read (GET /repos/{owner}/{repo}/planning-statuses)

gthb api repos list-planning-statuses [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos list-planning-statuses --owner <value> --repo <value>

gthb api repos check-private-vulnerability-reporting

Check if private vulnerability reporting is enabled for a repository — read (GET /repos/{owner}/{repo}/private-vulnerability-reporting)

gthb api repos check-private-vulnerability-reporting [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos check-private-vulnerability-reporting --owner <value> --repo <value>

gthb api repos custom-properties-for-repos-get-repository-values

Get all custom property values for a repository — read (GET /repos/{owner}/{repo}/properties/values)

gthb api repos custom-properties-for-repos-get-repository-values [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos custom-properties-for-repos-get-repository-values --owner <value> --repo <value>

gthb api repos list-releases

List releases — read (GET /repos/{owner}/{repo}/releases)

gthb api repos list-releases [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-releases --owner <value> --repo <value>

gthb api repos get-release-asset

Get a release asset — read (GET /repos/{owner}/{repo}/releases/assets/{asset_id})

gthb api repos get-release-asset [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--asset-id <value>The unique identifier of the asset.

Example: gthb personal api repos get-release-asset --owner <value> --repo <value> --asset-id <value>

gthb api repos get-latest-release

Get the latest release — read (GET /repos/{owner}/{repo}/releases/latest)

gthb api repos get-latest-release [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-latest-release --owner <value> --repo <value>

gthb api repos get-release-by-tag

Get a release by tag name — read (GET /repos/{owner}/{repo}/releases/tags/{tag})

gthb api repos get-release-by-tag [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--tag <value>tag parameter.

Example: gthb personal api repos get-release-by-tag --owner <value> --repo <value> --tag <value>

gthb api repos get-release

Get a release — read (GET /repos/{owner}/{repo}/releases/{release_id})

gthb api repos get-release [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--release-id <value>The unique identifier of the release.

Example: gthb personal api repos get-release --owner <value> --repo <value> --release-id <value>

gthb api repos list-release-assets

List release assets — read (GET /repos/{owner}/{repo}/releases/{release_id}/assets)

gthb api repos list-release-assets [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--release-id <value>The unique identifier of the release.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-release-assets --owner <value> --repo <value> --release-id <value>

gthb api repos get-branch-rules

Get rules for a branch — read (GET /repos/{owner}/{repo}/rules/branches/{branch})

gthb api repos get-branch-rules [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--branch <value>The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos get-branch-rules --owner <value> --repo <value> --branch <value>

gthb api repos get-repo-rulesets

Get all repository rulesets — read (GET /repos/{owner}/{repo}/rulesets)

gthb api repos get-repo-rulesets [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--includes-parents <value>Include rulesets configured at higher levels that apply to this repository.
--targets <value>A comma-separated list of rule targets to filter by.

Example: gthb personal api repos get-repo-rulesets --owner <value> --repo <value>

gthb api repos get-repo-rule-suites

List repository rule suites — read (GET /repos/{owner}/{repo}/rulesets/rule-suites)

gthb api repos get-repo-rule-suites [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--ref <value>The name of the ref. Cannot contain wildcard characters. Optionally prefix with refs/heads/ to limit to branches or refs/tags/ to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.
--time-period <value>The time period to filter by.
--actor-name <value>The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned.
--rule-suite-result <value>The rule suite results to filter on. When specified, only suites with this result will be returned.
--evaluate-status <value>The evaluate status to filter on. When specified, only rule suites resulting from rulesets with the specified evaluate status will be returned.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos get-repo-rule-suites --owner <value> --repo <value>

gthb api repos get-repo-rule-suite

Get a repository rule suite — read (GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id})

gthb api repos get-repo-rule-suite [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--rule-suite-id <value>The unique identifier of the rule suite result.
--include-metadata <value>When set to true, the response will include additional metadata for pull request and required status check rule evaluation.

Example: gthb personal api repos get-repo-rule-suite --owner <value> --repo <value> --rule-suite-id <value>

gthb api repos get-repo-ruleset

Get a repository ruleset — read (GET /repos/{owner}/{repo}/rulesets/{ruleset_id})

gthb api repos get-repo-ruleset [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--ruleset-id <value>The ID of the ruleset.
--includes-parents <value>Include rulesets configured at higher levels that apply to this repository.

Example: gthb personal api repos get-repo-ruleset --owner <value> --repo <value> --ruleset-id <value>

gthb api repos get-repo-ruleset-history

Get repository ruleset history — read (GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history)

gthb api repos get-repo-ruleset-history [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--ruleset-id <value>The ID of the ruleset.

Example: gthb personal api repos get-repo-ruleset-history --owner <value> --repo <value> --ruleset-id <value>

gthb api repos get-repo-ruleset-version

Get repository ruleset version — read (GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id})

gthb api repos get-repo-ruleset-version [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--ruleset-id <value>The ID of the ruleset.
--version-id <value>The ID of the version.

Example: gthb personal api repos get-repo-ruleset-version --owner <value> --repo <value> --ruleset-id <value> --version-id <value>

gthb api repos get-code-frequency-stats

Get the weekly commit activity — read (GET /repos/{owner}/{repo}/stats/code_frequency)

gthb api repos get-code-frequency-stats [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-code-frequency-stats --owner <value> --repo <value>

gthb api repos get-commit-activity-stats

Get the last year of commit activity — read (GET /repos/{owner}/{repo}/stats/commit_activity)

gthb api repos get-commit-activity-stats [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-commit-activity-stats --owner <value> --repo <value>

gthb api repos get-contributors-stats

Get all contributor commit activity — read (GET /repos/{owner}/{repo}/stats/contributors)

gthb api repos get-contributors-stats [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-contributors-stats --owner <value> --repo <value>

gthb api repos get-participation-stats

Get the weekly commit count — read (GET /repos/{owner}/{repo}/stats/participation)

gthb api repos get-participation-stats [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-participation-stats --owner <value> --repo <value>

gthb api repos get-punch-card-stats

Get the hourly commit count for each day — read (GET /repos/{owner}/{repo}/stats/punch_card)

gthb api repos get-punch-card-stats [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-punch-card-stats --owner <value> --repo <value>

gthb api repos list-tags

List repository tags — read (GET /repos/{owner}/{repo}/tags)

gthb api repos list-tags [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-tags --owner <value> --repo <value>

gthb api repos list-teams

List repository teams — read (GET /repos/{owner}/{repo}/teams)

gthb api repos list-teams [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-teams --owner <value> --repo <value>

gthb api repos get-all-topics

Get all repository topics — read (GET /repos/{owner}/{repo}/topics)

gthb api repos get-all-topics [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api repos get-all-topics --owner <value> --repo <value>

gthb api repos get-clones

Get repository clones — read (GET /repos/{owner}/{repo}/traffic/clones)

gthb api repos get-clones [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per <value>The time frame to display results for.

Example: gthb personal api repos get-clones --owner <value> --repo <value>

gthb api repos get-top-paths

Get top referral paths — read (GET /repos/{owner}/{repo}/traffic/popular/paths)

gthb api repos get-top-paths [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-top-paths --owner <value> --repo <value>

gthb api repos get-top-referrers

Get top referral sources — read (GET /repos/{owner}/{repo}/traffic/popular/referrers)

gthb api repos get-top-referrers [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos get-top-referrers --owner <value> --repo <value>

gthb api repos get-views

Get page views — read (GET /repos/{owner}/{repo}/traffic/views)

gthb api repos get-views [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per <value>The time frame to display results for.

Example: gthb personal api repos get-views --owner <value> --repo <value>

gthb api repos check-vulnerability-alerts

Check if vulnerability alerts are enabled for a repository — read (GET /repos/{owner}/{repo}/vulnerability-alerts)

gthb api repos check-vulnerability-alerts [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api repos check-vulnerability-alerts --owner <value> --repo <value>

gthb api repos list-public

List public repositories — read (GET /repositories)

gthb api repos list-public [options]
OptionWhat it does
--since <value>A repository ID. Only return repositories with an ID greater than this ID.

Example: gthb personal api repos list-public

gthb api repos list-for-authenticated-user

List repositories for the authenticated user — read (GET /user/repos)

gthb api repos list-for-authenticated-user [options]
OptionWhat it does
--visibility <value>Limit results to repositories with the specified visibility.
--affiliation <value>Comma-separated list of values. Can include:.
--type <value>Limit results to repositories of the specified type. Will cause a 422 error if used in the same request as visibility or affiliation.
--sort <value>The property to sort the results by.
--direction <value>The order to sort by. Default: asc when using full_name, otherwise desc.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--since <value>Only show repositories updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--before <value>Only show repositories updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

Example: gthb personal api repos list-for-authenticated-user

gthb api repos list-invitations-for-authenticated-user

List repository invitations for the authenticated user — read (GET /user/repository_invitations)

gthb api repos list-invitations-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-invitations-for-authenticated-user

gthb api repos list-for-user

List repositories for a user — read (GET /users/{username}/repos)

gthb api repos list-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--type <value>Limit results to repositories of the specified type.
--sort <value>The property to sort the results by.
--direction <value>The order to sort by. Default: asc when using full_name, otherwise desc.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api repos list-for-user --username <value>

gthb api secret-scanning

the secret-scanning operations

gthb api secret-scanning list-alerts-for-org

List secret scanning alerts for an organization — read (GET /orgs/{org}/secret-scanning/alerts)

gthb api secret-scanning list-alerts-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--state <value>Set to open or resolved to only list secret scanning alerts in a specific state.
--secret-type <value>A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "Supported secret scanning patterns" for a complete list of secret types.
--exclude-secret-types <value>A comma-separated list of secret types to exclude from the results. All default secret patterns are returned except those matching the specified types. Cannot be combined with the secret_type parameter. See "Supported secret scanning patterns" for a complete list of secret types.
--exclude-providers <value>A comma-separated list of provider slugs to exclude from the results.
--providers <value>A comma-separated list of provider slugs to filter by.
--resolution <value>A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
--assignee <value>Filters alerts by assignee. Use * to get all assigned alerts, none to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user.
--sort <value>The property to sort the results by. created means when the alert was created. updated means when the alert was updated or resolved.
--direction <value>The direction to sort the results by.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string.
--after <value>A cursor, as given in the Link header. If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string.
--validity <value>A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are active, inactive, and unknown.
--is-publicly-leaked <value>A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
--is-multi-repo <value>A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
--hide-secret <value>A boolean value representing whether or not to hide literal secrets in the results.
--is-bypassed <value>A boolean value (true or false) indicating whether to filter alerts by their push protection bypass status. When set to true, only alerts that were created because a push protection rule was bypassed will be returned. When set to false, only alerts that were not caused by a push protection bypass will be returned.
--included-metadata <value>A comma-separated list of metadata fields to filter alerts by. Only alerts that have all of the.
--owner-email-hash <value>Filters alerts to only those whose attached owner_email metadata field matches the.

Example: gthb personal api secret-scanning list-alerts-for-org --org <value>

gthb api secret-scanning list-org-custom-patterns

List organization custom patterns — read (GET /orgs/{org}/secret-scanning/custom-patterns)

gthb api secret-scanning list-org-custom-patterns [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--state <value>Filter custom patterns by state. When absent, returns patterns in all states.
--push-protection <value>Filter custom patterns by whether push protection is enabled. When absent, returns patterns regardless of push protection status.
--sort <value>The property to sort the results by.
--direction <value>The direction to sort the results by.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".

Example: gthb personal api secret-scanning list-org-custom-patterns --org <value>

gthb api secret-scanning list-org-pattern-configs

List organization pattern configurations — read (GET /orgs/{org}/secret-scanning/pattern-configurations)

gthb api secret-scanning list-org-pattern-configs [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.

Example: gthb personal api secret-scanning list-org-pattern-configs --org <value>

gthb api secret-scanning list-alerts-for-repo

List secret scanning alerts for a repository — read (GET /repos/{owner}/{repo}/secret-scanning/alerts)

gthb api secret-scanning list-alerts-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--state <value>Set to open or resolved to only list secret scanning alerts in a specific state.
--secret-type <value>A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "Supported secret scanning patterns" for a complete list of secret types.
--exclude-secret-types <value>A comma-separated list of secret types to exclude from the results. All default secret patterns are returned except those matching the specified types. Cannot be combined with the secret_type parameter. See "Supported secret scanning patterns" for a complete list of secret types.
--exclude-providers <value>A comma-separated list of provider slugs to exclude from the results.
--providers <value>A comma-separated list of provider slugs to filter by.
--resolution <value>A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are false_positive, wont_fix, revoked, pattern_edited, pattern_deleted or used_in_tests.
--assignee <value>Filters alerts by assignee. Use * to get all assigned alerts, none to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user.
--sort <value>The property to sort the results by. created means when the alert was created. updated means when the alert was updated or resolved.
--direction <value>The direction to sort the results by.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string.
--after <value>A cursor, as given in the Link header. If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string.
--validity <value>A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are active, inactive, and unknown.
--is-publicly-leaked <value>A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.
--is-multi-repo <value>A boolean value representing whether or not to filter alerts by the multi-repo tag being present.
--hide-secret <value>A boolean value representing whether or not to hide literal secrets in the results.
--is-bypassed <value>A boolean value (true or false) indicating whether to filter alerts by their push protection bypass status. When set to true, only alerts that were created because a push protection rule was bypassed will be returned. When set to false, only alerts that were not caused by a push protection bypass will be returned.
--included-metadata <value>A comma-separated list of metadata fields to filter alerts by. Only alerts that have all of the.
--owner-email-hash <value>Filters alerts to only those whose attached owner_email metadata field matches the.

Example: gthb personal api secret-scanning list-alerts-for-repo --owner <value> --repo <value>

gthb api secret-scanning get-alert

Get a secret scanning alert — read (GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number})

gthb api secret-scanning get-alert [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--alert-number <value>The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
--hide-secret <value>A boolean value representing whether or not to hide literal secrets in the results.

Example: gthb personal api secret-scanning get-alert --owner <value> --repo <value> --alert-number <value>

gthb api secret-scanning list-locations-for-alert

List locations for a secret scanning alert — read (GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations)

gthb api secret-scanning list-locations-for-alert [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--alert-number <value>The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the number field in the response from the GET /repos/{owner}/{repo}/code-scanning/alerts operation.
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api secret-scanning list-locations-for-alert --owner <value> --repo <value> --alert-number <value>

gthb api secret-scanning list-repo-custom-patterns

List repository custom patterns — read (GET /repos/{owner}/{repo}/secret-scanning/custom-patterns)

gthb api secret-scanning list-repo-custom-patterns [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--state <value>Filter custom patterns by state. When absent, returns patterns in all states.
--push-protection <value>Filter custom patterns by whether push protection is enabled. When absent, returns patterns regardless of push protection status.
--sort <value>The property to sort the results by.
--direction <value>The direction to sort the results by.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".

Example: gthb personal api secret-scanning list-repo-custom-patterns --owner <value> --repo <value>

gthb api secret-scanning get-scan-history

Get secret scanning scan history for a repository — read (GET /repos/{owner}/{repo}/secret-scanning/scan-history)

gthb api secret-scanning get-scan-history [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api secret-scanning get-scan-history --owner <value> --repo <value>

gthb api hosted-compute

the hosted-compute operations

gthb api hosted-compute list-network-configurations-for-org

List hosted compute network configurations for an organization — read (GET /orgs/{org}/settings/network-configurations)

gthb api hosted-compute list-network-configurations-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api hosted-compute list-network-configurations-for-org --org <value>

gthb api hosted-compute get-network-configuration-for-org

Get a hosted compute network configuration for an organization — read (GET /orgs/{org}/settings/network-configurations/{network_configuration_id})

gthb api hosted-compute get-network-configuration-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--network-configuration-id <value>Unique identifier of the hosted compute network configuration.

Example: gthb personal api hosted-compute get-network-configuration-for-org --org <value> --network-configuration-id <value>

gthb api hosted-compute get-network-settings-for-org

Get a hosted compute network settings resource for an organization — read (GET /orgs/{org}/settings/network-settings/{network_settings_id})

gthb api hosted-compute get-network-settings-for-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--network-settings-id <value>Unique identifier of the hosted compute network settings.

Example: gthb personal api hosted-compute get-network-settings-for-org --org <value> --network-settings-id <value>

gthb api teams

the teams operations

gthb api teams list

List teams — read (GET /orgs/{org}/teams)

gthb api teams list [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--team-type <value>Filter team results by their type. For more information, see "What kind of team should I use?".

Example: gthb personal api teams list --org <value>

gthb api teams get-by-name

Get a team by name — read (GET /orgs/{org}/teams/{team_slug})

gthb api teams get-by-name [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--team-slug <value>The slug of the team name.

Example: gthb personal api teams get-by-name --org <value> --team-slug <value>

gthb api teams list-pending-invitations-in-org

List pending team invitations — read (GET /orgs/{org}/teams/{team_slug}/invitations)

gthb api teams list-pending-invitations-in-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--team-slug <value>The slug of the team name.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api teams list-pending-invitations-in-org --org <value> --team-slug <value>

gthb api teams list-members-in-org

List team members — read (GET /orgs/{org}/teams/{team_slug}/members)

gthb api teams list-members-in-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--team-slug <value>The slug of the team name.
--role <value>Filters members returned by their role in the team.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api teams list-members-in-org --org <value> --team-slug <value>

gthb api teams get-membership-for-user-in-org

Get team membership for a user — read (GET /orgs/{org}/teams/{team_slug}/memberships/{username})

gthb api teams get-membership-for-user-in-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--team-slug <value>The slug of the team name.
--username <value>The handle for the GitHub user account.

Example: gthb personal api teams get-membership-for-user-in-org --org <value> --team-slug <value> --username <value>

gthb api teams list-repos-in-org

List team repositories — read (GET /orgs/{org}/teams/{team_slug}/repos)

gthb api teams list-repos-in-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--team-slug <value>The slug of the team name.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api teams list-repos-in-org --org <value> --team-slug <value>

gthb api teams check-permissions-for-repo-in-org

Check team permissions for a repository — read (GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo})

gthb api teams check-permissions-for-repo-in-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--team-slug <value>The slug of the team name.
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api teams check-permissions-for-repo-in-org --org <value> --team-slug <value> --owner <value> --repo <value>

gthb api teams list-child-in-org

List child teams — read (GET /orgs/{org}/teams/{team_slug}/teams)

gthb api teams list-child-in-org [options]
OptionWhat it does
--org <value>The organization name. The name is not case sensitive.
--team-slug <value>The slug of the team name.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api teams list-child-in-org --org <value> --team-slug <value>

gthb api teams get-legacy

Get a team (Legacy) — read (GET /teams/{team_id})

gthb api teams get-legacy [options]
OptionWhat it does
--team-id <value>The unique identifier of the team.

Example: gthb personal api teams get-legacy --team-id <value>

gthb api teams list-pending-invitations-legacy

List pending team invitations (Legacy) — read (GET /teams/{team_id}/invitations)

gthb api teams list-pending-invitations-legacy [options]
OptionWhat it does
--team-id <value>The unique identifier of the team.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api teams list-pending-invitations-legacy --team-id <value>

gthb api teams list-members-legacy

List team members (Legacy) — read (GET /teams/{team_id}/members)

gthb api teams list-members-legacy [options]
OptionWhat it does
--team-id <value>The unique identifier of the team.
--role <value>Filters members returned by their role in the team.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api teams list-members-legacy --team-id <value>

gthb api teams get-member-legacy

Get team member (Legacy) — read (GET /teams/{team_id}/members/{username})

gthb api teams get-member-legacy [options]
OptionWhat it does
--team-id <value>The unique identifier of the team.
--username <value>The handle for the GitHub user account.

Example: gthb personal api teams get-member-legacy --team-id <value> --username <value>

gthb api teams get-membership-for-user-legacy

Get team membership for a user (Legacy) — read (GET /teams/{team_id}/memberships/{username})

gthb api teams get-membership-for-user-legacy [options]
OptionWhat it does
--team-id <value>The unique identifier of the team.
--username <value>The handle for the GitHub user account.

Example: gthb personal api teams get-membership-for-user-legacy --team-id <value> --username <value>

gthb api teams list-repos-legacy

List team repositories (Legacy) — read (GET /teams/{team_id}/repos)

gthb api teams list-repos-legacy [options]
OptionWhat it does
--team-id <value>The unique identifier of the team.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api teams list-repos-legacy --team-id <value>

gthb api teams check-permissions-for-repo-legacy

Check team permissions for a repository (Legacy) — read (GET /teams/{team_id}/repos/{owner}/{repo})

gthb api teams check-permissions-for-repo-legacy [options]
OptionWhat it does
--team-id <value>The unique identifier of the team.
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api teams check-permissions-for-repo-legacy --team-id <value> --owner <value> --repo <value>

gthb api teams list-child-legacy

List child teams (Legacy) — read (GET /teams/{team_id}/teams)

gthb api teams list-child-legacy [options]
OptionWhat it does
--team-id <value>The unique identifier of the team.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api teams list-child-legacy --team-id <value>

gthb api teams list-for-authenticated-user

List teams for the authenticated user — read (GET /user/teams)

gthb api teams list-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api teams list-for-authenticated-user

gthb api rate-limit-get

Get rate limit status for the authenticated user — read (GET /rate_limit)

gthb api rate-limit-get

Example: gthb personal api rate-limit-get

gthb api checks

the checks operations

gthb api checks get

Get a check run — read (GET /repos/{owner}/{repo}/check-runs/{check_run_id})

gthb api checks get [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--check-run-id <value>The unique identifier of the check run.

Example: gthb personal api checks get --owner <value> --repo <value> --check-run-id <value>

gthb api checks get-suite

Get a check suite — read (GET /repos/{owner}/{repo}/check-suites/{check_suite_id})

gthb api checks get-suite [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--check-suite-id <value>The unique identifier of the check suite.

Example: gthb personal api checks get-suite --owner <value> --repo <value> --check-suite-id <value>

gthb api checks list-for-suite

List check runs in a check suite — read (GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs)

gthb api checks list-for-suite [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--check-suite-id <value>The unique identifier of the check suite.
--check-name <value>Returns check runs with the specified name.
--status <value>Returns check runs with the specified status.
--filter <value>Filters check runs by their completed_at timestamp. latest returns the most recent check runs.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api checks list-for-suite --owner <value> --repo <value> --check-suite-id <value>

gthb api checks list-for-ref

List check runs for a Git reference — read (GET /repos/{owner}/{repo}/commits/{ref}/check-runs)

gthb api checks list-for-ref [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--ref <value>The commit reference. Can be a commit SHA, branch name (heads/BRANCH_NAME), or tag name (tags/TAG_NAME). For more information, see "Git References" in the Git documentation.
--check-name <value>Returns check runs with the specified name.
--status <value>Returns check runs with the specified status.
--filter <value>Filters check runs by their completed_at timestamp. latest returns the most recent check runs.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--app-id <value>app_id.
--allread every page, as the API pages it.

Example: gthb personal api checks list-for-ref --owner <value> --repo <value> --ref <value>

gthb api checks list-suites-for-ref

List check suites for a Git reference — read (GET /repos/{owner}/{repo}/commits/{ref}/check-suites)

gthb api checks list-suites-for-ref [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--ref <value>The commit reference. Can be a commit SHA, branch name (heads/BRANCH_NAME), or tag name (tags/TAG_NAME). For more information, see "Git References" in the Git documentation.
--app-id <value>Filters check suites by GitHub App id.
--check-name <value>Returns check runs with the specified name.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api checks list-suites-for-ref --owner <value> --repo <value> --ref <value>

gthb api code-quality

the code-quality operations

gthb api code-quality list-findings-for-repo

List code quality findings for a repository — read (GET /repos/{owner}/{repo}/code-quality/findings)

gthb api code-quality list-findings-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--direction <value>The direction to sort the results by.
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--state <value>If specified, only code quality findings with this state will be returned.

Example: gthb personal api code-quality list-findings-for-repo --owner <value> --repo <value>

gthb api code-quality get-finding

Get a code quality finding — read (GET /repos/{owner}/{repo}/code-quality/findings/{finding_number})

gthb api code-quality get-finding [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--finding-number <value>The number that identifies a finding.

Example: gthb personal api code-quality get-finding --owner <value> --repo <value> --finding-number <value>

gthb api code-quality get-setup

Get a code quality setup configuration — read (GET /repos/{owner}/{repo}/code-quality/setup)

gthb api code-quality get-setup [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api code-quality get-setup --owner <value> --repo <value>

gthb api reactions

the reactions operations

gthb api reactions list-for-commit-comment

List reactions for a commit comment — read (GET /repos/{owner}/{repo}/comments/{comment_id}/reactions)

gthb api reactions list-for-commit-comment [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--comment-id <value>The unique identifier of the comment.
--content <value>Returns a single reaction type. Omit this parameter to list all reactions to a commit comment.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api reactions list-for-commit-comment --owner <value> --repo <value> --comment-id <value>

gthb api reactions list-for-issue-comment

List reactions for an issue comment — read (GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions)

gthb api reactions list-for-issue-comment [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--comment-id <value>The unique identifier of the comment.
--content <value>Returns a single reaction type. Omit this parameter to list all reactions to an issue comment.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api reactions list-for-issue-comment --owner <value> --repo <value> --comment-id <value>

gthb api reactions list-for-issue

List reactions for an issue — read (GET /repos/{owner}/{repo}/issues/{issue_number}/reactions)

gthb api reactions list-for-issue [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--issue-number <value>The number that identifies the issue.
--content <value>Returns a single reaction type. Omit this parameter to list all reactions to an issue.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api reactions list-for-issue --owner <value> --repo <value> --issue-number <value>

gthb api reactions list-for-pull-request-review-comment

List reactions for a pull request review comment — read (GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions)

gthb api reactions list-for-pull-request-review-comment [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--comment-id <value>The unique identifier of the comment.
--content <value>Returns a single reaction type. Omit this parameter to list all reactions to a pull request review comment.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api reactions list-for-pull-request-review-comment --owner <value> --repo <value> --comment-id <value>

gthb api reactions list-for-release

List reactions for a release — read (GET /repos/{owner}/{repo}/releases/{release_id}/reactions)

gthb api reactions list-for-release [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--release-id <value>The unique identifier of the release.
--content <value>Returns a single reaction type. Omit this parameter to list all reactions to a release.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api reactions list-for-release --owner <value> --repo <value> --release-id <value>

gthb api dependency-graph

the dependency-graph operations

gthb api dependency-graph diff-range

Get a diff of the dependencies between commits — read (GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead})

gthb api dependency-graph diff-range [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--basehead <value>The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their corresponding HEAD commits, and an appropriate merge base will be determined. This parameter expects the format {base}...{head}.
--name <value>The full path, relative to the repository root, of the dependency manifest file.

Example: gthb personal api dependency-graph diff-range --owner <value> --repo <value> --basehead <value>

gthb api dependency-graph export-sbom

Export a software bill of materials (SBOM) for a repository. — read (GET /repos/{owner}/{repo}/dependency-graph/sbom)

gthb api dependency-graph export-sbom [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.

Example: gthb personal api dependency-graph export-sbom --owner <value> --repo <value>

gthb api pulls

the pulls operations

gthb api pulls list

List pull requests — read (GET /repos/{owner}/{repo}/pulls)

gthb api pulls list [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--state <value>Either open, closed, or all to filter by state.
--head <value>Filter pulls by head user or head organization and branch name in the format of user:ref-name or organization:ref-name. For example: github:new-script-format or octocat:test-branch.
--base <value>Filter pulls by base branch name. Example: gh-pages.
--sort <value>What to sort results by. popularity will sort by the number of comments. long-running will sort by date created and will limit the results to pull requests that have been open for more than a month and have had activity within the past month.
--direction <value>The direction of the sort. Default: desc when sort is created or sort is not specified, otherwise asc.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api pulls list --owner <value> --repo <value>

gthb api pulls list-review-comments-for-repo

List review comments in a repository — read (GET /repos/{owner}/{repo}/pulls/comments)

gthb api pulls list-review-comments-for-repo [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--sort <value>sort.
--direction <value>The direction to sort results. Ignored without sort parameter.
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api pulls list-review-comments-for-repo --owner <value> --repo <value>

gthb api pulls get-review-comment

Get a review comment for a pull request — read (GET /repos/{owner}/{repo}/pulls/comments/{comment_id})

gthb api pulls get-review-comment [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--comment-id <value>The unique identifier of the comment.

Example: gthb personal api pulls get-review-comment --owner <value> --repo <value> --comment-id <value>

gthb api pulls get

Get a pull request — read (GET /repos/{owner}/{repo}/pulls/{pull_number})

gthb api pulls get [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--pull-number <value>The number that identifies the pull request.

Example: gthb personal api pulls get --owner <value> --repo <value> --pull-number <value>

gthb api pulls list-review-comments

List review comments on a pull request — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/comments)

gthb api pulls list-review-comments [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--pull-number <value>The number that identifies the pull request.
--sort <value>The property to sort the results by.
--direction <value>The direction to sort results. Ignored without sort parameter.
--since <value>Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api pulls list-review-comments --owner <value> --repo <value> --pull-number <value>

gthb api pulls list-commits

List commits on a pull request — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/commits)

gthb api pulls list-commits [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--pull-number <value>The number that identifies the pull request.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api pulls list-commits --owner <value> --repo <value> --pull-number <value>

gthb api pulls list-files

List pull requests files — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/files)

gthb api pulls list-files [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--pull-number <value>The number that identifies the pull request.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api pulls list-files --owner <value> --repo <value> --pull-number <value>

gthb api pulls check-if-merged

Check if a pull request has been merged — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/merge)

gthb api pulls check-if-merged [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--pull-number <value>The number that identifies the pull request.

Example: gthb personal api pulls check-if-merged --owner <value> --repo <value> --pull-number <value>

gthb api pulls get-merge-async-result

Get the result of an asynchronous merge — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/merge-async/{uuid})

gthb api pulls get-merge-async-result [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--pull-number <value>The number that identifies the pull request.
--uuid <value>The UUID of the asynchronous merge request, as returned when the merge was requested.

Example: gthb personal api pulls get-merge-async-result --owner <value> --repo <value> --pull-number <value> --uuid <value>

gthb api pulls list-requested-reviewers

Get all requested reviewers for a pull request — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers)

gthb api pulls list-requested-reviewers [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--pull-number <value>The number that identifies the pull request.

Example: gthb personal api pulls list-requested-reviewers --owner <value> --repo <value> --pull-number <value>

gthb api pulls list-reviews

List reviews for a pull request — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews)

gthb api pulls list-reviews [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--pull-number <value>The number that identifies the pull request.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api pulls list-reviews --owner <value> --repo <value> --pull-number <value>

gthb api pulls get-review

Get a review for a pull request — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id})

gthb api pulls get-review [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--pull-number <value>The number that identifies the pull request.
--review-id <value>The unique identifier of the review.

Example: gthb personal api pulls get-review --owner <value> --repo <value> --pull-number <value> --review-id <value>

gthb api pulls list-comments-for-review

List comments for a pull request review — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments)

gthb api pulls list-comments-for-review [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--pull-number <value>The number that identifies the pull request.
--review-id <value>The unique identifier of the review.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api pulls list-comments-for-review --owner <value> --repo <value> --pull-number <value> --review-id <value>

gthb api pulls pull-request-stacks-list

List pull request stacks — read (GET /repos/{owner}/{repo}/stacks)

gthb api pulls pull-request-stacks-list [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--pull-request <value>Filter to the stack containing this repository pull request number.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api pulls pull-request-stacks-list --owner <value> --repo <value>

gthb api pulls pull-request-stacks-get

Get a pull request stack — read (GET /repos/{owner}/{repo}/stacks/{stack_number})

gthb api pulls pull-request-stacks-get [options]
OptionWhat it does
--owner <value>The account owner of the repository. The name is not case sensitive.
--repo <value>The name of the repository without the .git extension. The name is not case sensitive.
--stack-number <value>The number that identifies the pull request stack.

Example: gthb personal api pulls pull-request-stacks-get --owner <value> --repo <value> --stack-number <value>

the search operations

gthb api search commits

Search commits — read (GET /search/commits)

gthb api search commits [options]
OptionWhat it does
--q <value>The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See "Searching commits" for a detailed list of qualifiers.
--sort <value>Sorts the results of your query by author-date or committer-date. Default: best match.
--order <value>Determines whether the first search result returned is the highest number of matches (desc) or lowest number of matches (asc). This parameter is ignored unless you provide sort.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api search commits --q <value>

gthb api search issues-and-pull-requests

Search issues and pull requests — read (GET /search/issues)

gthb api search issues-and-pull-requests [options]
OptionWhat it does
--q <value>The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See "Searching issues and pull requests" for a detailed list of qualifiers.
--sort <value>Sorts the results of your query by the number of comments, reactions, reactions-+1, reactions--1, reactions-smile, reactions-thinking_face, reactions-heart, reactions-tada, or interactions. You can also sort results by how recently the items were created or updated, Default: best match.
--order <value>Determines whether the first search result returned is the highest number of matches (desc) or lowest number of matches (asc). This parameter is ignored unless you provide sort.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--advanced-search <value>Set to true to use advanced search.
--search-type <value>The type of search to perform on issues. When not specified, the default is lexical search.
--allread every page, as the API pages it.

Example: gthb personal api search issues-and-pull-requests --q <value>

gthb api search labels

Search labels — read (GET /search/labels)

gthb api search labels [options]
OptionWhat it does
--repository-id <value>The id of the repository.
--q <value>The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see Constructing a search query.
--sort <value>Sorts the results of your query by when the label was created or updated. Default: best match.
--order <value>Determines whether the first search result returned is the highest number of matches (desc) or lowest number of matches (asc). This parameter is ignored unless you provide sort.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api search labels --repository-id <value> --q <value>

gthb api search repos

Search repositories — read (GET /search/repositories)

gthb api search repos [options]
OptionWhat it does
--q <value>The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See "Searching for repositories" for a detailed list of qualifiers.
--sort <value>Sorts the results of your query by number of stars, forks, or help-wanted-issues or how recently the items were updated. Default: best match.
--order <value>Determines whether the first search result returned is the highest number of matches (desc) or lowest number of matches (asc). This parameter is ignored unless you provide sort.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api search repos --q <value>

gthb api search topics

Search topics — read (GET /search/topics)

gthb api search topics [options]
OptionWhat it does
--q <value>The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api search topics --q <value>

gthb api search users

Search users — read (GET /search/users)

gthb api search users [options]
OptionWhat it does
--q <value>The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see Constructing a search query. See "Searching users" for a detailed list of qualifiers.
--sort <value>Sorts the results of your query by number of followers or repositories, or when the person joined GitHub. Default: best match.
--order <value>Determines whether the first search result returned is the highest number of matches (desc) or lowest number of matches (asc). This parameter is ignored unless you provide sort.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".
--allread every page, as the API pages it.

Example: gthb personal api search users --q <value>

gthb api users

the users operations

gthb api users get-authenticated

Get the authenticated user — read (GET /user)

gthb api users get-authenticated

Example: gthb personal api users get-authenticated

gthb api users list-blocked-by-authenticated-user

List users blocked by the authenticated user — read (GET /user/blocks)

gthb api users list-blocked-by-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-blocked-by-authenticated-user

gthb api users check-blocked

Check if a user is blocked by the authenticated user — read (GET /user/blocks/{username})

gthb api users check-blocked [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.

Example: gthb personal api users check-blocked --username <value>

gthb api users list-emails-for-authenticated-user

List email addresses for the authenticated user — read (GET /user/emails)

gthb api users list-emails-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-emails-for-authenticated-user

gthb api users list-followers-for-authenticated-user

List followers of the authenticated user — read (GET /user/followers)

gthb api users list-followers-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-followers-for-authenticated-user

gthb api users list-followed-by-authenticated-user

List the people the authenticated user follows — read (GET /user/following)

gthb api users list-followed-by-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-followed-by-authenticated-user

gthb api users check-person-is-followed-by-authenticated

Check if a person is followed by the authenticated user — read (GET /user/following/{username})

gthb api users check-person-is-followed-by-authenticated [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.

Example: gthb personal api users check-person-is-followed-by-authenticated --username <value>

gthb api users list-gpg-keys-for-authenticated-user

List GPG keys for the authenticated user — read (GET /user/gpg_keys)

gthb api users list-gpg-keys-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-gpg-keys-for-authenticated-user

gthb api users get-gpg-key-for-authenticated-user

Get a GPG key for the authenticated user — read (GET /user/gpg_keys/{gpg_key_id})

gthb api users get-gpg-key-for-authenticated-user [options]
OptionWhat it does
--gpg-key-id <value>The unique identifier of the GPG key.

Example: gthb personal api users get-gpg-key-for-authenticated-user --gpg-key-id <value>

gthb api users list-issue-fields-for-authenticated-user

List issue fields — read (GET /user/issue-fields)

gthb api users list-issue-fields-for-authenticated-user

Example: gthb personal api users list-issue-fields-for-authenticated-user

gthb api users list-issue-types-for-authenticated-user

List issue types — read (GET /user/issue-types)

gthb api users list-issue-types-for-authenticated-user

Example: gthb personal api users list-issue-types-for-authenticated-user

gthb api users list-public-ssh-keys-for-authenticated-user

List public SSH keys for the authenticated user — read (GET /user/keys)

gthb api users list-public-ssh-keys-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-public-ssh-keys-for-authenticated-user

gthb api users get-public-ssh-key-for-authenticated-user

Get a public SSH key for the authenticated user — read (GET /user/keys/{key_id})

gthb api users get-public-ssh-key-for-authenticated-user [options]
OptionWhat it does
--key-id <value>The unique identifier of the key.

Example: gthb personal api users get-public-ssh-key-for-authenticated-user --key-id <value>

gthb api users list-public-emails-for-authenticated-user

List public email addresses for the authenticated user — read (GET /user/public_emails)

gthb api users list-public-emails-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-public-emails-for-authenticated-user

gthb api users list-social-accounts-for-authenticated-user

List social accounts for the authenticated user — read (GET /user/social_accounts)

gthb api users list-social-accounts-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-social-accounts-for-authenticated-user

gthb api users list-ssh-signing-keys-for-authenticated-user

List SSH signing keys for the authenticated user — read (GET /user/ssh_signing_keys)

gthb api users list-ssh-signing-keys-for-authenticated-user [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-ssh-signing-keys-for-authenticated-user

gthb api users get-ssh-signing-key-for-authenticated-user

Get an SSH signing key for the authenticated user — read (GET /user/ssh_signing_keys/{ssh_signing_key_id})

gthb api users get-ssh-signing-key-for-authenticated-user [options]
OptionWhat it does
--ssh-signing-key-id <value>The unique identifier of the SSH signing key.

Example: gthb personal api users get-ssh-signing-key-for-authenticated-user --ssh-signing-key-id <value>

gthb api users get-by-id

Get a user using their ID — read (GET /user/{account_id})

gthb api users get-by-id [options]
OptionWhat it does
--account-id <value>account_id parameter.

Example: gthb personal api users get-by-id --account-id <value>

gthb api users list

List users — read (GET /users)

gthb api users list [options]
OptionWhat it does
--since <value>A user ID. Only return users with an ID greater than this ID.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list

gthb api users get-by-username

Get a user — read (GET /users/{username})

gthb api users get-by-username [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.

Example: gthb personal api users get-by-username --username <value>

gthb api users list-attestations

List attestations — read (GET /users/{username}/attestations/{subject_digest})

gthb api users list-attestations [options]
OptionWhat it does
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--before <value>A cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API.".
--after <value>A cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API.".
--username <value>The handle for the GitHub user account.
--subject-digest <value>Subject Digest.
--predicate-type <value>Optional filter for fetching attestations with a given predicate type.

Example: gthb personal api users list-attestations --username <value> --subject-digest <value>

gthb api users list-followers-for-user

List followers of a user — read (GET /users/{username}/followers)

gthb api users list-followers-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-followers-for-user --username <value>

gthb api users list-following-for-user

List the people a user follows — read (GET /users/{username}/following)

gthb api users list-following-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-following-for-user --username <value>

gthb api users check-following-for-user

Check if a user follows another user — read (GET /users/{username}/following/{target_user})

gthb api users check-following-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--target-user <value>target_user.

Example: gthb personal api users check-following-for-user --username <value> --target-user <value>

gthb api users list-gpg-keys-for-user

List GPG keys for a user — read (GET /users/{username}/gpg_keys)

gthb api users list-gpg-keys-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-gpg-keys-for-user --username <value>

gthb api users get-context-for-user

Get contextual information for a user — read (GET /users/{username}/hovercard)

gthb api users get-context-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--subject-type <value>Identifies which additional information you'd like to receive about the person's hovercard. Can be organization, repository, issue, pull_request. Required when using subject_id.
--subject-id <value>Uses the ID for the subject_type you specified. Required when using subject_type.

Example: gthb personal api users get-context-for-user --username <value>

gthb api users list-public-keys-for-user

List public keys for a user — read (GET /users/{username}/keys)

gthb api users list-public-keys-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-public-keys-for-user --username <value>

gthb api users list-social-accounts-for-user

List social accounts for a user — read (GET /users/{username}/social_accounts)

gthb api users list-social-accounts-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-social-accounts-for-user --username <value>

gthb api users list-ssh-signing-keys-for-user

List SSH signing keys for a user — read (GET /users/{username}/ssh_signing_keys)

gthb api users list-ssh-signing-keys-for-user [options]
OptionWhat it does
--username <value>The handle for the GitHub user account.
--per-page <value>The number of results per page (max 100). For more information, see "Using pagination in the REST API.".
--page <value>The page number of the results to fetch. For more information, see "Using pagination in the REST API.".

Example: gthb personal api users list-ssh-signing-keys-for-user --username <value>

gthb repos

the GitHub repositories this profile copies

gthb repos add

choose a repository for sync to copy; one profile reads one owner's repositories

Changes something on this computer only.

gthb repos add <repo>
ArgumentObligatoriedadWhat it is
reporequiredthe repository as owner/name, such as octo-org/app.

Returns: github repo — id, name, owner, added, removed; every field: gthb commands info repos add

Example: gthb work repos add octo-org/app, gthb work repos add octo-org/app --json

gthb repos list

list the repositories sync copies

gthb repos list

Returns: github repo — id, name, owner, added, removed; every field: gthb commands info repos list

Example: gthb work repos list, gthb work repos list --json

gthb repos show

a chosen repository as the last sync saw it, with its topics and README

gthb repos show <repo>
ArgumentObligatoriedadWhat it is
reporequiredthe repository as repos list names it, or its id.

Returns: github repo detail — id, name, owner, readme, missing, untrusted, description, topics, and 10 more; every field: gthb commands info repos show

Example: gthb work repos show octo-org/app, gthb work repos show octo-org/app --json

gthb repos remove

stop copying a repository; its issues leave lists and search until added again

Changes something on this computer only.

gthb repos remove <repo>
ArgumentObligatoriedadWhat it is
reporequiredthe repository as repos list names it.

Returns: github repo — id, name, owner, added, removed; every field: gthb commands info repos remove

Example: gthb work repos remove octo-org/app

gthb folders

the repositories whose README sync copies; repos add and repos remove choose them

gthb folders list

list the folder ids sync imports

gthb folders list [query]
ArgumentObligatoriedadWhat it is
queryoptionalfield:value terms that narrow the list — the fields are below.

Returns: selected folder — id, name, path; every field: gthb commands info folders list

Example: gthb personal folders list

gthb status

show the last sync, imported documents and pending work

gthb status

Example: gthb personal status

gthb documents

read the READMEs synced to this computer

gthb documents list

list the synced READMEs with their repositories

gthb documents list [query] [options]
ArgumentObligatoriedadWhat it is
queryoptionalfield:value terms that narrow the list — the fields are below.
OptionWhat it does
--limit <n>how many documents to return. Default: 50.
--page <n>which page to return. Default: 1.

Next usually: gthb documents show <document>, gthb documents history <document>, gthb documents context <document>

Example: gthb personal documents list, gthb personal documents list tag:budget, gthb personal documents list person:PERSON_UID --limit 10

gthb documents show

show an imported document's text, tabs and metadata

gthb documents show <document>
ArgumentObligatoriedadWhat it is
documentrequireda README's id (readme-) or a search hit's document: ref.

Example: gthb personal documents show DOC_ID, gthb personal documents show document:42 --offline

gthb documents export

write an imported document to a new Markdown file

Changes something on this computer only.

gthb documents export <document> [options]
ArgumentObligatoriedadWhat it is
documentrequireda README's id (readme-) or a search hit's document: ref.
OptionWhat it does
--output <file>path of the Markdown file to write; an existing file is refused.

Example: gthb personal documents export DOC_ID --output notes.md

gthb documents history

list the versions of a document kept in the local copy, or show one with --revision

gthb documents history <document> [options]
ArgumentObligatoriedadWhat it is
documentrequireda README's id (readme-) or a search hit's document: ref.
OptionWhat it does
--revision <n>show the text of this version.

Example: gthb personal documents history DOC_ID, gthb personal documents history DOC_ID --revision 3

gthb documents context

show a document with its tags, relationships, notes, memories and editors

gthb documents context <document>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.

Example: gthb personal documents context DOC_ID

gthb changes

list the documents the sync added, changed, removed or brought back, newest first

gthb changes [options]
OptionWhat it does
--since <time>from this time: an ISO 8601 time, today, yesterday, or 30m, 2h, 1d ago. Default: 1d.
--until <time>up to this time, in the same forms.
--event <events>only these, comma separated: added, changed, restored, deleted, unavailable, unsynced.
--limit <n>how many changes to return. Default: 50.
--page <n>which page to return. Default: 1.

Example: gthb personal changes, gthb personal changes --since 7d --event deleted,unavailable

search imported documents by words, and by meaning when indexed

gthb search <query> [options]
ArgumentObligatoriedadWhat it is
queryrequiredwords to look for, and fields such as tag: and date: that every hit must match.
OptionWhat it does
--limit <n>how many results to return. Default: 20.
--page <n>which page to return. Default: 1.
--exactmatch the words exactly: no word forms, no meaning.

Example: gthb personal search budget, gthb personal search "quarterly plan" --exact --limit 5

gthb catalog

browse stored GitHub files and folders offline

gthb catalog import

put cached file and folder metadata into the shared database

Changes something on this computer only.

gthb catalog import

Example: gthb personal catalog import --offline

gthb catalog show

show stored metadata and the stable file or folder reference

gthb catalog show <file>
ArgumentObligatoriedadWhat it is
filerequiredGitHub file or folder id, or its URL.

Next usually: gthb documents show <document>, gthb documents history <document>, gthb documents context <document>

Example: gthb personal catalog show FILE_ID --offline

gthb catalog list

list cached files and folders using metadata queries

gthb catalog list [query] [options]
ArgumentObligatoriedadWhat it is
queryoptionalmetadata query: kind, mime, name, parent, person, tag; AND, OR, NOT.
OptionWhat it does
--limit <n>how many entries to return (at most 1000). Default: 50.
--page <n>which page to return. Default: 1.

Next usually: gthb documents show <document>, gthb documents history <document>, gthb documents context <document>

Example: gthb personal catalog list "parent:FOLDER_ID AND kind:file" --offline

search cached names, descriptions, types and observed people

gthb catalog search <query> [options]
ArgumentObligatoriedadWhat it is
queryrequiredmetadata query: kind, mime, name, parent, person, tag; AND, OR, NOT.
OptionWhat it does
--limit <n>how many entries to return (at most 1000). Default: 50.
--page <n>which page to return. Default: 1.

Next usually: gthb documents show <document>, gthb documents history <document>, gthb documents context <document>

Example: gthb personal catalog search "budget AND person:Rin*" --offline

gthb catalog tree

show the cached hierarchy below a folder or all selected roots

gthb catalog tree [folder] [options]
ArgumentObligatoriedadWhat it is
folderoptionalGitHub folder id or URL; defaults to the explicitly selected profile's roots.
OptionWhat it does
--depth <n>maximum descendant depth, from 0 to 50. Default: 5.

Example: gthb personal catalog tree --offline, gthb personal catalog tree FOLDER_ID --depth 3 --offline

gthb catalog tags

add owner tags to cached files or folders

gthb catalog tags list

list local tags on a cached file or folder

gthb catalog tags list <file> [query]
ArgumentObligatoriedadWhat it is
filerequiredGitHub file or folder id, or its URL.
queryoptionalfield:value terms that narrow the list — the fields are below.

Returns: document tag — tag; every field: gthb commands info catalog tags list

Example: gthb personal catalog tags list FOLDER_ID --offline

gthb catalog tags add

add local tags on a cached file or folder

Changes something on this computer only.

gthb catalog tags add <file> <tags>
ArgumentObligatoriedadWhat it is
filerequiredGitHub file or folder id, or its URL.
tagsrequiredlocal tag names.

Example: gthb personal catalog tags add FOLDER_ID project --offline

gthb catalog tags remove

remove local tags on a cached file or folder

Changes something on this computer only.

gthb catalog tags remove <file> <tags>
ArgumentObligatoriedadWhat it is
filerequiredGitHub file or folder id, or its URL.
tagsrequiredlocal tag names.

Example: gthb personal catalog tags remove FOLDER_ID project --offline

gthb tags

label imported documents; labels survive a sync

gthb tags list

list a document's tags

gthb tags list <document> [query]
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
queryoptionalfield:value terms that narrow the list — the fields are below.

Returns: document tag — tag; every field: gthb commands info tags list

Example: gthb personal tags list DOC_ID

gthb tags add

tag a document

Changes something on this computer only.

gthb tags add <document> <tags>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
tagsrequiredone or more tags.

Example: gthb personal tags add DOC_ID budget q3

gthb tags remove

untag a document

Changes something on this computer only.

gthb tags remove <document> <tags>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
tagsrequiredone or more tags.

Example: gthb personal tags remove DOC_ID budget q3

gthb relationships

connect a document to people, projects, notes and other references

gthb relationships list

list a document's relationships

gthb relationships list <document> [query]
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
queryoptionalfield:value terms that narrow the list — the fields are below.

Returns: document relationship — id, from, to, kind, role, confirmed, origin; every field: gthb commands info relationships list

Example: gthb personal relationships list DOC_ID

gthb relationships add

connect a document to another reference

Changes something on this computer only.

gthb relationships add <document> <reference> [options]
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
referencerequiredwhat it connects to, such as person:, project: or note:.
OptionWhat it does
--kind <kind>how the two relate. One of: links-to, about, evidence, created-from, related-to, assigned-to. Default: related-to.
--role <role>the part the reference plays, in a word or two.
--reason <text>why the two are connected.

Example: gthb personal relationships add DOC_ID project:PROJECT_ID --kind about, gthb personal relationships add DOC_ID person:PERSON_UID --kind assigned-to --role reviewer

gthb relationships remove

remove one of a document's relationships

Changes something on this computer only.

gthb relationships remove <document> <relationship-id>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
relationship-idrequiredid, as relationships list prints it.

Example: gthb personal relationships remove DOC_ID LINK_ID

gthb notes

write notes about an imported document

gthb notes add

write a note about a document

Changes something on this computer only.

gthb notes add <document> <text> [options]
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
textrequiredthe note's text.
OptionWhat it does
--title <title>a title for the note.

Returns: note — ref, id, source, folder_id, path, title, text, revision, and 19 more; every field: gthb commands info notes add

Next usually: gthb notes show <document> <note>, gthb notes edit <document> <note> <text>, gthb notes remove <document> <note>

Example: gthb personal notes add DOC_ID "Check the numbers" --title Review

gthb notes list

list a document's notes

gthb notes list <document> [query] [options]
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
queryoptionalfield:value terms that narrow the list — the fields are below.
OptionWhat it does
--limit <n>how many notes to return. Default: 50.
--page <n>which page to return. Default: 1.

Returns: note — ref, id, source, folder_id, path, title, text, revision, and 19 more; every field: gthb commands info notes list

Next usually: gthb notes show <document> <note>, gthb notes edit <document> <note> <text>, gthb notes remove <document> <note>

Example: gthb personal notes list DOC_ID, gthb personal notes list DOC_ID text:review --limit 10

gthb notes show

show one note

gthb notes show <document> <note>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
noterequirednote: reference, as notes list prints it.

Returns: note — ref, id, source, folder_id, path, title, text, revision, and 19 more; every field: gthb commands info notes show

Next usually: gthb notes edit <document> <note> <text>, gthb notes remove <document> <note>

Example: gthb personal notes show DOC_ID note:NOTE_ID

gthb notes edit

replace a note's text

Changes something on this computer only.

gthb notes edit <document> <note> <text> [options]
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
noterequirednote: reference, as notes list prints it.
textrequiredthe note's new text.
OptionWhat it does
--revision <n>revision from notes show; a newer note is not overwritten.

Returns: note — ref, id, source, folder_id, path, title, text, revision, and 19 more; every field: gthb commands info notes edit

Next usually: gthb notes show <document> <note>, gthb notes remove <document> <note>

Example: gthb personal notes edit DOC_ID note:NOTE_ID "Numbers checked" --revision 2

gthb notes remove

delete one note

Changes something on this computer only.

gthb notes remove <document> <note>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
noterequirednote: reference, as notes list prints it.

Example: gthb personal notes remove DOC_ID note:NOTE_ID

gthb memories

keep what was learned from a document, with evidence; an agent's stay proposed

gthb memories add

record a memory about a document

Changes something on this computer only.

gthb memories add <document> <text> [options]
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
textrequiredwhat to remember.
OptionWhat it does
--scope <scope>whose memory it is: personal or work. One of: personal, work.
--kind <kind>what kind of memory it is. One of: summary, digest, preference. Default: summary.
--supersedes <ref>a memory: about the same document that this one replaces.

Example: gthb personal memories add DOC_ID "The team prefers async reviews" --scope work --kind preference

gthb memories list

list a document's memories

gthb memories list <document> [query] [options]
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
queryoptionalfield:value terms that narrow the list — the fields are below.
OptionWhat it does
--limit <n>how many memories to return. Default: 50.

Returns: memory — ref, id, kind, text, subject, author, model, confidence, and 16 more; every field: gthb commands info memories list

Example: gthb personal memories list DOC_ID scope:work, gthb personal memories list DOC_ID kind:preference status:confirmed

gthb memories show

show one memory

gthb memories show <document> <memory>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
memoryrequiredmemory: reference, as memories list prints it.

Example: gthb personal memories show DOC_ID memory:MEMORY_ID

gthb memories confirm

confirm a proposed memory as true

Changes something on this computer only.

gthb memories confirm <document> <memory>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
memoryrequiredmemory: reference, as memories list prints it.

Example: gthb personal memories confirm DOC_ID memory:MEMORY_ID

gthb memories stale

mark a memory as out of date

Changes something on this computer only.

gthb memories stale <document> <memory>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
memoryrequiredmemory: reference, as memories list prints it.

Example: gthb personal memories stale DOC_ID memory:MEMORY_ID

search a document's memories by words

gthb memories search <document> <query>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
queryrequiredwords to look for, and scope:personal or scope:work — the fields are below.

Returns: memory — ref, id, kind, text, subject, author, model, confidence, and 16 more; every field: gthb commands info memories search

Example: gthb personal memories search DOC_ID reviews scope:work, gthb personal memories search DOC_ID 'reviews OR retros -weekly'

gthb memories extract

send a document's text to the model and show the memories it proposes

Changes something in the service.

gthb memories extract <document> [options]
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
OptionWhat it does
--scope <scope>whose memories they become: personal or work. One of: personal, work.
--tab <id>send only this tab of the document.
--yessave the proposals, each with its quote and the document's version.

Example: gthb personal memories extract DOC_ID --scope work, gthb personal memories extract DOC_ID --scope work --yes

gthb facts

what happened, as a document shows it; an agent's stay proposed until confirmed

gthb facts add

record a fact a document shows

Changes something on this computer only.

gthb facts add <document> <statement> [options]
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
statementrequiredthe fact, in one sentence.
OptionWhat it does
--type <type>what kind of fact it is. One of: fact, statement, question, decision, promise. Default: fact.
--scope <scope>whose fact it is: personal or work. One of: personal, work.
--supersedes <ref>a decision only: the decision this one replaces.
--occurred-time <time>when it happened, as the evidence shows, ISO 8601; a time without a zone is read in this computer's zone, a date alone as its midnight.

Example: gthb personal facts add DOC_ID "Budget approved" --type decision --scope work

gthb facts list

list a document's facts

gthb facts list <document> [query] [options]
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
queryoptionalfield:value terms that narrow the list — the fields are below.
OptionWhat it does
--limit <n>how many facts to return. Default: 50.

Returns: fact — ref, id, kind, text, status, project, subject, occurred_at, and 17 more; every field: gthb commands info facts list

Example: gthb personal facts list DOC_ID status:proposed, gthb personal facts list DOC_ID kind:decision

gthb facts show

show one fact

gthb facts show <document> <fact>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
factrequiredfact: reference, as facts list prints it.

Example: gthb personal facts show DOC_ID fact:FACT_ID

gthb facts confirm

confirm a proposed fact; a decision it supersedes stops holding

Changes something on this computer only.

gthb facts confirm <document> <fact>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
factrequiredfact: reference, as facts list prints it.

Example: gthb personal facts confirm DOC_ID fact:FACT_ID

gthb facts reverse

an accepted decision no longer holds, and nothing replaced it

Changes something on this computer only.

gthb facts reverse <document> <fact>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
factrequiredfact: reference, as facts list prints it.

Example: gthb personal facts reverse DOC_ID fact:FACT_ID

gthb identities

the GitHub accounts seen on a document, and the people they belong to

gthb identities list

list the people GitHub shows for a document

gthb identities list <document> [query]
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
queryoptionalfield:value terms that narrow the list — the fields are below.

Returns: document identity — remote_id, provider, role, person; every field: gthb commands info identities list

Example: gthb personal identities list DOC_ID

record that a GitHub account belongs to a known person

Changes something on this computer only.

gthb identities link <document> <github-id> <person>
ArgumentObligatoriedadWhat it is
documentrequiredGitHub file or folder id or URL in the local catalog, or a document: ref.
github-idrequiredGitHub account id, as identities list prints it.
personrequiredperson: reference of someone already known.

Example: gthb personal identities link DOC_ID GITHUB_ID person:PERSON_UID

gthb sync

bring the tracker's copy in the local store up to date: repos, users, states, labels, projects, milestones, issues and comments that changed since the last sync, or everything with --rescan; once a day it also finds what the tracker deleted, and says when it next will. Open issues assigned to you become your tasks, and close when the issue is done, canceled, a duplicate, deleted or goes to someone else. It also imports what changed in the chosen document folders, answered under documents; a part that fails leaves the other's answer. A run stops before its deadline or --max-pages and the next one goes on from there

Changes something on this computer only.

gthb sync [options]
OptionWhat it does
--rescanlist everything again, issues and documents, dropping a round in progress; a rescan of the documents starts their walk over each time, so run it once and continue with a plain sync.
--allow-deletions <count>let this run mark deleted up to this many of what its full list no longer has, when the guard holds it.
--max-pages <pages>at most this many requests for the issues in this run, and as many for the documents.
--embedalso index new issues, projects and comments and the documents' pending text for meaning search, with a model already downloaded.

Returns: tracker documents sync — provider, account, state, complete, synced, gaps, progress, deletions, and 6 more; every field: gthb commands info sync

Example: gthb work sync, gthb work sync --rescan

gthb issues

the tracker's issues as last synced: state, team, project, assignee and labels

gthb issues list

issues copied from the tracker, newest change first; run sync to bring them up to date

gthb issues list [query] [options]
ArgumentObligatoriedadWhat it is
queryoptionalfield:value terms that narrow the list — the fields are below.
OptionWhat it does
--limit <n>rows per page, 1–500. Default: 50.
--page <n>which page, starting at 1. Default: 1.

Returns: tracker issue — kind, external_id, deleted, key, identifier, title, description, url, and 23 more; every field: gthb commands info issues list

Example: gthb work issues list type:started, gthb work issues list label:Bug assignee:none --json

gthb issues show

one issue with its state, assignee and comments

gthb issues show <issue>
ArgumentObligatoriedadWhat it is
issuerequiredthe issue's key (ENG-12), id or tracker: ref.

Returns: tracker issue detail — kind, external_id, deleted; every field: gthb commands info issues show

Example: gthb work issues show ENG-12

find issues, projects and comments in the copy by their words, and by meaning once sync --embed built their vectors

gthb issues search <words> [options]
ArgumentObligatoriedadWhat it is
wordsrequiredevery word must match, in any form and any order; a word of four letters or more finds the words it begins; "a phrase" in quote marks inside the query keeps its words together; a question finds what holds some of its words.
OptionWhat it does
--limit <n>rows per page, 1–500. Default: 50.
--page <n>which page, starting at 1. Default: 1.

Returns: tracker hit — kind, external_id, deleted; every field: gthb commands info issues search

Example: gthb work issues search invoice currency, gthb work issues search "why do refunds round wrong?"

gthb issues assign

make an issue the owner's task, whoever it is assigned to: the task points at the issue and shows its key and title, which each sync keeps current; the same issue again answers its existing task

Changes something on this computer only.

gthb issues assign <issue> [options]
ArgumentObligatoriedadWhat it is
issuerequiredthe issue's key (ENG-12), id or tracker: ref.
OptionWhat it does
--due <time>when it is due: an ISO 8601 time, a day, today, or 3d from now.

Returns: tracker issue task — task_id, issue, created, key; every field: gthb commands info issues assign

Example: gthb work issues assign ENG-12 --due 2026-12-01

gthb issues comments

comments on the tracker's issues

gthb issues comments list

an issue's comments, newest change first; an empty list means it has none in the copy

gthb issues comments list <issue> [query] [options]
ArgumentObligatoriedadWhat it is
issuerequiredthe issue's key (ENG-12), id or tracker: ref.
queryoptionalfield:value terms that narrow the list — the fields are below.
OptionWhat it does
--limit <n>rows per page, 1–500. Default: 50.
--page <n>which page, starting at 1. Default: 1.

Returns: tracker comment — kind, external_id, deleted; every field: gthb commands info issues comments list

Example: gthb work issues comments list ENG-12

gthb issues context

one issue with its newest comments, relations and what the copy lacks

gthb issues context <issue>
ArgumentObligatoriedadWhat it is
issuerequiredthe issue's key (octo-org/app#12), id or tracker: ref.

Returns: github issue context — card, comments, relations, missing, truncated; every field: gthb commands info issues context

Example: gthb work issues context octo-org/app#12, gthb work issues context octo-org/app#12 --json

gthb projects

the tracker's projects: status, lead, teams and target date

gthb projects list

projects copied from the tracker, newest change first

gthb projects list [query] [options]
ArgumentObligatoriedadWhat it is
queryoptionalfield:value terms that narrow the list — the fields are below.
OptionWhat it does
--limit <n>rows per page, 1–500. Default: 50.
--page <n>which page, starting at 1. Default: 1.

Returns: tracker project — kind, external_id, deleted; every field: gthb commands info projects list

Example: gthb work projects list, gthb work projects list archived:include

gthb milestones

each repository's milestones: number, start, end and when completed

gthb milestones list

milestones copied from the tracker, newest change first

gthb milestones list [query] [options]
ArgumentObligatoriedadWhat it is
queryoptionalfield:value terms that narrow the list — the fields are below.
OptionWhat it does
--limit <n>rows per page, 1–500. Default: 50.
--page <n>which page, starting at 1. Default: 1.

Returns: tracker sprint — kind, external_id, deleted; every field: gthb commands info milestones list

Example: gthb work milestones list, gthb work milestones list archived:include

gthb users

the tracker's users, each with the person the store knows by the same e-mail

gthb users list

users copied from the tracker, newest change first

gthb users list [query] [options]
ArgumentObligatoriedadWhat it is
queryoptionalfield:value terms that narrow the list — the fields are below.
OptionWhat it does
--limit <n>rows per page, 1–500. Default: 500.
--page <n>which page, starting at 1. Default: 1.

Returns: tracker user — kind, external_id, deleted; every field: gthb commands info users list

Example: gthb work users list, gthb work users list archived:include

gthb states

each team's workflow states and their type

gthb states list

states copied from the tracker, newest change first

gthb states list [query] [options]
ArgumentObligatoriedadWhat it is
queryoptionalfield:value terms that narrow the list — the fields are below.
OptionWhat it does
--limit <n>rows per page, 1–500. Default: 500.
--page <n>which page, starting at 1. Default: 1.

Returns: tracker state — kind, external_id, deleted; every field: gthb commands info states list

Example: gthb work states list, gthb work states list archived:include

gthb labels

the tracker's labels

gthb labels list

labels copied from the tracker, newest change first

gthb labels list [query] [options]
ArgumentObligatoriedadWhat it is
queryoptionalfield:value terms that narrow the list — the fields are below.
OptionWhat it does
--limit <n>rows per page, 1–500. Default: 500.
--page <n>which page, starting at 1. Default: 1.

Returns: tracker label — kind, external_id, deleted; every field: gthb commands info labels list

Example: gthb work labels list, gthb work labels list archived:include

gthb doctor

the state this installation is in, without connecting unless --online

gthb doctor [options]
OptionWhat it does
--onlinealso connect once and read the account; sends nothing.

Example: gthb doctor, gthb doctor --json

gthb doctor reports

problem reports

gthb doctor reports show

what a problem report holds; writes nothing

gthb doctor reports show

Example: gthb doctor reports show

gthb doctor reports create

write a problem report to a file, and say where to send it

Changes something on this computer only.

gthb doctor reports create [options]
OptionWhat it does
--run <id>the run the report is about; the newest failed one if not given.
--output <file>where to write it; a new file in this directory if not given.

Example: gthb doctor reports create --output ./problem-report.json

gthb skill

the instructions an agent is given for this tool

gthb skill show

print SKILL.md — gthb skill install puts it where Claude Code, Codex, Gemini CLI and OpenClaw look for it, and where Hermes does on request; --for prints the copy already there

gthb skill show [name] [options]
ArgumentObligatoriedadWhat it is
nameoptionala part of this skill, or a skill shipped for a task: api-users-2, api-users-1, api-teams, api-security-advisories, api-secret-scanning-2, api-secret-scanning-1, api-search, api-repos-7, api-repos-6, api-repos-5, api-repos-4, api-repos-3, api-repos-2, api-repos-1, api-reactions, api-rate-limit, api-pulls-2, api-pulls-1, api-projects-2, api-projects-1, api-packages-2, api-packages-1, api-orgs-4, api-orgs-3, api-orgs-2, api-orgs-1, api-oidc, api-migrations, api-meta, api-licenses, api-issues-3, api-issues-2, api-issues-1, api-interactions, api-hosted-compute, api-gitignore, api-emojis, api-dependency-graph, api-dependabot-2, api-dependabot-1, api-copilot, api-copilot-spaces, api-codespaces-2, api-codespaces-1, api-codes-of-conduct, api-code-security, api-code-scanning-2, api-code-scanning-1, api-code-quality, api-classroom, api-checks, api-campaigns, api-billing, api-apps, api-agents, api-agent-tasks, api-agent-merge, api-agent-automations, api-activity-2, api-activity-1, api-actions-6, api-actions-5, api-actions-4, api-actions-3, api-actions-2, api-actions-1, api.
OptionWhat it does
--for <agents>print the copy installed for these agents instead of this version's. One of: claude, agents.

Example: gthb skill show

gthb skill install

write SKILL.md to ~/.claude/skills/github-cli/ (Claude Code) and ~/.agents/skills/github-cli/ (Codex, Gemini CLI, OpenClaw); --for hermes also has Hermes read ~/.agents/skills, which changes Hermes's own settings, so all leaves it out

Changes something on this computer only.

gthb skill install [options]
OptionWhat it does
--for <agents>which agents to install for. One of: claude, agents, hermes, all. Default: all.

Example: gthb skill install --for agents

gthb skill status

for each place gthb skill install writes to, and for the copy Hermes reads: the path, the version installed there, and whether it is current, stale, missing or unversioned

gthb skill status

Example: gthb skill status, gthb skill status --json

gthb mcp

serve this profile to an agent over MCP and set it up — claude mcp add gthb -- gthb <profile> mcp serve

gthb mcp serve

serve this profile to an agent over MCP, on stdin and stdout — claude mcp add gthb -- gthb <profile> mcp serve; gthb mcp serve --profiles a,b or --profiles all serves those profiles from one server and each tool asks which

Changes something in the service.

gthb mcp serve [options]
OptionWhat it does
--permission <key=level>make a permission stricter for this server only, like api.list=deny; it never loosens the profile; repeat for more keys.
--profiles <names|all>serve several profiles from one server instead of one: names, comma-separated, or all for every profile.
--httpserve over HTTP on 127.0.0.1 for ChatGPT and Claude in the browser, behind your tunnel; the profile's permissions decide.
--port <port>the local port for --http (default 8765).
--public-url <url>the tunnel's https address the browser apps use, e.g. https://.ts.net or https://.ts.net/tg.

Example: gthb personal mcp serve, gthb mcp serve --profiles work,personal, gthb personal mcp serve --http --public-url https://laptop.example.ts.net

gthb mcp revoke

forget every login mcp serve --http gave a browser app, of this profile or of the server --profiles names; each app must log in again

Changes something on this computer only.

gthb mcp revoke [options]
OptionWhat it does
--profiles <names|all>serve several profiles from one server instead of one: names, comma-separated, or all for every profile.

Example: gthb personal mcp revoke, gthb mcp revoke --profiles all

gthb mcp server

start, stop and check mcp serve --http in the background; status shows the login code for a browser app

gthb mcp server start

start mcp serve --http apart from this shell and answer once it listens, with its login code

Changes something on this computer only.

gthb mcp server start [options]
OptionWhat it does
--port <port>the local port (default 8765).
--public-url <url>the tunnel's https address the browser apps use, e.g. https://.ts.net or https://.ts.net/tg.
--permission <key=level>make a permission stricter for this server only; repeat for more keys.
--profiles <names|all>the server of several profiles that mcp serve --profiles serves: names, comma-separated, or all.

Example: gthb personal mcp server start --public-url https://laptop.example.ts.net

gthb mcp server stop

stop mcp serve --http — only one that mcp server start started

Changes something on this computer only.

gthb mcp server stop [options]
OptionWhat it does
--profiles <names|all>the server of several profiles that mcp serve --profiles serves: names, comma-separated, or all.

Example: gthb personal mcp server stop

gthb mcp server status

whether mcp serve --http runs, on which port and address, the login code for a new browser app, and the apps logged in

gthb mcp server status [options]
OptionWhat it does
--profiles <names|all>the server of several profiles that mcp serve --profiles serves: names, comma-separated, or all.

Example: gthb personal mcp server status --json

gthb mcp config

print the mcpServers entry for Claude Desktop, Cursor and others, with full paths; writes nothing

gthb mcp config [options]
OptionWhat it does
--permission <key=level>make a permission stricter for this server only, like api.list=deny; it never loosens the profile; repeat for more keys.
--profiles <names|all>serve several profiles from one server instead of one: names, comma-separated, or all for every profile.

Example: gthb personal mcp config, gthb mcp config --profiles all

gthb mcp add

add this profile's local MCP server to Codex or Claude Code

Changes something on this computer only.

gthb mcp add <client> [options]
ArgumentObligatoriedadWhat it is
clientrequiredcodex or claude-code.
OptionWhat it does
--allow-writesacknowledge that this profile offers writing tools.
--permission <key=level>make a permission stricter for this server only, like api.list=deny; it never loosens the profile; repeat for more keys.

Example: gthb personal mcp add codex --allow-writes

gthb mcp check

check this profile's local MCP handshake and tool list

gthb mcp check [options]
OptionWhat it does
--permission <key=level>make a permission stricter for this server only, like api.list=deny; it never loosens the profile; repeat for more keys.

Example: gthb personal mcp check

gthb upgrade

upgrade gthb with the package manager that installed it; --check only looks

Changes something on this computer only.

gthb upgrade [options]
OptionWhat it does
--checksay whether a newer version exists, and install nothing.

Example: gthb upgrade --check

gthb config

the settings in force, and where each one came from

gthb config show

the profile, the profiles that exist, and each setting with where it came from

gthb config show

Example: gthb personal config show

gthb config set

save a setting to the configuration file

Changes something on this computer only.

gthb config set <setting> <value> [options]
ArgumentObligatoriedadWhat it is
settingrequiredone of: limit, timeout_ms, color, record, record_input, keep_runs_for_days, keep_successful_runs_for_days, keep_store_runs_for_days, runs_size_limit_mb, permissions, requests_per_minute, search_reranker, embedding_provider, embedding_model, embedding_base_url, embedding_dims, models, update_check, skill_hint, search_stemmers.cyrillic, search_stemmers.latin, owner_languages, crm.:.links, crm.:.company-types, crm.:.scope, crm.:.unassigned, crm.:.self, crm.:.stage-tasks, crm.:.activities, crm.:.files.max_files, crm.:.files.max_file_mb, crm.:.files.max_run_mb, crm.:.files.run_minutes, crm.:.files.days, crm.:.files.max_total_mb.
valuerequireda number, true or false; for a group tg:work,max:Alice,email:me@x.
OptionWhat it does
--defaultschange what every profile gets, rather than this profile.

Example: gthb personal config set limit 20

gthb config unset

remove a setting from the configuration file

Changes something on this computer only.

gthb config unset <setting> [options]
ArgumentObligatoriedadWhat it is
settingrequiredone of: limit, timeout_ms, color, record, record_input, keep_runs_for_days, keep_successful_runs_for_days, keep_store_runs_for_days, runs_size_limit_mb, permissions, requests_per_minute, search_reranker, embedding_provider, embedding_model, embedding_base_url, embedding_dims, models, update_check, skill_hint, search_stemmers.cyrillic, search_stemmers.latin, owner_languages, crm.:.links, crm.:.company-types, crm.:.scope, crm.:.unassigned, crm.:.self, crm.:.stage-tasks, crm.:.activities, crm.:.files.max_files, crm.:.files.max_file_mb, crm.:.files.max_run_mb, crm.:.files.run_minutes, crm.:.files.days, crm.:.files.max_total_mb.
OptionWhat it does
--defaultschange what every profile gets, rather than this profile.

Example: gthb personal config unset limit

gthb config migrate

write each setting the file lacks at its default, keeping yours

Changes something on this computer only.

gthb config migrate

Example: gthb config migrate

gthb config repair

fix broken JSON syntax in the settings file — comments, a missing or extra comma, unquoted keys, single quotes, missing closing brackets at the end — keeping every value, with a backup beside it; refuses anything with more than one reading and changes nothing then

Changes something on this computer only.

gthb config repair [options]
OptionWhat it does
--dry-runsay what it would fix, and change nothing.

Example: gthb config repair, gthb config repair --dry-run

gthb runs

recorded runs — what this tool did, and when

gthb runs list

recorded runs, newest first

gthb runs list [query] [options]
ArgumentObligatoriedadWhat it is
queryoptionalfield:value terms that narrow the list — the fields are below.
OptionWhat it does
--limit <n>how many to show.
--page <n>which page, starting at 1.

Returns: run — run_id, command, started_at, status, cli_version, profile, started_at_local, completed_at, and 25 more; every field: gthb commands info runs list

Example: gthb personal runs list --limit 10

gthb runs show

one run: what it was, how it ended, and every event it logged

gthb runs show <run-id> [options]
ArgumentObligatoriedadWhat it is
run-idrequiredan id from gthb runs list.
OptionWhat it does
--problemsonly failed responses, warnings and crashes.

Returns: run details — run_id, command, started_at, status, cli_version, directory, event_count, events, and 24 more; every field: gthb commands info runs show

Example: gthb personal runs show run-101

gthb runs path

the directory holding one run

gthb runs path <run-id>
ArgumentObligatoriedadWhat it is
run-idrequiredan id from gthb runs list.

Returns: run location — path; every field: gthb commands info runs path

Example: gthb personal runs path run-101

gthb store

the shared local store every WireCat tool reads

gthb store info

the store file: where it is, its size, its schema against the one this tool speaks, which tools used it and how many rows it holds, by provider, chat kind, account, year (UTC) and attachment kind, over every account; changes nothing

gthb store info

Returns: store info — path, exists, schema, opens, error, bytes, journal_mode, pages, and 12 more; every field: gthb commands info store info

Example: gthb personal store info

gthb store recover

check every page and search index of the store, say what is damaged, what it means and the commands that recover it; changes nothing

gthb store recover run

copy every readable row into a new file with the sqlite3 program, rebuild the search indexes, mentions and vector index, check it, and put it in place of the store; the damaged file is kept beside it. Refuses while a WireCat timer or process has the store

Changes something on this computer only.

gthb store recover run

Example: gthb personal store recover run

gthb store migrate

bring the store up to this build's schema, then normalize, index and stem the messages and notes stored before it

Changes something on this computer only.

gthb store migrate [options]
OptionWhat it does
--no-backupmigrate even when no rollback copy can be written; older tools then cannot open the store again.

Returns: store migration — path, exists, from, to, normalized, indexed, terms, stemmed, and 2 more; every field: gthb commands info store migrate

Example: gthb personal store migrate

Códigos de salida

Decide según el código, no según el texto: el texto puede cambiar, el código no.

CodeWhen
0it worked
2validation_error
3configuration_error
4authentication_error
5permission_error
6not_found
7confirmation_required
8rate_limited
9timeout
10network_error
11provider_error
12provider_unavailable
13invalid_response
14outcome_unknown
15conflict
130cancelled
1anything else