# Comandos de la CLI de GitHub (/es/docs/gthb/commands)

<!-- Generated from the command tree by pnpm generate. Do not edit. -->

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 [#opciones-para-todos-los-comandos]

| Option | What it does |
|---|---|
| `-V, --version` | output the version number. |
| `-v, --verbose` | more detail in what is shown: -v ids, -vv everything we know. Default: `0`. |
| `--json` | machine-readable output: one JSON value on stdout; --json=id,text keeps only those fields. |
| `--jsonl` | machine-readable output: one JSON object per line, for streaming and jq. |
| `--quiet` | diagnostics off; a failure is still said. |
| `--trace` | the connection's own log lines on stderr — never content. |
| `--debug` | on 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. |
| `--offline` | answer from what was recorded and never connect; fails if nothing was. |
| `--no-input` | never 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). |
| `--brief` | found items as reference, title, time, author and excerpt only. |
| `--full` | found items with their whole text and every provider field. |
| `--compact` | one line per item for an agent: reference first, text last, paging and next steps as # lines. |
| `--dry-run` | preview parsed arguments and permissions before running the action. |
| `--yes` | go ahead without the question an ask level puts before a write. |
| `--record` | keep this run even where the config says record false; record_input false leaves the typed words out. |
| `--no-record` | do not keep this run, even if it fails. |

## `gthb commands` [#gthb-commands]

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

### `gthb commands info` [#gthb-commands-info]

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

```sh
gthb commands info [path]
```

| Argument | | What it is |
|---|---|---|
| `path` | optional | one command path; without one, export schemas, error reasons and explicit overrides. |

**Example:** `gthb commands info commands`

## `gthb session` [#gthb-session]

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

### `gthb session start` [#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.**

```sh
gthb session start [options]
```

| Option | What 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` [#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

```sh
gthb session status [options]
```

| Option | What it does |
|---|---|
| `--check` | ask GitHub whether the token still works, and whose it is. |

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

### `gthb session end` [#gthb-session-end]

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

**Changes something on this computer only.**

```sh
gthb session end
```

**Example:** `gthb personal session end`

### `gthb session list` [#gthb-session-list]

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

```sh
gthb session list
```

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

## `gthb api` [#gthb-api]

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

### `gthb api list` [#gthb-api-list]

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

```sh
gthb api list [query]
```

| Argument | | What it is |
|---|---|---|
| `query` | optional | field: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` [#gthb-api-show]

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

```sh
gthb api show <operation>
```

| Argument | | What it is |
|---|---|---|
| `operation` | required | the 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` [#gthb-api-meta]

the meta operations

#### `gthb api meta root` [#gthb-api-meta-root]

GitHub API Root — read (GET /)

```sh
gthb api meta root
```

**Example:** `gthb personal api meta root`

#### `gthb api meta get` [#gthb-api-meta-get]

Get GitHub meta information — read (GET /meta)

```sh
gthb api meta get
```

**Example:** `gthb personal api meta get`

#### `gthb api meta get-octocat` [#gthb-api-meta-get-octocat]

Get Octocat — read (GET /octocat)

```sh
gthb api meta get-octocat [options]
```

| Option | What 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` [#gthb-api-meta-get-all-versions]

Get all API versions — read (GET /versions)

```sh
gthb api meta get-all-versions
```

**Example:** `gthb personal api meta get-all-versions`

#### `gthb api meta get-zen` [#gthb-api-meta-get-zen]

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

```sh
gthb api meta get-zen
```

**Example:** `gthb personal api meta get-zen`

### `gthb api security-advisories` [#gthb-api-security-advisories]

the security-advisories operations

#### `gthb api security-advisories list-global-advisories` [#gthb-api-security-advisories-list-global-advisories]

List global security advisories — read (GET /advisories)

```sh
gthb api security-advisories list-global-advisories [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-security-advisories-get-global-advisory]

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

```sh
gthb api security-advisories get-global-advisory [options]
```

| Option | What 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` [#gthb-api-security-advisories-list-org-repository-advisories]

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

```sh
gthb api security-advisories list-org-repository-advisories [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-security-advisories-list-repository-advisories]

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

```sh
gthb api security-advisories list-repository-advisories [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-security-advisories-get-repository-advisory]

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

```sh
gthb api security-advisories get-repository-advisory [options]
```

| Option | What 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` [#gthb-api-security-advisories-list-repository-advisory-comments]

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

```sh
gthb api security-advisories list-repository-advisory-comments [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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})

```sh
gthb api security-advisories get-repository-advisory-comment [options]
```

| Option | What 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` [#gthb-api-agent-automations]

the agent-automations operations

#### `gthb api agent-automations list-automations` [#gthb-api-agent-automations-list-automations]

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

```sh
gthb api agent-automations list-automations [options]
```

| Option | What 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` [#gthb-api-agent-automations-list-repo-automations]

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

```sh
gthb api agent-automations list-repo-automations [options]
```

| Option | What 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. |
| `--all` | read 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` [#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)

```sh
gthb api agent-automations list-available-repo-automation-tools [options]
```

| Option | What 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` [#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)

```sh
gthb api agent-automations list-available-repo-automation-triggers [options]
```

| Option | What 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` [#gthb-api-agent-automations-get-repo-automation]

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

```sh
gthb api agent-automations get-repo-automation [options]
```

| Option | What 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` [#gthb-api-agent-automations-list-automation-revisions]

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

```sh
gthb api agent-automations list-automation-revisions [options]
```

| Option | What 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` [#gthb-api-agent-automations-get-automation-revision]

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

```sh
gthb api agent-automations get-automation-revision [options]
```

| Option | What 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` [#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)

```sh
gthb api agent-automations list-repo-automation-tasks [options]
```

| Option | What 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`. |
| `--all` | read 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` [#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)

```sh
gthb api agent-merge-get-agent-merge-enrollment [options]
```

| Option | What 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` [#gthb-api-agent-tasks]

the agent-tasks operations

#### `gthb api agent-tasks list-tasks-for-repo` [#gthb-api-agent-tasks-list-tasks-for-repo]

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

```sh
gthb api agent-tasks list-tasks-for-repo [options]
```

| Option | What 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. |
| `--all` | read 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` [#gthb-api-agent-tasks-get-task-by-repo-and-id]

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

```sh
gthb api agent-tasks get-task-by-repo-and-id [options]
```

| Option | What 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` [#gthb-api-agent-tasks-list-tasks]

List tasks — read (GET /agents/tasks)

```sh
gthb api agent-tasks list-tasks [options]
```

| Option | What 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). |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api agent-tasks list-tasks`

#### `gthb api agent-tasks get-task-by-id` [#gthb-api-agent-tasks-get-task-by-id]

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

```sh
gthb api agent-tasks get-task-by-id [options]
```

| Option | What 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` [#gthb-api-apps]

the apps operations

#### `gthb api apps get-authenticated` [#gthb-api-apps-get-authenticated]

Get the authenticated app — read (GET /app)

```sh
gthb api apps get-authenticated
```

**Example:** `gthb personal api apps get-authenticated`

#### `gthb api apps list-installation-requests-for-authenticated-app` [#gthb-api-apps-list-installation-requests-for-authenticated-app]

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

```sh
gthb api apps list-installation-requests-for-authenticated-app [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

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

#### `gthb api apps list-installations` [#gthb-api-apps-list-installations]

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

```sh
gthb api apps list-installations [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. |
| `--outdated <value>` | outdated. |

**Example:** `gthb personal api apps list-installations`

#### `gthb api apps get-installation` [#gthb-api-apps-get-installation]

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

```sh
gthb api apps get-installation [options]
```

| Option | What 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` [#gthb-api-apps-get-by-slug]

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

```sh
gthb api apps get-by-slug [options]
```

| Option | What 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` [#gthb-api-apps-list-repos-accessible-to-installation]

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

```sh
gthb api apps list-repos-accessible-to-installation [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-apps-get-subscription-plan-for-account]

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

```sh
gthb api apps get-subscription-plan-for-account [options]
```

| Option | What 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` [#gthb-api-apps-list-plans]

List plans — read (GET /marketplace_listing/plans)

```sh
gthb api apps list-plans [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api apps list-plans`

#### `gthb api apps list-accounts-for-plan` [#gthb-api-apps-list-accounts-for-plan]

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

```sh
gthb api apps list-accounts-for-plan [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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})

```sh
gthb api apps get-subscription-plan-for-account-stubbed [options]
```

| Option | What 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` [#gthb-api-apps-list-plans-stubbed]

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

```sh
gthb api apps list-plans-stubbed [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api apps list-plans-stubbed`

#### `gthb api apps list-accounts-for-plan-stubbed` [#gthb-api-apps-list-accounts-for-plan-stubbed]

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

```sh
gthb api apps list-accounts-for-plan-stubbed [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-apps-get-org-installation]

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

```sh
gthb api apps get-org-installation [options]
```

| Option | What 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` [#gthb-api-apps-get-repo-installation]

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

```sh
gthb api apps get-repo-installation [options]
```

| Option | What 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` [#gthb-api-apps-list-installations-for-authenticated-user]

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

```sh
gthb api apps list-installations-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-apps-list-installation-repos-for-authenticated-user]

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

```sh
gthb api apps list-installation-repos-for-authenticated-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-apps-list-subscriptions-for-authenticated-user]

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

```sh
gthb api apps list-subscriptions-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-apps-list-subscriptions-for-authenticated-user-stubbed]

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

```sh
gthb api apps list-subscriptions-for-authenticated-user-stubbed [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

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

#### `gthb api apps get-user-installation` [#gthb-api-apps-get-user-installation]

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

```sh
gthb api apps get-user-installation [options]
```

| Option | What it does |
|---|---|
| `--username <value>` | The handle for the GitHub user account. |

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

### `gthb api classroom` [#gthb-api-classroom]

the classroom operations

#### `gthb api classroom get-an-assignment` [#gthb-api-classroom-get-an-assignment]

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

```sh
gthb api classroom get-an-assignment [options]
```

| Option | What 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` [#gthb-api-classroom-list-accepted-assignments-for-an-assignment]

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

```sh
gthb api classroom list-accepted-assignments-for-an-assignment [options]
```

| Option | What 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` [#gthb-api-classroom-get-assignment-grades]

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

```sh
gthb api classroom get-assignment-grades [options]
```

| Option | What 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` [#gthb-api-classroom-list-classrooms]

Closed - List classrooms — read (GET /classrooms)

```sh
gthb api classroom list-classrooms
```

**Example:** `gthb personal api classroom list-classrooms`

#### `gthb api classroom get-a-classroom` [#gthb-api-classroom-get-a-classroom]

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

```sh
gthb api classroom get-a-classroom [options]
```

| Option | What 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` [#gthb-api-classroom-list-assignments-for-a-classroom]

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

```sh
gthb api classroom list-assignments-for-a-classroom [options]
```

| Option | What 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` [#gthb-api-codes-of-conduct]

the codes-of-conduct operations

#### `gthb api codes-of-conduct get-all-codes-of-conduct` [#gthb-api-codes-of-conduct-get-all-codes-of-conduct]

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

```sh
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` [#gthb-api-codes-of-conduct-get-conduct-code]

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

```sh
gthb api codes-of-conduct get-conduct-code [options]
```

| Option | What it does |
|---|---|
| `--key <value>` | key. |

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

### `gthb api emojis-get` [#gthb-api-emojis-get]

Get emojis — read (GET /emojis)

```sh
gthb api emojis-get
```

**Example:** `gthb personal api emojis-get`

### `gthb api actions` [#gthb-api-actions]

the actions operations

#### `gthb api actions get-actions-cache-retention-limit-for-enterprise` [#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)

```sh
gthb api actions get-actions-cache-retention-limit-for-enterprise [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-actions-cache-storage-limit-for-enterprise [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-actions-cache-retention-limit-for-organization [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-actions-cache-storage-limit-for-organization [options]
```

| Option | What 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` [#gthb-api-actions-get-actions-cache-usage-for-org]

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

```sh
gthb api actions get-actions-cache-usage-for-org [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-actions-cache-usage-by-repo-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-actions-list-hosted-runners-for-org]

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

```sh
gthb api actions list-hosted-runners-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-actions-list-custom-images-for-org]

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

```sh
gthb api actions list-custom-images-for-org [options]
```

| Option | What 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` [#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})

```sh
gthb api actions get-custom-image-for-org [options]
```

| Option | What 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` [#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)

```sh
gthb api actions list-custom-image-versions-for-org [options]
```

| Option | What 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` [#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})

```sh
gthb api actions get-custom-image-version-for-org [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-hosted-runners-github-owned-images-for-org [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-hosted-runners-partner-images-for-org [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-hosted-runners-limits-for-org [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-hosted-runners-machine-specs-for-org [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-hosted-runners-platforms-for-org [options]
```

| Option | What 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` [#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})

```sh
gthb api actions get-hosted-runner-for-org [options]
```

| Option | What 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` [#gthb-api-actions-get-github-actions-permissions-organization]

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

```sh
gthb api actions get-github-actions-permissions-organization [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-artifact-and-log-retention-settings-organization [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-fork-pr-contributor-approval-permissions-organization [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-private-repo-fork-pr-workflows-settings-organization [options]
```

| Option | What 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` [#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)

```sh
gthb api actions list-selected-repositories-enabled-github-actions-organization [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-actions-get-allowed-actions-organization]

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

```sh
gthb api actions get-allowed-actions-organization [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-self-hosted-runners-permissions-organization [options]
```

| Option | What 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` [#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)

```sh
gthb api actions list-selected-repositories-self-hosted-runners-organization [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-actions-get-github-actions-default-workflow-permissions-organization]

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

```sh
gthb api actions get-github-actions-default-workflow-permissions-organization [options]
```

| Option | What 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` [#gthb-api-actions-get-org-actions-policies]

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

```sh
gthb api actions get-org-actions-policies [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--has-parents <value>` | Include policies configured at higher levels that apply to this organization. |
| `--all` | read 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` [#gthb-api-actions-get-org-actions-policy]

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

```sh
gthb api actions get-org-actions-policy [options]
```

| Option | What 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` [#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)

```sh
gthb api actions list-self-hosted-runner-groups-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--visible-to-repository <value>` | Only return runner groups that are allowed to be used by this repository. |
| `--all` | read 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` [#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})

```sh
gthb api actions get-self-hosted-runner-group-for-org [options]
```

| Option | What 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` [#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)

```sh
gthb api actions list-github-hosted-runners-in-group-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#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)

```sh
gthb api actions list-repo-access-to-self-hosted-runner-group-in-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#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)

```sh
gthb api actions list-self-hosted-runners-in-group-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-actions-list-self-hosted-runners-for-org]

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

```sh
gthb api actions list-self-hosted-runners-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#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})

```sh
gthb api actions get-runner-version-deprecation-for-org [options]
```

| Option | What 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` [#gthb-api-actions-list-runner-applications-for-org]

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

```sh
gthb api actions list-runner-applications-for-org [options]
```

| Option | What 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` [#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})

```sh
gthb api actions get-self-hosted-runner-for-org [options]
```

| Option | What 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` [#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)

```sh
gthb api actions list-labels-for-self-hosted-runner-for-org [options]
```

| Option | What 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` [#gthb-api-actions-list-org-secrets]

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

```sh
gthb api actions list-org-secrets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

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

#### `gthb api actions get-org-public-key` [#gthb-api-actions-get-org-public-key]

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

```sh
gthb api actions get-org-public-key [options]
```

| Option | What 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` [#gthb-api-actions-get-org-secret]

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

```sh
gthb api actions get-org-secret [options]
```

| Option | What 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` [#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)

```sh
gthb api actions list-selected-repos-for-org-secret [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-actions-list-artifacts-for-repo]

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

```sh
gthb api actions list-artifacts-for-repo [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--name <value>` | The name field of an artifact. When specified, only artifacts with this name will be returned. |
| `--all` | read 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` [#gthb-api-actions-get-artifact]

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

```sh
gthb api actions get-artifact [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-actions-cache-retention-limit-for-repository [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-actions-cache-storage-limit-for-repository [options]
```

| Option | What 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` [#gthb-api-actions-get-actions-cache-usage]

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

```sh
gthb api actions get-actions-cache-usage [options]
```

| Option | What 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` [#gthb-api-actions-get-actions-cache-list]

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

```sh
gthb api actions get-actions-cache-list [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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. |
| `--all` | read 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` [#gthb-api-actions-list-concurrency-groups-for-repository]

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

```sh
gthb api actions list-concurrency-groups-for-repository [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#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})

```sh
gthb api actions get-concurrency-group-for-repository [options]
```

| Option | What 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` [#gthb-api-actions-get-job-for-workflow-run]

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

```sh
gthb api actions get-job-for-workflow-run [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-custom-oidc-sub-claim-for-repo [options]
```

| Option | What 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` [#gthb-api-actions-list-repo-organization-secrets]

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

```sh
gthb api actions list-repo-organization-secrets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-actions-get-github-actions-permissions-repository]

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

```sh
gthb api actions get-github-actions-permissions-repository [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-workflow-access-to-repository [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-artifact-and-log-retention-settings-repository [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-fork-pr-contributor-approval-permissions-repository [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-private-repo-fork-pr-workflows-settings-repository [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-allowed-actions-repository [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-github-actions-default-workflow-permissions-repository [options]
```

| Option | What 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` [#gthb-api-actions-get-repo-actions-policies]

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

```sh
gthb api actions get-repo-actions-policies [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--has-parents <value>` | Include policies configured at higher levels that apply to this repository. |
| `--all` | read 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` [#gthb-api-actions-get-repo-actions-policy]

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

```sh
gthb api actions get-repo-actions-policy [options]
```

| Option | What 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` [#gthb-api-actions-list-self-hosted-runners-for-repo]

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

```sh
gthb api actions list-self-hosted-runners-for-repo [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#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})

```sh
gthb api actions get-runner-version-deprecation-for-repo [options]
```

| Option | What 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` [#gthb-api-actions-list-runner-applications-for-repo]

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

```sh
gthb api actions list-runner-applications-for-repo [options]
```

| Option | What 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` [#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})

```sh
gthb api actions get-self-hosted-runner-for-repo [options]
```

| Option | What 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` [#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)

```sh
gthb api actions list-labels-for-self-hosted-runner-for-repo [options]
```

| Option | What 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` [#gthb-api-actions-list-workflow-runs-for-repo]

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

```sh
gthb api actions list-workflow-runs-for-repo [options]
```

| Option | What 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](https://docs.github.com/actions/automating-your-workflow-with-github-actions/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates).". |
| `--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`. |
| `--all` | read 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` [#gthb-api-actions-get-workflow-run]

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

```sh
gthb api actions get-workflow-run [options]
```

| Option | What 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` [#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)

```sh
gthb api actions get-reviews-for-run [options]
```

| Option | What 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` [#gthb-api-actions-list-workflow-run-artifacts]

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

```sh
gthb api actions list-workflow-run-artifacts [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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. |
| `--all` | read 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` [#gthb-api-actions-get-workflow-run-attempt]

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

```sh
gthb api actions get-workflow-run-attempt [options]
```

| Option | What 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` [#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)

```sh
gthb api actions list-jobs-for-workflow-run-attempt [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#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)

```sh
gthb api actions list-concurrency-groups-for-workflow-run [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-actions-list-jobs-for-workflow-run]

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

```sh
gthb api actions list-jobs-for-workflow-run [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#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)

```sh
gthb api actions get-pending-deployments-for-run [options]
```

| Option | What 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` [#gthb-api-actions-get-workflow-run-usage]

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

```sh
gthb api actions get-workflow-run-usage [options]
```

| Option | What 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` [#gthb-api-actions-list-repo-secrets]

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

```sh
gthb api actions list-repo-secrets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-actions-get-repo-public-key]

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

```sh
gthb api actions get-repo-public-key [options]
```

| Option | What 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` [#gthb-api-actions-get-repo-secret]

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

```sh
gthb api actions get-repo-secret [options]
```

| Option | What 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` [#gthb-api-actions-list-repo-workflows]

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

```sh
gthb api actions list-repo-workflows [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

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

#### `gthb api actions get-workflow` [#gthb-api-actions-get-workflow]

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

```sh
gthb api actions get-workflow [options]
```

| Option | What 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` [#gthb-api-actions-list-workflow-runs]

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

```sh
gthb api actions list-workflow-runs [options]
```

| Option | What 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](https://docs.github.com/actions/automating-your-workflow-with-github-actions/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates).". |
| `--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`. |
| `--all` | read 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` [#gthb-api-actions-get-workflow-usage]

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

```sh
gthb api actions get-workflow-usage [options]
```

| Option | What 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` [#gthb-api-actions-list-environment-secrets]

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

```sh
gthb api actions list-environment-secrets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-actions-get-environment-public-key]

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

```sh
gthb api actions get-environment-public-key [options]
```

| Option | What 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` [#gthb-api-actions-get-environment-secret]

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

```sh
gthb api actions get-environment-secret [options]
```

| Option | What 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` [#gthb-api-oidc]

the oidc operations

#### `gthb api oidc list-oidc-custom-property-inclusions-for-enterprise` [#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)

```sh
gthb api oidc list-oidc-custom-property-inclusions-for-enterprise [options]
```

| Option | What 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` [#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)

```sh
gthb api oidc list-oidc-custom-property-inclusions-for-org [options]
```

| Option | What 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` [#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)

```sh
gthb api oidc get-oidc-custom-sub-template-for-org [options]
```

| Option | What 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` [#gthb-api-code-security]

the code-security operations

#### `gthb api code-security get-configurations-for-enterprise` [#gthb-api-code-security-get-configurations-for-enterprise]

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

```sh
gthb api code-security get-configurations-for-enterprise [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#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)

```sh
gthb api code-security get-default-configurations-for-enterprise [options]
```

| Option | What 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` [#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})

```sh
gthb api code-security get-single-configuration-for-enterprise [options]
```

| Option | What 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` [#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)

```sh
gthb api code-security get-repositories-for-enterprise-configuration [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-code-security-get-configurations-for-org]

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

```sh
gthb api code-security get-configurations-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-code-security-get-default-configurations]

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

```sh
gthb api code-security get-default-configurations [options]
```

| Option | What 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` [#gthb-api-code-security-get-configuration]

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

```sh
gthb api code-security get-configuration [options]
```

| Option | What 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` [#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)

```sh
gthb api code-security get-repositories-for-configuration [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#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)

```sh
gthb api code-security get-configuration-for-repository [options]
```

| Option | What 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` [#gthb-api-copilot]

the copilot operations

#### `gthb api copilot enterprise-one-day-usage-metrics` [#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)

```sh
gthb api copilot enterprise-one-day-usage-metrics [options]
```

| Option | What 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` [#gthb-api-copilot-enterprise-usage-metrics]

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

```sh
gthb api copilot enterprise-usage-metrics [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot enterprise-repos-one-day-report [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot enterprise-user-teams-one-day-report [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot users-one-day-usage-metrics [options]
```

| Option | What 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` [#gthb-api-copilot-users-usage-metrics]

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

```sh
gthb api copilot users-usage-metrics [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot get-enterprise-code-review-policy [options]
```

| Option | What 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` [#gthb-api-copilot-get-copilot-organization-details]

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

```sh
gthb api copilot get-copilot-organization-details [options]
```

| Option | What 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` [#gthb-api-copilot-list-copilot-seats]

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

```sh
gthb api copilot list-copilot-seats [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#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)

```sh
gthb api copilot get-organization-code-review-runner [options]
```

| Option | What 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` [#gthb-api-copilot-get-organization-code-review-settings]

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

```sh
gthb api copilot get-organization-code-review-settings [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot get-copilot-coding-agent-permissions-organization [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot list-copilot-coding-agent-selected-repositories-for-organization [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-copilot-content-exclusion-for-organization]

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

```sh
gthb api copilot content-exclusion-for-organization [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot organization-one-day-usage-metrics [options]
```

| Option | What 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` [#gthb-api-copilot-organization-usage-metrics]

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

```sh
gthb api copilot organization-usage-metrics [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot organization-repos-one-day-report [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot organization-user-teams-one-day-report [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot organization-users-one-day-usage-metrics [options]
```

| Option | What 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` [#gthb-api-copilot-organization-users-usage-metrics]

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

```sh
gthb api copilot organization-users-usage-metrics [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot get-organization-code-review-policy [options]
```

| Option | What 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` [#gthb-api-copilot-get-copilot-seat-details-for-user]

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

```sh
gthb api copilot get-copilot-seat-details-for-user [options]
```

| Option | What 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` [#gthb-api-copilot-get-copilot-team-customizations]

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

```sh
gthb api copilot get-copilot-team-customizations [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot get-copilot-cloud-agent-configuration [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot get-repository-code-review-settings [options]
```

| Option | What 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` [#gthb-api-dependabot]

the dependabot operations

#### `gthb api dependabot list-alerts-for-enterprise` [#gthb-api-dependabot-list-alerts-for-enterprise]

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

```sh
gthb api dependabot list-alerts-for-enterprise [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

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

#### `gthb api dependabot repository-access-for-enterprise` [#gthb-api-dependabot-repository-access-for-enterprise]

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

```sh
gthb api dependabot repository-access-for-enterprise [options]
```

| Option | What 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. |
| `--all` | read 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` [#gthb-api-dependabot-list-alerts-for-org]

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

```sh
gthb api dependabot list-alerts-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

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

#### `gthb api dependabot repository-access-for-org` [#gthb-api-dependabot-repository-access-for-org]

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

```sh
gthb api dependabot repository-access-for-org [options]
```

| Option | What 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. |
| `--all` | read every page, as the API pages it. |

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

#### `gthb api dependabot list-org-secrets` [#gthb-api-dependabot-list-org-secrets]

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

```sh
gthb api dependabot list-org-secrets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

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

#### `gthb api dependabot get-org-public-key` [#gthb-api-dependabot-get-org-public-key]

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

```sh
gthb api dependabot get-org-public-key [options]
```

| Option | What 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` [#gthb-api-dependabot-get-org-secret]

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

```sh
gthb api dependabot get-org-secret [options]
```

| Option | What 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` [#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)

```sh
gthb api dependabot list-selected-repos-for-org-secret [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-dependabot-list-alerts-for-repo]

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

```sh
gthb api dependabot list-alerts-for-repo [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

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

#### `gthb api dependabot get-alert` [#gthb-api-dependabot-get-alert]

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

```sh
gthb api dependabot get-alert [options]
```

| Option | What 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` [#gthb-api-dependabot-get-repository-runner-settings]

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

```sh
gthb api dependabot get-repository-runner-settings [options]
```

| Option | What 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` [#gthb-api-dependabot-list-repo-secrets]

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

```sh
gthb api dependabot list-repo-secrets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-dependabot-get-repo-public-key]

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

```sh
gthb api dependabot get-repo-public-key [options]
```

| Option | What 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` [#gthb-api-dependabot-get-repo-secret]

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

```sh
gthb api dependabot get-repo-secret [options]
```

| Option | What 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` [#gthb-api-activity]

the activity operations

#### `gthb api activity list-public-events` [#gthb-api-activity-list-public-events]

List public events — read (GET /events)

```sh
gthb api activity list-public-events [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api activity list-public-events`

#### `gthb api activity get-feeds` [#gthb-api-activity-get-feeds]

Get feeds — read (GET /feeds)

```sh
gthb api activity get-feeds
```

**Example:** `gthb personal api activity get-feeds`

#### `gthb api activity list-public-events-for-repo-network` [#gthb-api-activity-list-public-events-for-repo-network]

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

```sh
gthb api activity list-public-events-for-repo-network [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-list-notifications-for-authenticated-user]

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

```sh
gthb api activity list-notifications-for-authenticated-user [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

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

#### `gthb api activity get-thread` [#gthb-api-activity-get-thread]

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

```sh
gthb api activity get-thread [options]
```

| Option | What 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](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). |

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

#### `gthb api activity get-thread-subscription-for-authenticated-user` [#gthb-api-activity-get-thread-subscription-for-authenticated-user]

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

```sh
gthb api activity get-thread-subscription-for-authenticated-user [options]
```

| Option | What 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](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)). |

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

#### `gthb api activity list-public-org-events` [#gthb-api-activity-list-public-org-events]

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

```sh
gthb api activity list-public-org-events [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

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

#### `gthb api activity list-repo-events` [#gthb-api-activity-list-repo-events]

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

```sh
gthb api activity list-repo-events [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-list-repo-notifications-for-authenticated-user]

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

```sh
gthb api activity list-repo-notifications-for-authenticated-user [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-list-stargazers-for-repo]

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

```sh
gthb api activity list-stargazers-for-repo [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-get-stargazer-count-for-repo]

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

```sh
gthb api activity get-stargazer-count-for-repo [options]
```

| Option | What 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` [#gthb-api-activity-get-stargazer-history-for-repo]

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

```sh
gthb api activity get-stargazer-history-for-repo [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-list-watchers-for-repo]

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

```sh
gthb api activity list-watchers-for-repo [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-get-repo-subscription]

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

```sh
gthb api activity get-repo-subscription [options]
```

| Option | What 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` [#gthb-api-activity-list-repos-starred-by-authenticated-user]

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

```sh
gthb api activity list-repos-starred-by-authenticated-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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})

```sh
gthb api activity check-repo-is-starred-by-authenticated-user [options]
```

| Option | What 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` [#gthb-api-activity-list-watched-repos-for-authenticated-user]

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

```sh
gthb api activity list-watched-repos-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-list-events-for-authenticated-user]

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

```sh
gthb api activity list-events-for-authenticated-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-list-org-events-for-authenticated-user]

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

```sh
gthb api activity list-org-events-for-authenticated-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-list-public-events-for-user]

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

```sh
gthb api activity list-public-events-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-list-received-events-for-user]

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

```sh
gthb api activity list-received-events-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-list-received-public-events-for-user]

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

```sh
gthb api activity list-received-public-events-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-list-repos-starred-by-user]

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

```sh
gthb api activity list-repos-starred-by-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-activity-list-repos-watched-by-user]

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

```sh
gthb api activity list-repos-watched-by-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

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

### `gthb api gitignore` [#gthb-api-gitignore]

the gitignore operations

#### `gthb api gitignore get-all-templates` [#gthb-api-gitignore-get-all-templates]

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

```sh
gthb api gitignore get-all-templates
```

**Example:** `gthb personal api gitignore get-all-templates`

#### `gthb api gitignore get-template` [#gthb-api-gitignore-get-template]

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

```sh
gthb api gitignore get-template [options]
```

| Option | What it does |
|---|---|
| `--name <value>` | name. |

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

### `gthb api issues` [#gthb-api-issues]

the issues operations

#### `gthb api issues list` [#gthb-api-issues-list]

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

```sh
gthb api issues list [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api issues list`

#### `gthb api issues list-for-org` [#gthb-api-issues-list-for-org]

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

```sh
gthb api issues list-for-org [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

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

#### `gthb api issues list-assignees` [#gthb-api-issues-list-assignees]

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

```sh
gthb api issues list-assignees [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-issues-check-user-can-be-assigned]

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

```sh
gthb api issues check-user-can-be-assigned [options]
```

| Option | What 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` [#gthb-api-issues-list-for-repo]

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

```sh
gthb api issues list-for-repo [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-issues-list-comments-for-repo]

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

```sh
gthb api issues list-comments-for-repo [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

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

#### `gthb api issues get-comment` [#gthb-api-issues-get-comment]

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

```sh
gthb api issues get-comment [options]
```

| Option | What 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` [#gthb-api-issues-list-events-for-repo]

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

```sh
gthb api issues list-events-for-repo [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

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

#### `gthb api issues get-event` [#gthb-api-issues-get-event]

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

```sh
gthb api issues get-event [options]
```

| Option | What 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` [#gthb-api-issues-get]

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

```sh
gthb api issues get [options]
```

| Option | What 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` [#gthb-api-issues-list-issue-artifacts]

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

```sh
gthb api issues list-issue-artifacts [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-issues-get-issue-artifact]

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

```sh
gthb api issues get-issue-artifact [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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})

```sh
gthb api issues check-user-can-be-assigned-to-issue [options]
```

| Option | What 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` [#gthb-api-issues-list-comments]

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

```sh
gthb api issues list-comments [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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)

```sh
gthb api issues list-dependencies-blocked-by [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-issues-list-dependencies-blocking]

List dependencies an issue is blocking — read (GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking)

```sh
gthb api issues list-dependencies-blocking [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-issues-list-events]

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

```sh
gthb api issues list-events [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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)

```sh
gthb api issues list-issue-field-values-for-issue [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-issues-list-labels-on-issue]

List labels for an issue — read (GET /repos/{owner}/{repo}/issues/{issue_number}/labels)

```sh
gthb api issues list-labels-on-issue [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-issues-get-parent]

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

```sh
gthb api issues get-parent [options]
```

| Option | What 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` [#gthb-api-issues-list-relates-to]

List issues related to an issue — read (GET /repos/{owner}/{repo}/issues/{issue_number}/relates_to)

```sh
gthb api issues list-relates-to [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-issues-list-sub-issues]

List sub-issues — read (GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues)

```sh
gthb api issues list-sub-issues [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-issues-list-suggestions]

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

```sh
gthb api issues list-suggestions [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-issues-list-events-for-timeline]

List timeline events for an issue — read (GET /repos/{owner}/{repo}/issues/{issue_number}/timeline)

```sh
gthb api issues list-events-for-timeline [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-issues-list-labels-for-repo]

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

```sh
gthb api issues list-labels-for-repo [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

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

#### `gthb api issues get-label` [#gthb-api-issues-get-label]

Get a label — read (GET /repos/{owner}/{repo}/labels/{name})

```sh
gthb api issues get-label [options]
```

| Option | What 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` [#gthb-api-issues-list-milestones]

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

```sh
gthb api issues list-milestones [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api issues list-milestones --owner <value> --repo <value>`

#### `gthb api issues get-milestone` [#gthb-api-issues-get-milestone]

Get a milestone — read (GET /repos/{owner}/{repo}/milestones/{milestone_number})

```sh
gthb api issues get-milestone [options]
```

| Option | What 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` [#gthb-api-issues-list-labels-for-milestone]

List labels for issues in a milestone — read (GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels)

```sh
gthb api issues list-labels-for-milestone [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-issues-list-for-authenticated-user]

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

```sh
gthb api issues list-for-authenticated-user [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api issues list-for-authenticated-user`

### `gthb api licenses` [#gthb-api-licenses]

the licenses operations

#### `gthb api licenses get-all-commonly-used` [#gthb-api-licenses-get-all-commonly-used]

Get all commonly used licenses — read (GET /licenses)

```sh
gthb api licenses get-all-commonly-used [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api licenses get-all-commonly-used`

#### `gthb api licenses get` [#gthb-api-licenses-get]

Get a license — read (GET /licenses/{license})

```sh
gthb api licenses get [options]
```

| Option | What it does |
|---|---|
| `--license <value>` | license. |

**Example:** `gthb personal api licenses get --license <value>`

### `gthb api orgs` [#gthb-api-orgs]

the orgs operations

#### `gthb api orgs list` [#gthb-api-orgs-list]

List organizations — read (GET /organizations)

```sh
gthb api orgs list [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api orgs list`

#### `gthb api orgs get` [#gthb-api-orgs-get]

Get an organization — read (GET /orgs/{org})

```sh
gthb api orgs get [options]
```

| Option | What 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` [#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})

```sh
gthb api orgs get-cluster-deployment-records-job [options]
```

| Option | What 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` [#gthb-api-orgs-list-artifact-deployment-records]

List artifact deployment records — read (GET /orgs/{org}/artifacts/{subject_digest}/metadata/deployment-records)

```sh
gthb api orgs list-artifact-deployment-records [options]
```

| Option | What 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` [#gthb-api-orgs-list-artifact-storage-records]

List artifact storage records — read (GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records)

```sh
gthb api orgs list-artifact-storage-records [options]
```

| Option | What 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` [#gthb-api-orgs-list-attestation-repositories]

List attestation repositories — read (GET /orgs/{org}/attestations/repositories)

```sh
gthb api orgs list-attestation-repositories [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-orgs-list-attestations]

List attestations — read (GET /orgs/{org}/attestations/{subject_digest})

```sh
gthb api orgs list-attestations [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-orgs-list-blocked-users]

List users blocked by an organization — read (GET /orgs/{org}/blocks)

```sh
gthb api orgs list-blocked-users [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api orgs list-blocked-users --org <value>`

#### `gthb api orgs check-blocked-user` [#gthb-api-orgs-check-blocked-user]

Check if a user is blocked by an organization — read (GET /orgs/{org}/blocks/{username})

```sh
gthb api orgs check-blocked-user [options]
```

| Option | What 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` [#gthb-api-orgs-list-failed-invitations]

List failed organization invitations — read (GET /orgs/{org}/failed_invitations)

```sh
gthb api orgs list-failed-invitations [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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})

```sh
gthb api orgs api-insights-get-route-stats-by-actor [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-orgs-api-insights-get-subject-stats]

Get subject stats — read (GET /orgs/{org}/insights/api/subject-stats)

```sh
gthb api orgs api-insights-get-subject-stats [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-orgs-api-insights-get-summary-stats]

Get summary stats — read (GET /orgs/{org}/insights/api/summary-stats)

```sh
gthb api orgs api-insights-get-summary-stats [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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` [#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})

```sh
gthb api orgs api-insights-get-summary-stats-by-user [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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` [#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})

```sh
gthb api orgs api-insights-get-summary-stats-by-actor [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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` [#gthb-api-orgs-api-insights-get-time-stats]

Get time stats — read (GET /orgs/{org}/insights/api/time-stats)

```sh
gthb api orgs api-insights-get-time-stats [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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` [#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})

```sh
gthb api orgs api-insights-get-time-stats-by-user [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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` [#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})

```sh
gthb api orgs api-insights-get-time-stats-by-actor [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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` [#gthb-api-orgs-api-insights-get-user-stats]

Get user stats — read (GET /orgs/{org}/insights/api/user-stats/{user_id})

```sh
gthb api orgs api-insights-get-user-stats [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-orgs-list-app-installations]

List app installations for an organization — read (GET /orgs/{org}/installations)

```sh
gthb api orgs list-app-installations [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api orgs list-app-installations --org <value>`

#### `gthb api orgs list-pending-invitations` [#gthb-api-orgs-list-pending-invitations]

List pending organization invitations — read (GET /orgs/{org}/invitations)

```sh
gthb api orgs list-pending-invitations [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-orgs-list-invitation-teams]

List organization invitation teams — read (GET /orgs/{org}/invitations/{invitation_id}/teams)

```sh
gthb api orgs list-invitation-teams [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-orgs-list-issue-fields]

List issue fields for an organization — read (GET /orgs/{org}/issue-fields)

```sh
gthb api orgs list-issue-fields [options]
```

| Option | What 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` [#gthb-api-orgs-list-issue-types]

List issue types for an organization — read (GET /orgs/{org}/issue-types)

```sh
gthb api orgs list-issue-types [options]
```

| Option | What 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` [#gthb-api-orgs-list-members]

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

```sh
gthb api orgs list-members [options]
```

| Option | What 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](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. `2fa_insecure` means that only members with [insecure 2FA methods](https://docs.github.com/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization#requiring-secure-methods-of-two-factor-authentication-in-your-organization) 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api orgs list-members --org <value>`

#### `gthb api orgs check-membership-for-user` [#gthb-api-orgs-check-membership-for-user]

Check organization membership for a user — read (GET /orgs/{org}/members/{username})

```sh
gthb api orgs check-membership-for-user [options]
```

| Option | What 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` [#gthb-api-orgs-get-membership-for-user]

Get organization membership for a user — read (GET /orgs/{org}/memberships/{username})

```sh
gthb api orgs get-membership-for-user [options]
```

| Option | What 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` [#gthb-api-orgs-list-org-roles]

Get all organization roles for an organization — read (GET /orgs/{org}/organization-roles)

```sh
gthb api orgs list-org-roles [options]
```

| Option | What 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` [#gthb-api-orgs-get-org-role]

Get an organization role — read (GET /orgs/{org}/organization-roles/{role_id})

```sh
gthb api orgs get-org-role [options]
```

| Option | What 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` [#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)

```sh
gthb api orgs list-org-role-teams [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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)

```sh
gthb api orgs list-org-role-users [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-orgs-list-outside-collaborators]

List outside collaborators for an organization — read (GET /orgs/{org}/outside_collaborators)

```sh
gthb api orgs list-outside-collaborators [options]
```

| Option | What 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](https://github.com/blog/1614-two-factor-authentication) enabled will be returned. `2fa_insecure` means that only outside collaborators with [insecure 2FA methods](https://docs.github.com/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization#requiring-secure-methods-of-two-factor-authentication-in-your-organization) will be returned. |
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api orgs list-outside-collaborators --org <value>`

#### `gthb api orgs list-pat-grant-requests` [#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)

```sh
gthb api orgs list-pat-grant-requests [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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` [#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)

```sh
gthb api orgs list-pat-grant-request-repositories [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-orgs-list-pat-grants]

List fine-grained personal access tokens with access to organization resources — read (GET /orgs/{org}/personal-access-tokens)

```sh
gthb api orgs list-pat-grants [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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` [#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)

```sh
gthb api orgs list-pat-grant-repositories [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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)

```sh
gthb api orgs external-properties-for-repos-get-organization-app-installations [options]
```

| Option | What 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` [#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)

```sh
gthb api orgs external-properties-for-repos-get-organization-definitions [options]
```

| Option | What 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` [#gthb-api-orgs-custom-properties-for-repos-get-organization-definitions]

Get all custom properties for an organization — read (GET /orgs/{org}/properties/schema)

```sh
gthb api orgs custom-properties-for-repos-get-organization-definitions [options]
```

| Option | What 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` [#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})

```sh
gthb api orgs custom-properties-for-repos-get-organization-definition [options]
```

| Option | What 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` [#gthb-api-orgs-custom-properties-for-repos-get-organization-values]

List custom property values for organization repositories — read (GET /orgs/{org}/properties/values)

```sh
gthb api orgs custom-properties-for-repos-get-organization-values [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching for repositories](https://docs.github.com/articles/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` [#gthb-api-orgs-list-public-members]

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

```sh
gthb api orgs list-public-members [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api orgs list-public-members --org <value>`

#### `gthb api orgs check-public-membership-for-user` [#gthb-api-orgs-check-public-membership-for-user]

Check public organization membership for a user — read (GET /orgs/{org}/public_members/{username})

```sh
gthb api orgs check-public-membership-for-user [options]
```

| Option | What 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` [#gthb-api-orgs-get-org-ruleset-history]

Get organization ruleset history — read (GET /orgs/{org}/rulesets/{ruleset_id}/history)

```sh
gthb api orgs get-org-ruleset-history [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-orgs-get-org-ruleset-version]

Get organization ruleset version — read (GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id})

```sh
gthb api orgs get-org-ruleset-version [options]
```

| Option | What 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` [#gthb-api-orgs-list-security-manager-teams]

List security manager teams — read (GET /orgs/{org}/security-managers)

```sh
gthb api orgs list-security-manager-teams [options]
```

| Option | What 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` [#gthb-api-orgs-get-immutable-releases-settings]

Get immutable releases settings for an organization — read (GET /orgs/{org}/settings/immutable-releases)

```sh
gthb api orgs get-immutable-releases-settings [options]
```

| Option | What 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` [#gthb-api-orgs-get-immutable-releases-settings-repositories]

List selected repositories for immutable releases enforcement — read (GET /orgs/{org}/settings/immutable-releases/repositories)

```sh
gthb api orgs get-immutable-releases-settings-repositories [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-orgs-list-memberships-for-authenticated-user]

List organization memberships for the authenticated user — read (GET /user/memberships/orgs)

```sh
gthb api orgs list-memberships-for-authenticated-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api orgs list-memberships-for-authenticated-user`

#### `gthb api orgs get-membership-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})

```sh
gthb api orgs get-membership-for-authenticated-user [options]
```

| Option | What 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` [#gthb-api-orgs-list-for-authenticated-user]

List organizations for the authenticated user — read (GET /user/orgs)

```sh
gthb api orgs list-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api orgs list-for-authenticated-user`

#### `gthb api orgs list-for-user` [#gthb-api-orgs-list-for-user]

List organizations for a user — read (GET /users/{username}/orgs)

```sh
gthb api orgs list-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api orgs list-for-user --username <value>`

### `gthb api billing` [#gthb-api-billing]

the billing operations

#### `gthb api billing get-github-billing-ai-credit-usage-report-org` [#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)

```sh
gthb api billing get-github-billing-ai-credit-usage-report-org [options]
```

| Option | What 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` [#gthb-api-billing-get-all-budgets-org]

Get all budgets for an organization — read (GET /organizations/{org}/settings/billing/budgets)

```sh
gthb api billing get-all-budgets-org [options]
```

| Option | What 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` [#gthb-api-billing-get-budget-org]

Get a budget by ID for an organization — read (GET /organizations/{org}/settings/billing/budgets/{budget_id})

```sh
gthb api billing get-budget-org [options]
```

| Option | What 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` [#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)

```sh
gthb api billing get-github-billing-premium-request-usage-report-org [options]
```

| Option | What 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` [#gthb-api-billing-get-github-billing-usage-report-org]

Get billing usage report for an organization — read (GET /organizations/{org}/settings/billing/usage)

```sh
gthb api billing get-github-billing-usage-report-org [options]
```

| Option | What 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` [#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)

```sh
gthb api billing get-github-billing-usage-summary-report-org [options]
```

| Option | What 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` [#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)

```sh
gthb api billing get-github-billing-ai-credit-usage-report-user [options]
```

| Option | What 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` [#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)

```sh
gthb api billing get-github-billing-premium-request-usage-report-user [options]
```

| Option | What 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` [#gthb-api-billing-get-github-billing-usage-report-user]

Get billing usage report for a user — read (GET /users/{username}/settings/billing/usage)

```sh
gthb api billing get-github-billing-usage-report-user [options]
```

| Option | What 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` [#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)

```sh
gthb api billing get-github-billing-usage-summary-report-user [options]
```

| Option | What 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` [#gthb-api-agents]

the agents operations

#### `gthb api agents list-org-secrets` [#gthb-api-agents-list-org-secrets]

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

```sh
gthb api agents list-org-secrets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api agents list-org-secrets --org <value>`

#### `gthb api agents get-org-public-key` [#gthb-api-agents-get-org-public-key]

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

```sh
gthb api agents get-org-public-key [options]
```

| Option | What 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` [#gthb-api-agents-get-org-secret]

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

```sh
gthb api agents get-org-secret [options]
```

| Option | What 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` [#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)

```sh
gthb api agents list-selected-repos-for-org-secret [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-agents-list-repo-organization-secrets]

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

```sh
gthb api agents list-repo-organization-secrets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-agents-list-repo-secrets]

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

```sh
gthb api agents list-repo-secrets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-agents-get-repo-public-key]

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

```sh
gthb api agents get-repo-public-key [options]
```

| Option | What 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` [#gthb-api-agents-get-repo-secret]

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

```sh
gthb api agents get-repo-secret [options]
```

| Option | What 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` [#gthb-api-campaigns]

the campaigns operations

#### `gthb api campaigns list-org-campaigns` [#gthb-api-campaigns-list-org-campaigns]

List campaigns for an organization — read (GET /orgs/{org}/campaigns)

```sh
gthb api campaigns list-org-campaigns [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-campaigns-get-campaign-summary]

Get a campaign for an organization — read (GET /orgs/{org}/campaigns/{campaign_number})

```sh
gthb api campaigns get-campaign-summary [options]
```

| Option | What 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` [#gthb-api-code-scanning]

the code-scanning operations

#### `gthb api code-scanning get-ai-scan-enablement-for-org` [#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)

```sh
gthb api code-scanning get-ai-scan-enablement-for-org [options]
```

| Option | What 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` [#gthb-api-code-scanning-list-alerts-for-org]

List code scanning alerts for an organization — read (GET /orgs/{org}/code-scanning/alerts)

```sh
gthb api code-scanning list-alerts-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-code-scanning-get-ai-scan-enablement]

Get AI Scan enablement for a repository — read (GET /repos/{owner}/{repo}/code-scanning/ai-scan)

```sh
gthb api code-scanning get-ai-scan-enablement [options]
```

| Option | What 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` [#gthb-api-code-scanning-list-alerts-for-repo]

List code scanning alerts for a repository — read (GET /repos/{owner}/{repo}/code-scanning/alerts)

```sh
gthb api code-scanning list-alerts-for-repo [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-code-scanning-get-alert]

Get a code scanning alert — read (GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number})

```sh
gthb api code-scanning get-alert [options]
```

| Option | What 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` [#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)

```sh
gthb api code-scanning get-autofix [options]
```

| Option | What 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` [#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)

```sh
gthb api code-scanning list-alert-instances [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-code-scanning-list-recent-analyses]

List code scanning analyses for a repository — read (GET /repos/{owner}/{repo}/code-scanning/analyses)

```sh
gthb api code-scanning list-recent-analyses [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-code-scanning-get-analysis]

Get a code scanning analysis for a repository — read (GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id})

```sh
gthb api code-scanning get-analysis [options]
```

| Option | What 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` [#gthb-api-code-scanning-list-codeql-databases]

List CodeQL databases for a repository — read (GET /repos/{owner}/{repo}/code-scanning/codeql/databases)

```sh
gthb api code-scanning list-codeql-databases [options]
```

| Option | What 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` [#gthb-api-code-scanning-get-codeql-database]

Get a CodeQL database for a repository — read (GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language})

```sh
gthb api code-scanning get-codeql-database [options]
```

| Option | What 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` [#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})

```sh
gthb api code-scanning get-variant-analysis [options]
```

| Option | What 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` [#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})

```sh
gthb api code-scanning get-variant-analysis-repo-task [options]
```

| Option | What 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` [#gthb-api-code-scanning-get-default-setup]

Get a code scanning default setup configuration — read (GET /repos/{owner}/{repo}/code-scanning/default-setup)

```sh
gthb api code-scanning get-default-setup [options]
```

| Option | What 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` [#gthb-api-code-scanning-get-sarif]

Get information about a SARIF upload — read (GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id})

```sh
gthb api code-scanning get-sarif [options]
```

| Option | What 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` [#gthb-api-codespaces]

the codespaces operations

#### `gthb api codespaces list-in-organization` [#gthb-api-codespaces-list-in-organization]

List codespaces for the organization — read (GET /orgs/{org}/codespaces)

```sh
gthb api codespaces list-in-organization [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--org <value>` | The organization name. The name is not case sensitive. |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api codespaces list-in-organization --org <value>`

#### `gthb api codespaces list-org-secrets` [#gthb-api-codespaces-list-org-secrets]

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

```sh
gthb api codespaces list-org-secrets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api codespaces list-org-secrets --org <value>`

#### `gthb api codespaces get-org-public-key` [#gthb-api-codespaces-get-org-public-key]

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

```sh
gthb api codespaces get-org-public-key [options]
```

| Option | What 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` [#gthb-api-codespaces-get-org-secret]

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

```sh
gthb api codespaces get-org-secret [options]
```

| Option | What 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` [#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)

```sh
gthb api codespaces list-selected-repos-for-org-secret [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-codespaces-get-codespaces-for-user-in-org]

List codespaces for a user in organization — read (GET /orgs/{org}/members/{username}/codespaces)

```sh
gthb api codespaces get-codespaces-for-user-in-org [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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. |
| `--all` | read 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` [#gthb-api-codespaces-list-in-repository-for-authenticated-user]

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

```sh
gthb api codespaces list-in-repository-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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. |
| `--all` | read 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` [#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)

```sh
gthb api codespaces list-devcontainers-in-repository-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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. |
| `--all` | read 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` [#gthb-api-codespaces-repo-machines-for-authenticated-user]

List available machine types for a repository — read (GET /repos/{owner}/{repo}/codespaces/machines)

```sh
gthb api codespaces repo-machines-for-authenticated-user [options]
```

| Option | What 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` [#gthb-api-codespaces-pre-flight-with-repo-for-authenticated-user]

Get default attributes for a codespace — read (GET /repos/{owner}/{repo}/codespaces/new)

```sh
gthb api codespaces pre-flight-with-repo-for-authenticated-user [options]
```

| Option | What 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` [#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)

```sh
gthb api codespaces check-permissions-for-devcontainer [options]
```

| Option | What 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](https://git-scm.com/book/en/v2/Git-Internals-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` [#gthb-api-codespaces-list-repo-secrets]

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

```sh
gthb api codespaces list-repo-secrets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-codespaces-get-repo-public-key]

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

```sh
gthb api codespaces get-repo-public-key [options]
```

| Option | What 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` [#gthb-api-codespaces-get-repo-secret]

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

```sh
gthb api codespaces get-repo-secret [options]
```

| Option | What 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` [#gthb-api-codespaces-list-for-authenticated-user]

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

```sh
gthb api codespaces list-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--repository-id <value>` | ID of the Repository to filter on. |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api codespaces list-for-authenticated-user`

#### `gthb api codespaces list-secrets-for-authenticated-user` [#gthb-api-codespaces-list-secrets-for-authenticated-user]

List secrets for the authenticated user — read (GET /user/codespaces/secrets)

```sh
gthb api codespaces list-secrets-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-codespaces-get-public-key-for-authenticated-user]

Get public key for the authenticated user — read (GET /user/codespaces/secrets/public-key)

```sh
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` [#gthb-api-codespaces-get-secret-for-authenticated-user]

Get a secret for the authenticated user — read (GET /user/codespaces/secrets/{secret_name})

```sh
gthb api codespaces get-secret-for-authenticated-user [options]
```

| Option | What 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` [#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)

```sh
gthb api codespaces list-repositories-for-secret-for-authenticated-user [options]
```

| Option | What 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` [#gthb-api-codespaces-get-for-authenticated-user]

Get a codespace for the authenticated user — read (GET /user/codespaces/{codespace_name})

```sh
gthb api codespaces get-for-authenticated-user [options]
```

| Option | What 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` [#gthb-api-codespaces-get-export-details-for-authenticated-user]

Get details about a codespace export — read (GET /user/codespaces/{codespace_name}/exports/{export_id})

```sh
gthb api codespaces get-export-details-for-authenticated-user [options]
```

| Option | What 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` [#gthb-api-codespaces-codespace-machines-for-authenticated-user]

List machine types for a codespace — read (GET /user/codespaces/{codespace_name}/machines)

```sh
gthb api codespaces codespace-machines-for-authenticated-user [options]
```

| Option | What 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` [#gthb-api-copilot-spaces]

the copilot-spaces operations

#### `gthb api copilot-spaces list-for-org` [#gthb-api-copilot-spaces-list-for-org]

List organization Copilot Spaces — read (GET /orgs/{org}/copilot-spaces)

```sh
gthb api copilot-spaces list-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). 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` [#gthb-api-copilot-spaces-get-for-org]

Get an organization Copilot Space — read (GET /orgs/{org}/copilot-spaces/{space_number})

```sh
gthb api copilot-spaces get-for-org [options]
```

| Option | What 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` [#gthb-api-copilot-spaces-list-collaborators-for-org]

List collaborators for an organization Copilot Space — read (GET /orgs/{org}/copilot-spaces/{space_number}/collaborators)

```sh
gthb api copilot-spaces list-collaborators-for-org [options]
```

| Option | What 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` [#gthb-api-copilot-spaces-list-for-user]

List Copilot Spaces for a user — read (GET /users/{username}/copilot-spaces)

```sh
gthb api copilot-spaces list-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). 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` [#gthb-api-copilot-spaces-get-for-user]

Get a Copilot Space for a user — read (GET /users/{username}/copilot-spaces/{space_number})

```sh
gthb api copilot-spaces get-for-user [options]
```

| Option | What 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` [#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)

```sh
gthb api copilot-spaces list-collaborators-for-user [options]
```

| Option | What 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` [#gthb-api-packages]

the packages operations

#### `gthb api packages list-docker-migration-conflicting-packages-for-organization` [#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)

```sh
gthb api packages list-docker-migration-conflicting-packages-for-organization [options]
```

| Option | What 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` [#gthb-api-packages-list-packages-for-organization]

List packages for an organization — read (GET /orgs/{org}/packages)

```sh
gthb api packages list-packages-for-organization [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-packages-get-package-for-organization]

Get a package for an organization — read (GET /orgs/{org}/packages/{package_type}/{package_name})

```sh
gthb api packages get-package-for-organization [options]
```

| Option | What 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` [#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)

```sh
gthb api packages get-all-package-versions-for-package-owned-by-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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})

```sh
gthb api packages get-package-version-for-organization [options]
```

| Option | What 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` [#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)

```sh
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` [#gthb-api-packages-list-packages-for-authenticated-user]

List packages for the authenticated user's namespace — read (GET /user/packages)

```sh
gthb api packages list-packages-for-authenticated-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-packages-get-package-for-authenticated-user]

Get a package for the authenticated user — read (GET /user/packages/{package_type}/{package_name})

```sh
gthb api packages get-package-for-authenticated-user [options]
```

| Option | What 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` [#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)

```sh
gthb api packages get-all-package-versions-for-package-owned-by-authenticated-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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})

```sh
gthb api packages get-package-version-for-authenticated-user [options]
```

| Option | What 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` [#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)

```sh
gthb api packages list-docker-migration-conflicting-packages-for-user [options]
```

| Option | What 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` [#gthb-api-packages-list-packages-for-user]

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

```sh
gthb api packages list-packages-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-packages-get-package-for-user]

Get a package for a user — read (GET /users/{username}/packages/{package_type}/{package_name})

```sh
gthb api packages get-package-for-user [options]
```

| Option | What 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` [#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)

```sh
gthb api packages get-all-package-versions-for-package-owned-by-user [options]
```

| Option | What 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` [#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})

```sh
gthb api packages get-package-version-for-user [options]
```

| Option | What 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` [#gthb-api-interactions]

the interactions operations

#### `gthb api interactions get-restrictions-for-org` [#gthb-api-interactions-get-restrictions-for-org]

Get interaction restrictions for an organization — read (GET /orgs/{org}/interaction-limits)

```sh
gthb api interactions get-restrictions-for-org [options]
```

| Option | What 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` [#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)

```sh
gthb api interactions get-pull-request-creation-cap-for-org [options]
```

| Option | What 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` [#gthb-api-interactions-get-restrictions-for-repo]

Get interaction restrictions for a repository — read (GET /repos/{owner}/{repo}/interaction-limits)

```sh
gthb api interactions get-restrictions-for-repo [options]
```

| Option | What 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` [#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)

```sh
gthb api interactions get-pull-request-bypass-list-for-repo [options]
```

| Option | What 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` [#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)

```sh
gthb api interactions get-pull-request-creation-cap-for-repo [options]
```

| Option | What 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` [#gthb-api-interactions-get-restrictions-for-authenticated-user]

Get interaction restrictions for your public repositories — read (GET /user/interaction-limits)

```sh
gthb api interactions get-restrictions-for-authenticated-user
```

**Example:** `gthb personal api interactions get-restrictions-for-authenticated-user`

### `gthb api migrations` [#gthb-api-migrations]

the migrations operations

#### `gthb api migrations list-for-org` [#gthb-api-migrations-list-for-org]

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

```sh
gthb api migrations list-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-migrations-get-status-for-org]

Get an organization migration status — read (GET /orgs/{org}/migrations/{migration_id})

```sh
gthb api migrations get-status-for-org [options]
```

| Option | What 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` [#gthb-api-migrations-list-repos-for-org]

List repositories in an organization migration — read (GET /orgs/{org}/migrations/{migration_id}/repositories)

```sh
gthb api migrations list-repos-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-migrations-get-import-status]

Get an import status — read (GET /repos/{owner}/{repo}/import)

```sh
gthb api migrations get-import-status [options]
```

| Option | What 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` [#gthb-api-migrations-get-commit-authors]

Get commit authors — read (GET /repos/{owner}/{repo}/import/authors)

```sh
gthb api migrations get-commit-authors [options]
```

| Option | What 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` [#gthb-api-migrations-get-large-files]

Get large files — read (GET /repos/{owner}/{repo}/import/large_files)

```sh
gthb api migrations get-large-files [options]
```

| Option | What 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` [#gthb-api-migrations-list-for-authenticated-user]

List user migrations — read (GET /user/migrations)

```sh
gthb api migrations list-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api migrations list-for-authenticated-user`

#### `gthb api migrations get-status-for-authenticated-user` [#gthb-api-migrations-get-status-for-authenticated-user]

Get a user migration status — read (GET /user/migrations/{migration_id})

```sh
gthb api migrations get-status-for-authenticated-user [options]
```

| Option | What 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` [#gthb-api-migrations-list-repos-for-authenticated-user]

List repositories for a user migration — read (GET /user/migrations/{migration_id}/repositories)

```sh
gthb api migrations list-repos-for-authenticated-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api migrations list-repos-for-authenticated-user --migration-id <value>`

### `gthb api projects` [#gthb-api-projects]

the projects operations

#### `gthb api projects list-for-org` [#gthb-api-projects-list-for-org]

List projects for organization — read (GET /orgs/{org}/projectsV2)

```sh
gthb api projects list-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api projects list-for-org --org <value>`

#### `gthb api projects get-for-org` [#gthb-api-projects-get-for-org]

Get project for organization — read (GET /orgs/{org}/projectsV2/{project_number})

```sh
gthb api projects get-for-org [options]
```

| Option | What 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` [#gthb-api-projects-list-fields-for-org]

List project fields for organization — read (GET /orgs/{org}/projectsV2/{project_number}/fields)

```sh
gthb api projects list-fields-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-projects-get-field-for-org]

Get project field for organization — read (GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id})

```sh
gthb api projects get-field-for-org [options]
```

| Option | What 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` [#gthb-api-projects-list-items-for-org]

List items for an organization owned project — read (GET /orgs/{org}/projectsV2/{project_number}/items)

```sh
gthb api projects list-items-for-org [options]
```

| Option | What 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](https://docs.github.com/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-projects-get-org-item]

Get an item for an organization owned project — read (GET /orgs/{org}/projectsV2/{project_number}/items/{item_id})

```sh
gthb api projects get-org-item [options]
```

| Option | What 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` [#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)

```sh
gthb api projects list-view-items-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-projects-list-for-user]

List projects for user — read (GET /users/{username}/projectsV2)

```sh
gthb api projects list-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api projects list-for-user --username <value>`

#### `gthb api projects get-for-user` [#gthb-api-projects-get-for-user]

Get project for user — read (GET /users/{username}/projectsV2/{project_number})

```sh
gthb api projects get-for-user [options]
```

| Option | What 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` [#gthb-api-projects-list-fields-for-user]

List project fields for user — read (GET /users/{username}/projectsV2/{project_number}/fields)

```sh
gthb api projects list-fields-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-projects-get-field-for-user]

Get project field for user — read (GET /users/{username}/projectsV2/{project_number}/fields/{field_id})

```sh
gthb api projects get-field-for-user [options]
```

| Option | What 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` [#gthb-api-projects-list-items-for-user]

List items for a user owned project — read (GET /users/{username}/projectsV2/{project_number}/items)

```sh
gthb api projects list-items-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--q <value>` | Search query to filter items, see [Filtering projects](https://docs.github.com/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/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` [#gthb-api-projects-get-user-item]

Get an item for a user owned project — read (GET /users/{username}/projectsV2/{project_number}/items/{item_id})

```sh
gthb api projects get-user-item [options]
```

| Option | What 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` [#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)

```sh
gthb api projects list-view-items-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos]

the repos operations

#### `gthb api repos list-for-org` [#gthb-api-repos-list-for-org]

List organization repositories — read (GET /orgs/{org}/repos)

```sh
gthb api repos list-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-for-org --org <value>`

#### `gthb api repos get-org-rulesets` [#gthb-api-repos-get-org-rulesets]

Get all organization repository rulesets — read (GET /orgs/{org}/rulesets)

```sh
gthb api repos get-org-rulesets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-get-org-rule-suites]

List organization rule suites — read (GET /orgs/{org}/rulesets/rule-suites)

```sh
gthb api repos get-org-rule-suites [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos get-org-rule-suites --org <value>`

#### `gthb api repos get-org-rule-suite` [#gthb-api-repos-get-org-rule-suite]

Get an organization rule suite — read (GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id})

```sh
gthb api repos get-org-rule-suite [options]
```

| Option | What 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` [#gthb-api-repos-get-org-ruleset]

Get an organization repository ruleset — read (GET /orgs/{org}/rulesets/{ruleset_id})

```sh
gthb api repos get-org-ruleset [options]
```

| Option | What 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` [#gthb-api-repos-get]

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

```sh
gthb api repos get [options]
```

| Option | What 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` [#gthb-api-repos-list-activities]

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

```sh
gthb api repos list-activities [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-list-attestations]

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

```sh
gthb api repos list-attestations [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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>`

#### `gthb api repos list-autolinks` [#gthb-api-repos-list-autolinks]

Get all autolinks of a repository — read (GET /repos/{owner}/{repo}/autolinks)

```sh
gthb api repos list-autolinks [options]
```

| Option | What 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>`

#### `gthb api repos get-autolink` [#gthb-api-repos-get-autolink]

Get an autolink reference of a repository — read (GET /repos/{owner}/{repo}/autolinks/{autolink_id})

```sh
gthb api repos get-autolink [options]
```

| Option | What 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` [#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)

```sh
gthb api repos check-automated-security-fixes [options]
```

| Option | What 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` [#gthb-api-repos-list-branches]

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

```sh
gthb api repos list-branches [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-branches --owner <value> --repo <value>`

#### `gthb api repos get-branch` [#gthb-api-repos-get-branch]

Get a branch — read (GET /repos/{owner}/{repo}/branches/{branch})

```sh
gthb api repos get-branch [options]
```

| Option | What 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](https://docs.github.com/graphql). |

**Example:** `gthb personal api repos get-branch --owner <value> --repo <value> --branch <value>`

#### `gthb api repos get-branch-protection` [#gthb-api-repos-get-branch-protection]

Get branch protection — read (GET /repos/{owner}/{repo}/branches/{branch}/protection)

```sh
gthb api repos get-branch-protection [options]
```

| Option | What 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](https://docs.github.com/graphql). |

**Example:** `gthb personal api repos get-branch-protection --owner <value> --repo <value> --branch <value>`

#### `gthb api repos get-admin-branch-protection` [#gthb-api-repos-get-admin-branch-protection]

Get admin branch protection — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins)

```sh
gthb api repos get-admin-branch-protection [options]
```

| Option | What 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](https://docs.github.com/graphql). |

**Example:** `gthb personal api repos get-admin-branch-protection --owner <value> --repo <value> --branch <value>`

#### `gthb api repos get-pull-request-review-protection` [#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)

```sh
gthb api repos get-pull-request-review-protection [options]
```

| Option | What 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](https://docs.github.com/graphql). |

**Example:** `gthb personal api repos get-pull-request-review-protection --owner <value> --repo <value> --branch <value>`

#### `gthb api repos get-commit-signature-protection` [#gthb-api-repos-get-commit-signature-protection]

Get commit signature protection — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures)

```sh
gthb api repos get-commit-signature-protection [options]
```

| Option | What 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](https://docs.github.com/graphql). |

**Example:** `gthb personal api repos get-commit-signature-protection --owner <value> --repo <value> --branch <value>`

#### `gthb api repos get-status-checks-protection` [#gthb-api-repos-get-status-checks-protection]

Get status checks protection — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks)

```sh
gthb api repos get-status-checks-protection [options]
```

| Option | What 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](https://docs.github.com/graphql). |

**Example:** `gthb personal api repos get-status-checks-protection --owner <value> --repo <value> --branch <value>`

#### `gthb api repos get-all-status-check-contexts` [#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)

```sh
gthb api repos get-all-status-check-contexts [options]
```

| Option | What 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](https://docs.github.com/graphql). |

**Example:** `gthb personal api repos get-all-status-check-contexts --owner <value> --repo <value> --branch <value>`

#### `gthb api repos get-access-restrictions` [#gthb-api-repos-get-access-restrictions]

Get access restrictions — read (GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions)

```sh
gthb api repos get-access-restrictions [options]
```

| Option | What 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](https://docs.github.com/graphql). |

**Example:** `gthb personal api repos get-access-restrictions --owner <value> --repo <value> --branch <value>`

#### `gthb api repos get-apps-with-access-to-protected-branch` [#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)

```sh
gthb api repos get-apps-with-access-to-protected-branch [options]
```

| Option | What 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](https://docs.github.com/graphql). |

**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` [#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)

```sh
gthb api repos get-teams-with-access-to-protected-branch [options]
```

| Option | What 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](https://docs.github.com/graphql). |

**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` [#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)

```sh
gthb api repos get-users-with-access-to-protected-branch [options]
```

| Option | What 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](https://docs.github.com/graphql). |

**Example:** `gthb personal api repos get-users-with-access-to-protected-branch --owner <value> --repo <value> --branch <value>`

#### `gthb api repos list-collaborators` [#gthb-api-repos-list-collaborators]

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

```sh
gthb api repos list-collaborators [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-collaborators --owner <value> --repo <value>`

#### `gthb api repos check-collaborator` [#gthb-api-repos-check-collaborator]

Check if a user is a repository collaborator — read (GET /repos/{owner}/{repo}/collaborators/{username})

```sh
gthb api repos check-collaborator [options]
```

| Option | What 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` [#gthb-api-repos-get-collaborator-permission-level]

Get repository permissions for a user — read (GET /repos/{owner}/{repo}/collaborators/{username}/permission)

```sh
gthb api repos get-collaborator-permission-level [options]
```

| Option | What 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` [#gthb-api-repos-list-commit-comments-for-repo]

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

```sh
gthb api repos list-commit-comments-for-repo [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-get-commit-comment]

Get a commit comment — read (GET /repos/{owner}/{repo}/comments/{comment_id})

```sh
gthb api repos get-commit-comment [options]
```

| Option | What 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` [#gthb-api-repos-list-commits]

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

```sh
gthb api repos list-commits [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-list-branches-for-head-commit]

List branches for HEAD commit — read (GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head)

```sh
gthb api repos list-branches-for-head-commit [options]
```

| Option | What 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` [#gthb-api-repos-list-comments-for-commit]

List commit comments — read (GET /repos/{owner}/{repo}/commits/{commit_sha}/comments)

```sh
gthb api repos list-comments-for-commit [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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)

```sh
gthb api repos list-pull-requests-associated-with-commit [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-get-commit]

Get a commit — read (GET /repos/{owner}/{repo}/commits/{ref})

```sh
gthb api repos get-commit [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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](https://git-scm.com/book/en/v2/Git-Internals-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` [#gthb-api-repos-get-combined-status-for-ref]

Get the combined status for a specific reference — read (GET /repos/{owner}/{repo}/commits/{ref}/status)

```sh
gthb api repos get-combined-status-for-ref [options]
```

| Option | What 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](https://git-scm.com/book/en/v2/Git-Internals-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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-list-commit-statuses-for-ref]

List commit statuses for a reference — read (GET /repos/{owner}/{repo}/commits/{ref}/statuses)

```sh
gthb api repos list-commit-statuses-for-ref [options]
```

| Option | What 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](https://git-scm.com/book/en/v2/Git-Internals-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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-get-community-profile-metrics]

Get community profile metrics — read (GET /repos/{owner}/{repo}/community/profile)

```sh
gthb api repos get-community-profile-metrics [options]
```

| Option | What 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` [#gthb-api-repos-compare-commits]

Compare two commits — read (GET /repos/{owner}/{repo}/compare/{basehead})

```sh
gthb api repos compare-commits [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-list-contributors]

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

```sh
gthb api repos list-contributors [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-contributors --owner <value> --repo <value>`

#### `gthb api repos list-deployments` [#gthb-api-repos-list-deployments]

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

```sh
gthb api repos list-deployments [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-deployments --owner <value> --repo <value>`

#### `gthb api repos get-deployment` [#gthb-api-repos-get-deployment]

Get a deployment — read (GET /repos/{owner}/{repo}/deployments/{deployment_id})

```sh
gthb api repos get-deployment [options]
```

| Option | What 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` [#gthb-api-repos-list-deployment-statuses]

List deployment statuses — read (GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses)

```sh
gthb api repos list-deployment-statuses [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-get-deployment-status]

Get a deployment status — read (GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id})

```sh
gthb api repos get-deployment-status [options]
```

| Option | What 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` [#gthb-api-repos-get-all-environments]

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

```sh
gthb api repos get-all-environments [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api repos get-all-environments --owner <value> --repo <value>`

#### `gthb api repos get-environment` [#gthb-api-repos-get-environment]

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

```sh
gthb api repos get-environment [options]
```

| Option | What 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` [#gthb-api-repos-list-deployment-branch-policies]

List deployment branch policies — read (GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies)

```sh
gthb api repos list-deployment-branch-policies [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#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})

```sh
gthb api repos get-deployment-branch-policy [options]
```

| Option | What 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` [#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)

```sh
gthb api repos get-all-deployment-protection-rules [options]
```

| Option | What 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` [#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)

```sh
gthb api repos list-custom-deployment-rule-integrations [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#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})

```sh
gthb api repos get-custom-deployment-protection-rule [options]
```

| Option | What 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` [#gthb-api-repos-list-forks]

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

```sh
gthb api repos list-forks [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-forks --owner <value> --repo <value>`

#### `gthb api repos get-hash-algorithm` [#gthb-api-repos-get-hash-algorithm]

Get the hash algorithm for a repository — read (GET /repos/{owner}/{repo}/hash-algorithm)

```sh
gthb api repos get-hash-algorithm [options]
```

| Option | What 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` [#gthb-api-repos-check-immutable-releases]

Check if immutable releases are enabled for a repository — read (GET /repos/{owner}/{repo}/immutable-releases)

```sh
gthb api repos check-immutable-releases [options]
```

| Option | What 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` [#gthb-api-repos-list-invitations]

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

```sh
gthb api repos list-invitations [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-invitations --owner <value> --repo <value>`

#### `gthb api repos list-issue-types` [#gthb-api-repos-list-issue-types]

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

```sh
gthb api repos list-issue-types [options]
```

| Option | What 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` [#gthb-api-repos-list-deploy-keys]

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

```sh
gthb api repos list-deploy-keys [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-deploy-keys --owner <value> --repo <value>`

#### `gthb api repos get-deploy-key` [#gthb-api-repos-get-deploy-key]

Get a deploy key — read (GET /repos/{owner}/{repo}/keys/{key_id})

```sh
gthb api repos get-deploy-key [options]
```

| Option | What 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` [#gthb-api-repos-list-languages]

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

```sh
gthb api repos list-languages [options]
```

| Option | What 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` [#gthb-api-repos-get-pages]

Get a GitHub Pages site — read (GET /repos/{owner}/{repo}/pages)

```sh
gthb api repos get-pages [options]
```

| Option | What 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` [#gthb-api-repos-list-pages-builds]

List GitHub Pages builds — read (GET /repos/{owner}/{repo}/pages/builds)

```sh
gthb api repos list-pages-builds [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-get-latest-pages-build]

Get latest Pages build — read (GET /repos/{owner}/{repo}/pages/builds/latest)

```sh
gthb api repos get-latest-pages-build [options]
```

| Option | What 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` [#gthb-api-repos-get-pages-build]

Get GitHub Pages build — read (GET /repos/{owner}/{repo}/pages/builds/{build_id})

```sh
gthb api repos get-pages-build [options]
```

| Option | What 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` [#gthb-api-repos-get-pages-deployment]

Get the status of a GitHub Pages deployment — read (GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id})

```sh
gthb api repos get-pages-deployment [options]
```

| Option | What 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` [#gthb-api-repos-get-pages-health-check]

Get a DNS health check for GitHub Pages — read (GET /repos/{owner}/{repo}/pages/health)

```sh
gthb api repos get-pages-health-check [options]
```

| Option | What 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` [#gthb-api-repos-list-planning-statuses]

List planning statuses for a repository — read (GET /repos/{owner}/{repo}/planning-statuses)

```sh
gthb api repos list-planning-statuses [options]
```

| Option | What 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` [#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)

```sh
gthb api repos check-private-vulnerability-reporting [options]
```

| Option | What 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` [#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)

```sh
gthb api repos custom-properties-for-repos-get-repository-values [options]
```

| Option | What 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` [#gthb-api-repos-list-releases]

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

```sh
gthb api repos list-releases [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-releases --owner <value> --repo <value>`

#### `gthb api repos get-release-asset` [#gthb-api-repos-get-release-asset]

Get a release asset — read (GET /repos/{owner}/{repo}/releases/assets/{asset_id})

```sh
gthb api repos get-release-asset [options]
```

| Option | What 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` [#gthb-api-repos-get-latest-release]

Get the latest release — read (GET /repos/{owner}/{repo}/releases/latest)

```sh
gthb api repos get-latest-release [options]
```

| Option | What 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` [#gthb-api-repos-get-release-by-tag]

Get a release by tag name — read (GET /repos/{owner}/{repo}/releases/tags/{tag})

```sh
gthb api repos get-release-by-tag [options]
```

| Option | What 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` [#gthb-api-repos-get-release]

Get a release — read (GET /repos/{owner}/{repo}/releases/{release_id})

```sh
gthb api repos get-release [options]
```

| Option | What 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` [#gthb-api-repos-list-release-assets]

List release assets — read (GET /repos/{owner}/{repo}/releases/{release_id}/assets)

```sh
gthb api repos list-release-assets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-get-branch-rules]

Get rules for a branch — read (GET /repos/{owner}/{repo}/rules/branches/{branch})

```sh
gthb api repos get-branch-rules [options]
```

| Option | What 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](https://docs.github.com/graphql). |
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-get-repo-rulesets]

Get all repository rulesets — read (GET /repos/{owner}/{repo}/rulesets)

```sh
gthb api repos get-repo-rulesets [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-get-repo-rule-suites]

List repository rule suites — read (GET /repos/{owner}/{repo}/rulesets/rule-suites)

```sh
gthb api repos get-repo-rule-suites [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-get-repo-rule-suite]

Get a repository rule suite — read (GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id})

```sh
gthb api repos get-repo-rule-suite [options]
```

| Option | What 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` [#gthb-api-repos-get-repo-ruleset]

Get a repository ruleset — read (GET /repos/{owner}/{repo}/rulesets/{ruleset_id})

```sh
gthb api repos get-repo-ruleset [options]
```

| Option | What 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` [#gthb-api-repos-get-repo-ruleset-history]

Get repository ruleset history — read (GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history)

```sh
gthb api repos get-repo-ruleset-history [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-repos-get-repo-ruleset-version]

Get repository ruleset version — read (GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id})

```sh
gthb api repos get-repo-ruleset-version [options]
```

| Option | What 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` [#gthb-api-repos-get-code-frequency-stats]

Get the weekly commit activity — read (GET /repos/{owner}/{repo}/stats/code_frequency)

```sh
gthb api repos get-code-frequency-stats [options]
```

| Option | What 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` [#gthb-api-repos-get-commit-activity-stats]

Get the last year of commit activity — read (GET /repos/{owner}/{repo}/stats/commit_activity)

```sh
gthb api repos get-commit-activity-stats [options]
```

| Option | What 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` [#gthb-api-repos-get-contributors-stats]

Get all contributor commit activity — read (GET /repos/{owner}/{repo}/stats/contributors)

```sh
gthb api repos get-contributors-stats [options]
```

| Option | What 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` [#gthb-api-repos-get-participation-stats]

Get the weekly commit count — read (GET /repos/{owner}/{repo}/stats/participation)

```sh
gthb api repos get-participation-stats [options]
```

| Option | What 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` [#gthb-api-repos-get-punch-card-stats]

Get the hourly commit count for each day — read (GET /repos/{owner}/{repo}/stats/punch_card)

```sh
gthb api repos get-punch-card-stats [options]
```

| Option | What 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` [#gthb-api-repos-list-tags]

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

```sh
gthb api repos list-tags [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-tags --owner <value> --repo <value>`

#### `gthb api repos list-teams` [#gthb-api-repos-list-teams]

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

```sh
gthb api repos list-teams [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-teams --owner <value> --repo <value>`

#### `gthb api repos get-all-topics` [#gthb-api-repos-get-all-topics]

Get all repository topics — read (GET /repos/{owner}/{repo}/topics)

```sh
gthb api repos get-all-topics [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api repos get-all-topics --owner <value> --repo <value>`

#### `gthb api repos get-clones` [#gthb-api-repos-get-clones]

Get repository clones — read (GET /repos/{owner}/{repo}/traffic/clones)

```sh
gthb api repos get-clones [options]
```

| Option | What 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` [#gthb-api-repos-get-top-paths]

Get top referral paths — read (GET /repos/{owner}/{repo}/traffic/popular/paths)

```sh
gthb api repos get-top-paths [options]
```

| Option | What 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` [#gthb-api-repos-get-top-referrers]

Get top referral sources — read (GET /repos/{owner}/{repo}/traffic/popular/referrers)

```sh
gthb api repos get-top-referrers [options]
```

| Option | What 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` [#gthb-api-repos-get-views]

Get page views — read (GET /repos/{owner}/{repo}/traffic/views)

```sh
gthb api repos get-views [options]
```

| Option | What 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` [#gthb-api-repos-check-vulnerability-alerts]

Check if vulnerability alerts are enabled for a repository — read (GET /repos/{owner}/{repo}/vulnerability-alerts)

```sh
gthb api repos check-vulnerability-alerts [options]
```

| Option | What 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` [#gthb-api-repos-list-public]

List public repositories — read (GET /repositories)

```sh
gthb api repos list-public [options]
```

| Option | What 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` [#gthb-api-repos-list-for-authenticated-user]

List repositories for the authenticated user — read (GET /user/repos)

```sh
gthb api repos list-for-authenticated-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--since <value>` | Only show repositories updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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` [#gthb-api-repos-list-invitations-for-authenticated-user]

List repository invitations for the authenticated user — read (GET /user/repository_invitations)

```sh
gthb api repos list-invitations-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-invitations-for-authenticated-user`

#### `gthb api repos list-for-user` [#gthb-api-repos-list-for-user]

List repositories for a user — read (GET /users/{username}/repos)

```sh
gthb api repos list-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api repos list-for-user --username <value>`

### `gthb api secret-scanning` [#gthb-api-secret-scanning]

the secret-scanning operations

#### `gthb api secret-scanning list-alerts-for-org` [#gthb-api-secret-scanning-list-alerts-for-org]

List secret scanning alerts for an organization — read (GET /orgs/{org}/secret-scanning/alerts)

```sh
gthb api secret-scanning list-alerts-for-org [options]
```

| Option | What 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](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" 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](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). 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` [#gthb-api-secret-scanning-list-org-custom-patterns]

List organization custom patterns — read (GET /orgs/{org}/secret-scanning/custom-patterns)

```sh
gthb api secret-scanning list-org-custom-patterns [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-secret-scanning-list-org-pattern-configs]

List organization pattern configurations — read (GET /orgs/{org}/secret-scanning/pattern-configurations)

```sh
gthb api secret-scanning list-org-pattern-configs [options]
```

| Option | What 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` [#gthb-api-secret-scanning-list-alerts-for-repo]

List secret scanning alerts for a repository — read (GET /repos/{owner}/{repo}/secret-scanning/alerts)

```sh
gthb api secret-scanning list-alerts-for-repo [options]
```

| Option | What 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](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" 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](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). 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` [#gthb-api-secret-scanning-get-alert]

Get a secret scanning alert — read (GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number})

```sh
gthb api secret-scanning get-alert [options]
```

| Option | What 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` [#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)

```sh
gthb api secret-scanning list-locations-for-alert [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-secret-scanning-list-repo-custom-patterns]

List repository custom patterns — read (GET /repos/{owner}/{repo}/secret-scanning/custom-patterns)

```sh
gthb api secret-scanning list-repo-custom-patterns [options]
```

| Option | What 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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-secret-scanning-get-scan-history]

Get secret scanning scan history for a repository — read (GET /repos/{owner}/{repo}/secret-scanning/scan-history)

```sh
gthb api secret-scanning get-scan-history [options]
```

| Option | What 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` [#gthb-api-hosted-compute]

the hosted-compute operations

#### `gthb api hosted-compute list-network-configurations-for-org` [#gthb-api-hosted-compute-list-network-configurations-for-org]

List hosted compute network configurations for an organization — read (GET /orgs/{org}/settings/network-configurations)

```sh
gthb api hosted-compute list-network-configurations-for-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#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})

```sh
gthb api hosted-compute get-network-configuration-for-org [options]
```

| Option | What 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` [#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})

```sh
gthb api hosted-compute get-network-settings-for-org [options]
```

| Option | What 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` [#gthb-api-teams]

the teams operations

#### `gthb api teams list` [#gthb-api-teams-list]

List teams — read (GET /orgs/{org}/teams)

```sh
gthb api teams list [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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?](https://docs.github.com/admin/concepts/enterprise-fundamentals/teams-in-an-enterprise#what-kind-of-team-should-i-use)". |

**Example:** `gthb personal api teams list --org <value>`

#### `gthb api teams get-by-name` [#gthb-api-teams-get-by-name]

Get a team by name — read (GET /orgs/{org}/teams/{team_slug})

```sh
gthb api teams get-by-name [options]
```

| Option | What 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` [#gthb-api-teams-list-pending-invitations-in-org]

List pending team invitations — read (GET /orgs/{org}/teams/{team_slug}/invitations)

```sh
gthb api teams list-pending-invitations-in-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-teams-list-members-in-org]

List team members — read (GET /orgs/{org}/teams/{team_slug}/members)

```sh
gthb api teams list-members-in-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-teams-get-membership-for-user-in-org]

Get team membership for a user — read (GET /orgs/{org}/teams/{team_slug}/memberships/{username})

```sh
gthb api teams get-membership-for-user-in-org [options]
```

| Option | What 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` [#gthb-api-teams-list-repos-in-org]

List team repositories — read (GET /orgs/{org}/teams/{team_slug}/repos)

```sh
gthb api teams list-repos-in-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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})

```sh
gthb api teams check-permissions-for-repo-in-org [options]
```

| Option | What 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` [#gthb-api-teams-list-child-in-org]

List child teams — read (GET /orgs/{org}/teams/{team_slug}/teams)

```sh
gthb api teams list-child-in-org [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-teams-get-legacy]

Get a team (Legacy) — read (GET /teams/{team_id})

```sh
gthb api teams get-legacy [options]
```

| Option | What 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` [#gthb-api-teams-list-pending-invitations-legacy]

List pending team invitations (Legacy) — read (GET /teams/{team_id}/invitations)

```sh
gthb api teams list-pending-invitations-legacy [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api teams list-pending-invitations-legacy --team-id <value>`

#### `gthb api teams list-members-legacy` [#gthb-api-teams-list-members-legacy]

List team members (Legacy) — read (GET /teams/{team_id}/members)

```sh
gthb api teams list-members-legacy [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api teams list-members-legacy --team-id <value>`

#### `gthb api teams get-member-legacy` [#gthb-api-teams-get-member-legacy]

Get team member (Legacy) — read (GET /teams/{team_id}/members/{username})

```sh
gthb api teams get-member-legacy [options]
```

| Option | What 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` [#gthb-api-teams-get-membership-for-user-legacy]

Get team membership for a user (Legacy) — read (GET /teams/{team_id}/memberships/{username})

```sh
gthb api teams get-membership-for-user-legacy [options]
```

| Option | What 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` [#gthb-api-teams-list-repos-legacy]

List team repositories (Legacy) — read (GET /teams/{team_id}/repos)

```sh
gthb api teams list-repos-legacy [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-teams-check-permissions-for-repo-legacy]

Check team permissions for a repository (Legacy) — read (GET /teams/{team_id}/repos/{owner}/{repo})

```sh
gthb api teams check-permissions-for-repo-legacy [options]
```

| Option | What 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` [#gthb-api-teams-list-child-legacy]

List child teams (Legacy) — read (GET /teams/{team_id}/teams)

```sh
gthb api teams list-child-legacy [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api teams list-child-legacy --team-id <value>`

#### `gthb api teams list-for-authenticated-user` [#gthb-api-teams-list-for-authenticated-user]

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

```sh
gthb api teams list-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api teams list-for-authenticated-user`

### `gthb api rate-limit-get` [#gthb-api-rate-limit-get]

Get rate limit status for the authenticated user — read (GET /rate_limit)

```sh
gthb api rate-limit-get
```

**Example:** `gthb personal api rate-limit-get`

### `gthb api checks` [#gthb-api-checks]

the checks operations

#### `gthb api checks get` [#gthb-api-checks-get]

Get a check run — read (GET /repos/{owner}/{repo}/check-runs/{check_run_id})

```sh
gthb api checks get [options]
```

| Option | What 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` [#gthb-api-checks-get-suite]

Get a check suite — read (GET /repos/{owner}/{repo}/check-suites/{check_suite_id})

```sh
gthb api checks get-suite [options]
```

| Option | What 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` [#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)

```sh
gthb api checks list-for-suite [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-checks-list-for-ref]

List check runs for a Git reference — read (GET /repos/{owner}/{repo}/commits/{ref}/check-runs)

```sh
gthb api checks list-for-ref [options]
```

| Option | What 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](https://git-scm.com/book/en/v2/Git-Internals-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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--app-id <value>` | app_id. |
| `--all` | read 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` [#gthb-api-checks-list-suites-for-ref]

List check suites for a Git reference — read (GET /repos/{owner}/{repo}/commits/{ref}/check-suites)

```sh
gthb api checks list-suites-for-ref [options]
```

| Option | What 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](https://git-scm.com/book/en/v2/Git-Internals-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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read 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` [#gthb-api-code-quality]

the code-quality operations

#### `gthb api code-quality list-findings-for-repo` [#gthb-api-code-quality-list-findings-for-repo]

List code quality findings for a repository — read (GET /repos/{owner}/{repo}/code-quality/findings)

```sh
gthb api code-quality list-findings-for-repo [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-code-quality-get-finding]

Get a code quality finding — read (GET /repos/{owner}/{repo}/code-quality/findings/{finding_number})

```sh
gthb api code-quality get-finding [options]
```

| Option | What 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` [#gthb-api-code-quality-get-setup]

Get a code quality setup configuration — read (GET /repos/{owner}/{repo}/code-quality/setup)

```sh
gthb api code-quality get-setup [options]
```

| Option | What 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` [#gthb-api-reactions]

the reactions operations

#### `gthb api reactions list-for-commit-comment` [#gthb-api-reactions-list-for-commit-comment]

List reactions for a commit comment — read (GET /repos/{owner}/{repo}/comments/{comment_id}/reactions)

```sh
gthb api reactions list-for-commit-comment [options]
```

| Option | What 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](https://docs.github.com/rest/reactions/reactions#about-reactions). 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-reactions-list-for-issue-comment]

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

```sh
gthb api reactions list-for-issue-comment [options]
```

| Option | What 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](https://docs.github.com/rest/reactions/reactions#about-reactions). 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-reactions-list-for-issue]

List reactions for an issue — read (GET /repos/{owner}/{repo}/issues/{issue_number}/reactions)

```sh
gthb api reactions list-for-issue [options]
```

| Option | What 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](https://docs.github.com/rest/reactions/reactions#about-reactions). 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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)

```sh
gthb api reactions list-for-pull-request-review-comment [options]
```

| Option | What 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](https://docs.github.com/rest/reactions/reactions#about-reactions). 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-reactions-list-for-release]

List reactions for a release — read (GET /repos/{owner}/{repo}/releases/{release_id}/reactions)

```sh
gthb api reactions list-for-release [options]
```

| Option | What 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](https://docs.github.com/rest/reactions/reactions#about-reactions). 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-dependency-graph]

the dependency-graph operations

#### `gthb api dependency-graph diff-range` [#gthb-api-dependency-graph-diff-range]

Get a diff of the dependencies between commits — read (GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead})

```sh
gthb api dependency-graph diff-range [options]
```

| Option | What 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` [#gthb-api-dependency-graph-export-sbom]

Export a software bill of materials (SBOM) for a repository. — read (GET /repos/{owner}/{repo}/dependency-graph/sbom)

```sh
gthb api dependency-graph export-sbom [options]
```

| Option | What 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` [#gthb-api-pulls]

the pulls operations

#### `gthb api pulls list` [#gthb-api-pulls-list]

List pull requests — read (GET /repos/{owner}/{repo}/pulls)

```sh
gthb api pulls list [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api pulls list --owner <value> --repo <value>`

#### `gthb api pulls list-review-comments-for-repo` [#gthb-api-pulls-list-review-comments-for-repo]

List review comments in a repository — read (GET /repos/{owner}/{repo}/pulls/comments)

```sh
gthb api pulls list-review-comments-for-repo [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-pulls-get-review-comment]

Get a review comment for a pull request — read (GET /repos/{owner}/{repo}/pulls/comments/{comment_id})

```sh
gthb api pulls get-review-comment [options]
```

| Option | What 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` [#gthb-api-pulls-get]

Get a pull request — read (GET /repos/{owner}/{repo}/pulls/{pull_number})

```sh
gthb api pulls get [options]
```

| Option | What 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` [#gthb-api-pulls-list-review-comments]

List review comments on a pull request — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/comments)

```sh
gthb api pulls list-review-comments [options]
```

| Option | What 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](https://en.wikipedia.org/wiki/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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-pulls-list-commits]

List commits on a pull request — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/commits)

```sh
gthb api pulls list-commits [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-pulls-list-files]

List pull requests files — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/files)

```sh
gthb api pulls list-files [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-pulls-check-if-merged]

Check if a pull request has been merged — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/merge)

```sh
gthb api pulls check-if-merged [options]
```

| Option | What 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` [#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})

```sh
gthb api pulls get-merge-async-result [options]
```

| Option | What 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` [#gthb-api-pulls-list-requested-reviewers]

Get all requested reviewers for a pull request — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers)

```sh
gthb api pulls list-requested-reviewers [options]
```

| Option | What 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` [#gthb-api-pulls-list-reviews]

List reviews for a pull request — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews)

```sh
gthb api pulls list-reviews [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-pulls-get-review]

Get a review for a pull request — read (GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id})

```sh
gthb api pulls get-review [options]
```

| Option | What 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` [#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)

```sh
gthb api pulls list-comments-for-review [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-pulls-pull-request-stacks-list]

List pull request stacks — read (GET /repos/{owner}/{repo}/stacks)

```sh
gthb api pulls pull-request-stacks-list [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-pulls-pull-request-stacks-get]

Get a pull request stack — read (GET /repos/{owner}/{repo}/stacks/{stack_number})

```sh
gthb api pulls pull-request-stacks-get [options]
```

| Option | What 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>`

### `gthb api search` [#gthb-api-search]

the search operations

#### `gthb api search commits` [#gthb-api-search-commits]

Search commits — read (GET /search/commits)

```sh
gthb api search commits [options]
```

| Option | What 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](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching commits](https://docs.github.com/search-github/searching-on-github/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](https://docs.github.com/rest/search/search#ranking-search-results). |
| `--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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api search commits --q <value>`

#### `gthb api search issues-and-pull-requests` [#gthb-api-search-issues-and-pull-requests]

Search issues and pull requests — read (GET /search/issues)

```sh
gthb api search issues-and-pull-requests [options]
```

| Option | What 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](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching issues and pull requests](https://docs.github.com/search-github/searching-on-github/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](https://docs.github.com/rest/search/search#ranking-search-results). |
| `--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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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. |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api search issues-and-pull-requests --q <value>`

#### `gthb api search labels` [#gthb-api-search-labels]

Search labels — read (GET /search/labels)

```sh
gthb api search labels [options]
```

| Option | What 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](https://docs.github.com/rest/search/search#constructing-a-search-query). |
| `--sort <value>` | Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results). |
| `--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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api search labels --repository-id <value> --q <value>`

#### `gthb api search repos` [#gthb-api-search-repos]

Search repositories — read (GET /search/repositories)

```sh
gthb api search repos [options]
```

| Option | What 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](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching for repositories](https://docs.github.com/articles/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](https://docs.github.com/rest/search/search#ranking-search-results). |
| `--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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api search repos --q <value>`

#### `gthb api search topics` [#gthb-api-search-topics]

Search topics — read (GET /search/topics)

```sh
gthb api search topics [options]
```

| Option | What 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](https://docs.github.com/rest/search/search#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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api search topics --q <value>`

#### `gthb api search users` [#gthb-api-search-users]

Search users — read (GET /search/users)

```sh
gthb api search users [options]
```

| Option | What 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](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching users](https://docs.github.com/search-github/searching-on-github/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](https://docs.github.com/rest/search/search#ranking-search-results). |
| `--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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--all` | read every page, as the API pages it. |

**Example:** `gthb personal api search users --q <value>`

### `gthb api users` [#gthb-api-users]

the users operations

#### `gthb api users get-authenticated` [#gthb-api-users-get-authenticated]

Get the authenticated user — read (GET /user)

```sh
gthb api users get-authenticated
```

**Example:** `gthb personal api users get-authenticated`

#### `gthb api users list-blocked-by-authenticated-user` [#gthb-api-users-list-blocked-by-authenticated-user]

List users blocked by the authenticated user — read (GET /user/blocks)

```sh
gthb api users list-blocked-by-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api users list-blocked-by-authenticated-user`

#### `gthb api users check-blocked` [#gthb-api-users-check-blocked]

Check if a user is blocked by the authenticated user — read (GET /user/blocks/{username})

```sh
gthb api users check-blocked [options]
```

| Option | What 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` [#gthb-api-users-list-emails-for-authenticated-user]

List email addresses for the authenticated user — read (GET /user/emails)

```sh
gthb api users list-emails-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api users list-emails-for-authenticated-user`

#### `gthb api users list-followers-for-authenticated-user` [#gthb-api-users-list-followers-for-authenticated-user]

List followers of the authenticated user — read (GET /user/followers)

```sh
gthb api users list-followers-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api users list-followers-for-authenticated-user`

#### `gthb api users list-followed-by-authenticated-user` [#gthb-api-users-list-followed-by-authenticated-user]

List the people the authenticated user follows — read (GET /user/following)

```sh
gthb api users list-followed-by-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-users-check-person-is-followed-by-authenticated]

Check if a person is followed by the authenticated user — read (GET /user/following/{username})

```sh
gthb api users check-person-is-followed-by-authenticated [options]
```

| Option | What 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` [#gthb-api-users-list-gpg-keys-for-authenticated-user]

List GPG keys for the authenticated user — read (GET /user/gpg_keys)

```sh
gthb api users list-gpg-keys-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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})

```sh
gthb api users get-gpg-key-for-authenticated-user [options]
```

| Option | What 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` [#gthb-api-users-list-issue-fields-for-authenticated-user]

List issue fields — read (GET /user/issue-fields)

```sh
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` [#gthb-api-users-list-issue-types-for-authenticated-user]

List issue types — read (GET /user/issue-types)

```sh
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` [#gthb-api-users-list-public-ssh-keys-for-authenticated-user]

List public SSH keys for the authenticated user — read (GET /user/keys)

```sh
gthb api users list-public-ssh-keys-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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})

```sh
gthb api users get-public-ssh-key-for-authenticated-user [options]
```

| Option | What 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` [#gthb-api-users-list-public-emails-for-authenticated-user]

List public email addresses for the authenticated user — read (GET /user/public_emails)

```sh
gthb api users list-public-emails-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-users-list-social-accounts-for-authenticated-user]

List social accounts for the authenticated user — read (GET /user/social_accounts)

```sh
gthb api users list-social-accounts-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-users-list-ssh-signing-keys-for-authenticated-user]

List SSH signing keys for the authenticated user — read (GET /user/ssh_signing_keys)

```sh
gthb api users list-ssh-signing-keys-for-authenticated-user [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#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})

```sh
gthb api users get-ssh-signing-key-for-authenticated-user [options]
```

| Option | What 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` [#gthb-api-users-get-by-id]

Get a user using their ID — read (GET /user/{account_id})

```sh
gthb api users get-by-id [options]
```

| Option | What it does |
|---|---|
| `--account-id <value>` | account_id parameter. |

**Example:** `gthb personal api users get-by-id --account-id <value>`

#### `gthb api users list` [#gthb-api-users-list]

List users — read (GET /users)

```sh
gthb api users list [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api users list`

#### `gthb api users get-by-username` [#gthb-api-users-get-by-username]

Get a user — read (GET /users/{username})

```sh
gthb api users get-by-username [options]
```

| Option | What 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` [#gthb-api-users-list-attestations]

List attestations — read (GET /users/{username}/attestations/{subject_digest})

```sh
gthb api users list-attestations [options]
```

| Option | What it does |
|---|---|
| `--per-page <value>` | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--before <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |
| `--after <value>` | A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-users-list-followers-for-user]

List followers of a user — read (GET /users/{username}/followers)

```sh
gthb api users list-followers-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api users list-followers-for-user --username <value>`

#### `gthb api users list-following-for-user` [#gthb-api-users-list-following-for-user]

List the people a user follows — read (GET /users/{username}/following)

```sh
gthb api users list-following-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api users list-following-for-user --username <value>`

#### `gthb api users check-following-for-user` [#gthb-api-users-check-following-for-user]

Check if a user follows another user — read (GET /users/{username}/following/{target_user})

```sh
gthb api users check-following-for-user [options]
```

| Option | What 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` [#gthb-api-users-list-gpg-keys-for-user]

List GPG keys for a user — read (GET /users/{username}/gpg_keys)

```sh
gthb api users list-gpg-keys-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-users-get-context-for-user]

Get contextual information for a user — read (GET /users/{username}/hovercard)

```sh
gthb api users get-context-for-user [options]
```

| Option | What 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` [#gthb-api-users-list-public-keys-for-user]

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

```sh
gthb api users list-public-keys-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-users-list-social-accounts-for-user]

List social accounts for a user — read (GET /users/{username}/social_accounts)

```sh
gthb api users list-social-accounts-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/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` [#gthb-api-users-list-ssh-signing-keys-for-user]

List SSH signing keys for a user — read (GET /users/{username}/ssh_signing_keys)

```sh
gthb api users list-ssh-signing-keys-for-user [options]
```

| Option | What 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](https://docs.github.com/rest/using-the-rest-api/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](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).". |

**Example:** `gthb personal api users list-ssh-signing-keys-for-user --username <value>`

## `gthb repos` [#gthb-repos]

the GitHub repositories this profile copies

### `gthb repos add` [#gthb-repos-add]

choose a repository for sync to copy; one profile reads one owner's repositories

**Changes something on this computer only.**

```sh
gthb repos add <repo>
```

| Argument | | What it is |
|---|---|---|
| `repo` | required | the 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` [#gthb-repos-list]

list the repositories sync copies

```sh
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` [#gthb-repos-show]

a chosen repository as the last sync saw it, with its topics and README

```sh
gthb repos show <repo>
```

| Argument | | What it is |
|---|---|---|
| `repo` | required | the 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` [#gthb-repos-remove]

stop copying a repository; its issues leave lists and search until added again

**Changes something on this computer only.**

```sh
gthb repos remove <repo>
```

| Argument | | What it is |
|---|---|---|
| `repo` | required | the 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` [#gthb-folders]

the repositories whose README sync copies; repos add and repos remove choose them

### `gthb folders list` [#gthb-folders-list]

list the folder ids sync imports

```sh
gthb folders list [query]
```

| Argument | | What it is |
|---|---|---|
| `query` | optional | field: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` [#gthb-status]

show the last sync, imported documents and pending work

```sh
gthb status
```

**Example:** `gthb personal status`

## `gthb documents` [#gthb-documents]

read the READMEs synced to this computer

### `gthb documents list` [#gthb-documents-list]

list the synced READMEs with their repositories

```sh
gthb documents list [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | What 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` [#gthb-documents-show]

show an imported document's text, tabs and metadata

```sh
gthb documents show <document>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | a README's id (readme-<repository id>) or a search hit's document: ref. |

**Example:** `gthb personal documents show DOC_ID`, `gthb personal documents show document:42 --offline`

### `gthb documents export` [#gthb-documents-export]

write an imported document to a new Markdown file

**Changes something on this computer only.**

```sh
gthb documents export <document> [options]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | a README's id (readme-<repository id>) or a search hit's document: ref. |

| Option | What 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` [#gthb-documents-history]

list the versions of a document kept in the local copy, or show one with --revision

```sh
gthb documents history <document> [options]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | a README's id (readme-<repository id>) or a search hit's document: ref. |

| Option | What 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` [#gthb-documents-context]

show a document with its tags, relationships, notes, memories and editors

```sh
gthb documents context <document>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |

**Example:** `gthb personal documents context DOC_ID`

## `gthb changes` [#gthb-changes]

list the documents the sync added, changed, removed or brought back, newest first

```sh
gthb changes [options]
```

| Option | What 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`

## `gthb search` [#gthb-search]

search imported documents by words, and by meaning when indexed

```sh
gthb search <query> [options]
```

| Argument | | What it is |
|---|---|---|
| `query` | required | words to look for, and fields such as tag: and date: that every hit must match. |

| Option | What it does |
|---|---|
| `--limit <n>` | how many results to return. Default: `20`. |
| `--page <n>` | which page to return. Default: `1`. |
| `--exact` | match the words exactly: no word forms, no meaning. |

**Example:** `gthb personal search budget`, `gthb personal search "quarterly plan" --exact --limit 5`

## `gthb catalog` [#gthb-catalog]

browse stored GitHub files and folders offline

### `gthb catalog import` [#gthb-catalog-import]

put cached file and folder metadata into the shared database

**Changes something on this computer only.**

```sh
gthb catalog import
```

**Example:** `gthb personal catalog import --offline`

### `gthb catalog show` [#gthb-catalog-show]

show stored metadata and the stable file or folder reference

```sh
gthb catalog show <file>
```

| Argument | | What it is |
|---|---|---|
| `file` | required | GitHub 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` [#gthb-catalog-list]

list cached files and folders using metadata queries

```sh
gthb catalog list [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `query` | optional | metadata query: kind, mime, name, parent, person, tag; AND, OR, NOT. |

| Option | What 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`

### `gthb catalog search` [#gthb-catalog-search]

search cached names, descriptions, types and observed people

```sh
gthb catalog search <query> [options]
```

| Argument | | What it is |
|---|---|---|
| `query` | required | metadata query: kind, mime, name, parent, person, tag; AND, OR, NOT. |

| Option | What 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` [#gthb-catalog-tree]

show the cached hierarchy below a folder or all selected roots

```sh
gthb catalog tree [folder] [options]
```

| Argument | | What it is |
|---|---|---|
| `folder` | optional | GitHub folder id or URL; defaults to the explicitly selected profile's roots. |

| Option | What 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` [#gthb-catalog-tags]

add owner tags to cached files or folders

#### `gthb catalog tags list` [#gthb-catalog-tags-list]

list local tags on a cached file or folder

```sh
gthb catalog tags list <file> [query]
```

| Argument | | What it is |
|---|---|---|
| `file` | required | GitHub file or folder id, or its URL. |
| `query` | optional | field: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` [#gthb-catalog-tags-add]

add local tags on a cached file or folder

**Changes something on this computer only.**

```sh
gthb catalog tags add <file> <tags>
```

| Argument | | What it is |
|---|---|---|
| `file` | required | GitHub file or folder id, or its URL. |
| `tags` | required | local tag names. |

**Example:** `gthb personal catalog tags add FOLDER_ID project --offline`

#### `gthb catalog tags remove` [#gthb-catalog-tags-remove]

remove local tags on a cached file or folder

**Changes something on this computer only.**

```sh
gthb catalog tags remove <file> <tags>
```

| Argument | | What it is |
|---|---|---|
| `file` | required | GitHub file or folder id, or its URL. |
| `tags` | required | local tag names. |

**Example:** `gthb personal catalog tags remove FOLDER_ID project --offline`

## `gthb tags` [#gthb-tags]

label imported documents; labels survive a sync

### `gthb tags list` [#gthb-tags-list]

list a document's tags

```sh
gthb tags list <document> [query]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `query` | optional | field: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` [#gthb-tags-add]

tag a document

**Changes something on this computer only.**

```sh
gthb tags add <document> <tags>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `tags` | required | one or more tags. |

**Example:** `gthb personal tags add DOC_ID budget q3`

### `gthb tags remove` [#gthb-tags-remove]

untag a document

**Changes something on this computer only.**

```sh
gthb tags remove <document> <tags>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `tags` | required | one or more tags. |

**Example:** `gthb personal tags remove DOC_ID budget q3`

## `gthb relationships` [#gthb-relationships]

connect a document to people, projects, notes and other references

### `gthb relationships list` [#gthb-relationships-list]

list a document's relationships

```sh
gthb relationships list <document> [query]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `query` | optional | field: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` [#gthb-relationships-add]

connect a document to another reference

**Changes something on this computer only.**

```sh
gthb relationships add <document> <reference> [options]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `reference` | required | what it connects to, such as person:<uid>, project:<id> or note:<id>. |

| Option | What 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` [#gthb-relationships-remove]

remove one of a document's relationships

**Changes something on this computer only.**

```sh
gthb relationships remove <document> <relationship-id>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `relationship-id` | required | id, as relationships list prints it. |

**Example:** `gthb personal relationships remove DOC_ID LINK_ID`

## `gthb notes` [#gthb-notes]

write notes about an imported document

### `gthb notes add` [#gthb-notes-add]

write a note about a document

**Changes something on this computer only.**

```sh
gthb notes add <document> <text> [options]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `text` | required | the note's text. |

| Option | What 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` [#gthb-notes-list]

list a document's notes

```sh
gthb notes list <document> [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | What 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` [#gthb-notes-show]

show one note

```sh
gthb notes show <document> <note>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `note` | required | note:<id> 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` [#gthb-notes-edit]

replace a note's text

**Changes something on this computer only.**

```sh
gthb notes edit <document> <note> <text> [options]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `note` | required | note:<id> reference, as notes list prints it. |
| `text` | required | the note's new text. |

| Option | What 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` [#gthb-notes-remove]

delete one note

**Changes something on this computer only.**

```sh
gthb notes remove <document> <note>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `note` | required | note:<id> reference, as notes list prints it. |

**Example:** `gthb personal notes remove DOC_ID note:NOTE_ID`

## `gthb memories` [#gthb-memories]

keep what was learned from a document, with evidence; an agent's stay proposed

### `gthb memories add` [#gthb-memories-add]

record a memory about a document

**Changes something on this computer only.**

```sh
gthb memories add <document> <text> [options]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `text` | required | what to remember. |

| Option | What 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:<id> 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` [#gthb-memories-list]

list a document's memories

```sh
gthb memories list <document> [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | What 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` [#gthb-memories-show]

show one memory

```sh
gthb memories show <document> <memory>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `memory` | required | memory:<id> reference, as memories list prints it. |

**Example:** `gthb personal memories show DOC_ID memory:MEMORY_ID`

### `gthb memories confirm` [#gthb-memories-confirm]

confirm a proposed memory as true

**Changes something on this computer only.**

```sh
gthb memories confirm <document> <memory>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `memory` | required | memory:<id> reference, as memories list prints it. |

**Example:** `gthb personal memories confirm DOC_ID memory:MEMORY_ID`

### `gthb memories stale` [#gthb-memories-stale]

mark a memory as out of date

**Changes something on this computer only.**

```sh
gthb memories stale <document> <memory>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `memory` | required | memory:<id> reference, as memories list prints it. |

**Example:** `gthb personal memories stale DOC_ID memory:MEMORY_ID`

### `gthb memories search` [#gthb-memories-search]

search a document's memories by words

```sh
gthb memories search <document> <query>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `query` | required | words 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` [#gthb-memories-extract]

send a document's text to the model and show the memories it proposes

**Changes something in the service.**

```sh
gthb memories extract <document> [options]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |

| Option | What it does |
|---|---|
| `--scope <scope>` | whose memories they become: personal or work. One of: `personal`, `work`. |
| `--tab <id>` | send only this tab of the document. |
| `--yes` | save 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` [#gthb-facts]

what happened, as a document shows it; an agent's stay proposed until confirmed

### `gthb facts add` [#gthb-facts-add]

record a fact a document shows

**Changes something on this computer only.**

```sh
gthb facts add <document> <statement> [options]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `statement` | required | the fact, in one sentence. |

| Option | What 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` [#gthb-facts-list]

list a document's facts

```sh
gthb facts list <document> [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | What 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` [#gthb-facts-show]

show one fact

```sh
gthb facts show <document> <fact>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `fact` | required | fact:<id> reference, as facts list prints it. |

**Example:** `gthb personal facts show DOC_ID fact:FACT_ID`

### `gthb facts confirm` [#gthb-facts-confirm]

confirm a proposed fact; a decision it supersedes stops holding

**Changes something on this computer only.**

```sh
gthb facts confirm <document> <fact>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `fact` | required | fact:<id> reference, as facts list prints it. |

**Example:** `gthb personal facts confirm DOC_ID fact:FACT_ID`

### `gthb facts reverse` [#gthb-facts-reverse]

an accepted decision no longer holds, and nothing replaced it

**Changes something on this computer only.**

```sh
gthb facts reverse <document> <fact>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `fact` | required | fact:<id> reference, as facts list prints it. |

**Example:** `gthb personal facts reverse DOC_ID fact:FACT_ID`

## `gthb identities` [#gthb-identities]

the GitHub accounts seen on a document, and the people they belong to

### `gthb identities list` [#gthb-identities-list]

list the people GitHub shows for a document

```sh
gthb identities list <document> [query]
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `query` | optional | field: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`

### `gthb identities link` [#gthb-identities-link]

record that a GitHub account belongs to a known person

**Changes something on this computer only.**

```sh
gthb identities link <document> <github-id> <person>
```

| Argument | | What it is |
|---|---|---|
| `document` | required | GitHub file or folder id or URL in the local catalog, or a document:<n> ref. |
| `github-id` | required | GitHub account id, as identities list prints it. |
| `person` | required | person:<uid> reference of someone already known. |

**Example:** `gthb personal identities link DOC_ID GITHUB_ID person:PERSON_UID`

## `gthb sync` [#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.**

```sh
gthb sync [options]
```

| Option | What it does |
|---|---|
| `--rescan` | list 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. |
| `--embed` | also 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` [#gthb-issues]

the tracker's issues as last synced: state, team, project, assignee and labels

### `gthb issues list` [#gthb-issues-list]

issues copied from the tracker, newest change first; run sync to bring them up to date

```sh
gthb issues list [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | What 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` [#gthb-issues-show]

one issue with its state, assignee and comments

```sh
gthb issues show <issue>
```

| Argument | | What it is |
|---|---|---|
| `issue` | required | the 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`

### `gthb issues search` [#gthb-issues-search]

find issues, projects and comments in the copy by their words, and by meaning once sync --embed built their vectors

```sh
gthb issues search <words> [options]
```

| Argument | | What it is |
|---|---|---|
| `words` | required | every 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. |

| Option | What 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` [#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.**

```sh
gthb issues assign <issue> [options]
```

| Argument | | What it is |
|---|---|---|
| `issue` | required | the issue's key (ENG-12), id or tracker: ref. |

| Option | What 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` [#gthb-issues-comments]

comments on the tracker's issues

#### `gthb issues comments list` [#gthb-issues-comments-list]

an issue's comments, newest change first; an empty list means it has none in the copy

```sh
gthb issues comments list <issue> [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `issue` | required | the issue's key (ENG-12), id or tracker: ref. |
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | What 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` [#gthb-issues-context]

one issue with its newest comments, relations and what the copy lacks

```sh
gthb issues context <issue>
```

| Argument | | What it is |
|---|---|---|
| `issue` | required | the 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` [#gthb-projects]

the tracker's projects: status, lead, teams and target date

### `gthb projects list` [#gthb-projects-list]

projects copied from the tracker, newest change first

```sh
gthb projects list [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | What 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` [#gthb-milestones]

each repository's milestones: number, start, end and when completed

### `gthb milestones list` [#gthb-milestones-list]

milestones copied from the tracker, newest change first

```sh
gthb milestones list [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | What 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` [#gthb-users]

the tracker's users, each with the person the store knows by the same e-mail

### `gthb users list` [#gthb-users-list]

users copied from the tracker, newest change first

```sh
gthb users list [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | What 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` [#gthb-states]

each team's workflow states and their type

### `gthb states list` [#gthb-states-list]

states copied from the tracker, newest change first

```sh
gthb states list [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | What 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` [#gthb-labels]

the tracker's labels

### `gthb labels list` [#gthb-labels-list]

labels copied from the tracker, newest change first

```sh
gthb labels list [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | What 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` [#gthb-doctor]

the state this installation is in, without connecting unless --online

```sh
gthb doctor [options]
```

| Option | What it does |
|---|---|
| `--online` | also connect once and read the account; sends nothing. |

**Example:** `gthb doctor`, `gthb doctor --json`

### `gthb doctor reports` [#gthb-doctor-reports]

problem reports

#### `gthb doctor reports show` [#gthb-doctor-reports-show]

what a problem report holds; writes nothing

```sh
gthb doctor reports show
```

**Example:** `gthb doctor reports show`

#### `gthb doctor reports create` [#gthb-doctor-reports-create]

write a problem report to a file, and say where to send it

**Changes something on this computer only.**

```sh
gthb doctor reports create [options]
```

| Option | What 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` [#gthb-skill]

the instructions an agent is given for this tool

### `gthb skill show` [#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

```sh
gthb skill show [name] [options]
```

| Argument | | What it is |
|---|---|---|
| `name` | optional | a 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. |

| Option | What 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` [#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.**

```sh
gthb skill install [options]
```

| Option | What 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` [#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

```sh
gthb skill status
```

**Example:** `gthb skill status`, `gthb skill status --json`

## `gthb mcp` [#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` [#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.**

```sh
gthb mcp serve [options]
```

| Option | What 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. |
| `--http` | serve 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://<name>.ts.net or https://<name>.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` [#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.**

```sh
gthb mcp revoke [options]
```

| Option | What 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` [#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` [#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.**

```sh
gthb mcp server start [options]
```

| Option | What it does |
|---|---|
| `--port <port>` | the local port (default 8765). |
| `--public-url <url>` | the tunnel's https address the browser apps use, e.g. https://<name>.ts.net or https://<name>.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` [#gthb-mcp-server-stop]

stop `mcp serve --http` — only one that `mcp server start` started

**Changes something on this computer only.**

```sh
gthb mcp server stop [options]
```

| Option | What 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` [#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

```sh
gthb mcp server status [options]
```

| Option | What 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` [#gthb-mcp-config]

print the mcpServers entry for Claude Desktop, Cursor and others, with full paths; writes nothing

```sh
gthb mcp config [options]
```

| Option | What 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` [#gthb-mcp-add]

add this profile's local MCP server to Codex or Claude Code

**Changes something on this computer only.**

```sh
gthb mcp add <client> [options]
```

| Argument | | What it is |
|---|---|---|
| `client` | required | codex or claude-code. |

| Option | What it does |
|---|---|
| `--allow-writes` | acknowledge 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` [#gthb-mcp-check]

check this profile's local MCP handshake and tool list

```sh
gthb mcp check [options]
```

| Option | What 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` [#gthb-upgrade]

upgrade gthb with the package manager that installed it; --check only looks

**Changes something on this computer only.**

```sh
gthb upgrade [options]
```

| Option | What it does |
|---|---|
| `--check` | say whether a newer version exists, and install nothing. |

**Example:** `gthb upgrade --check`

## `gthb config` [#gthb-config]

the settings in force, and where each one came from

### `gthb config show` [#gthb-config-show]

the profile, the profiles that exist, and each setting with where it came from

```sh
gthb config show
```

**Example:** `gthb personal config show`

### `gthb config set` [#gthb-config-set]

save a setting to the configuration file

**Changes something on this computer only.**

```sh
gthb config set <setting> <value> [options]
```

| Argument | | What it is |
|---|---|---|
| `setting` | required | one 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.<provider>:<account>.links, crm.<provider>:<account>.company-types, crm.<provider>:<account>.scope, crm.<provider>:<account>.unassigned, crm.<provider>:<account>.self, crm.<provider>:<account>.stage-tasks, crm.<provider>:<account>.activities, crm.<provider>:<account>.files.max_files, crm.<provider>:<account>.files.max_file_mb, crm.<provider>:<account>.files.max_run_mb, crm.<provider>:<account>.files.run_minutes, crm.<provider>:<account>.files.days, crm.<provider>:<account>.files.max_total_mb. |
| `value` | required | a number, true or false; for a group tg:work,max:Alice,email:me@x. |

| Option | What it does |
|---|---|
| `--defaults` | change what every profile gets, rather than this profile. |

**Example:** `gthb personal config set limit 20`

### `gthb config unset` [#gthb-config-unset]

remove a setting from the configuration file

**Changes something on this computer only.**

```sh
gthb config unset <setting> [options]
```

| Argument | | What it is |
|---|---|---|
| `setting` | required | one 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.<provider>:<account>.links, crm.<provider>:<account>.company-types, crm.<provider>:<account>.scope, crm.<provider>:<account>.unassigned, crm.<provider>:<account>.self, crm.<provider>:<account>.stage-tasks, crm.<provider>:<account>.activities, crm.<provider>:<account>.files.max_files, crm.<provider>:<account>.files.max_file_mb, crm.<provider>:<account>.files.max_run_mb, crm.<provider>:<account>.files.run_minutes, crm.<provider>:<account>.files.days, crm.<provider>:<account>.files.max_total_mb. |

| Option | What it does |
|---|---|
| `--defaults` | change what every profile gets, rather than this profile. |

**Example:** `gthb personal config unset limit`

### `gthb config migrate` [#gthb-config-migrate]

write each setting the file lacks at its default, keeping yours

**Changes something on this computer only.**

```sh
gthb config migrate
```

**Example:** `gthb config migrate`

### `gthb config repair` [#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.**

```sh
gthb config repair [options]
```

| Option | What it does |
|---|---|
| `--dry-run` | say what it would fix, and change nothing. |

**Example:** `gthb config repair`, `gthb config repair --dry-run`

## `gthb runs` [#gthb-runs]

recorded runs — what this tool did, and when

### `gthb runs list` [#gthb-runs-list]

recorded runs, newest first

```sh
gthb runs list [query] [options]
```

| Argument | | What it is |
|---|---|---|
| `query` | optional | field:value terms that narrow the list — the fields are below. |

| Option | What 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` [#gthb-runs-show]

one run: what it was, how it ended, and every event it logged

```sh
gthb runs show <run-id> [options]
```

| Argument | | What it is |
|---|---|---|
| `run-id` | required | an id from `gthb runs list`. |

| Option | What it does |
|---|---|
| `--problems` | only 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` [#gthb-runs-path]

the directory holding one run

```sh
gthb runs path <run-id>
```

| Argument | | What it is |
|---|---|---|
| `run-id` | required | an 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` [#gthb-store]

the shared local store every WireCat tool reads

### `gthb store info` [#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

```sh
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` [#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` [#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.**

```sh
gthb store recover run
```

**Example:** `gthb personal store recover run`

### `gthb store migrate` [#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.**

```sh
gthb store migrate [options]
```

| Option | What it does |
|---|---|
| `--no-backup` | migrate 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 [#códigos-de-salida]

Decide según el código, no según el texto: el texto puede cambiar, el código no.

| Code | When |
|---|---|
| `0` | it worked |
| `2` | `validation_error` |
| `3` | `configuration_error` |
| `4` | `authentication_error` |
| `5` | `permission_error` |
| `6` | `not_found` |
| `7` | `confirmation_required` |
| `8` | `rate_limited` |
| `9` | `timeout` |
| `10` | `network_error` |
| `11` | `provider_error` |
| `12` | `provider_unavailable` |
| `13` | `invalid_response` |
| `14` | `outcome_unknown` |
| `15` | `conflict` |
| `130` | `cancelled` |
| `1` | anything else |
