CmdID

CmdID / Commands

gh-variable

Manage GitHub Actions and Dependabot variables. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

List variables for the current repository

gh variable [lsIdentify

List variables for a specific organization

gh variable [ls --org organizationIdentify

Get a variable for the current repository

gh variable get nameIdentify

Set a variable for the current repository (user will be prompted for the value)

gh variable set nameIdentify

Set a variable for a deployment environment in the current repository

gh variable set name --env environment_nameIdentify

Set an organization variable visible to all repositories

gh variable set name --org organization --visibility allIdentify

Set multiple variables from a dotenv file

gh variable set --env-file path/to/file.envIdentify

Delete a variable for the current repository

gh variable delete nameIdentify