---
name: "gh-variable"
section: "1"
platform: "linux"
package: "github-cli"
version: "2.102.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gh-variable"
---

# gh-variable(1)

Manage GitHub Actions variables

## 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)](/gh-variable-delete/1.md)**

  Delete variables

- **[gh-variable-get(1)](/gh-variable-get/1.md)**

  Get variables

- **[gh-variable-list(1)](/gh-variable-list/1.md)**

  List variables

- **[gh-variable-set(1)](/gh-variable-set/1.md)**

  Create or update variables

## OPTIONS

- **-R**, **--repo** **\<\[HOST/\]OWNER/REPO\>**

  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)](/gh/1.md)**
