OS Manuals

gh-variable(1)

gh-variable - Manage GitHub Actions variables

GH-VARIABLE(1) GitHub CLI manual GH-VARIABLE(1)

gh-variable - Manage GitHub Actions variables

gh variable <command> [flags]

Variables can be set at the repository, environment or organization level for use in GitHub Actions or Dependabot. Run gh help variable set to learn how to get started.

Delete variables

Get variables

List variables

Create or update variables

Select another repository using the [HOST/]OWNER/REPO format

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

gh(1)

Oct 2026

gh 2.103.0-r0 · os · ingested 2026-10-23