Scroll to navigation

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

NAME

gh-variable - Manage GitHub Actions variables

SYNOPSIS

gh variable <command> [flags]

DESCRIPTION

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.

AVAILABLE COMMANDS

gh-variable-delete(1)
Delete variables

gh-variable-get(1)
Get variables

gh-variable-list(1)
List variables

gh-variable-set(1)
Create or update variables

OPTIONS

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

EXIT CODES

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.

SEE ALSO

gh(1)

Oct 2024 GitHub CLI v2.58.0