gh-variable
Manage GitHub Actions and Dependabot variables. tldr-pages
On several platforms
Several platforms
List variables for the current repository
gh variable [lsIdentifyList variables for a specific organization
gh variable [ls --org organizationIdentifyGet a variable for the current repository
gh variable get nameIdentifySet a variable for the current repository (user will be prompted for the value)
gh variable set nameIdentifySet a variable for a deployment environment in the current repository
gh variable set name --env environment_nameIdentifySet an organization variable visible to all repositories
gh variable set name --org organization --visibility allIdentifySet multiple variables from a dotenv file
gh variable set --env-file path/to/file.envIdentifyDelete a variable for the current repository
gh variable delete nameIdentify