GH-VARIABLE(1)

✨ NAME ✨

gh-variable β€” the icon that manages your GitHub Actions variables πŸ’…

(yeah that's the GH-VARIABLE(1) manual page bestie, we're in the GitHub CLI manual and it's giving organized-girlie energy)


🌸 SYNOPSIS 🌸

gh variable <command> [flags]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen β€” variables are a whole thing, and you can set them at the repository, environment or organization level πŸ”₯ for use in GitHub Actions or Dependabot. Three levels, two consumers, zero chaos (if you do it right).

Run gh help variable set to learn how to get started 🫢 like literally that's your onboarding bestie, go say hi.


πŸŽ€ AVAILABLE COMMANDS πŸŽ€


πŸ’œ OPTIONS πŸ’œ

  • -R, --repo <[HOST/]OWNER/REPO> β€” Select another repository using the [HOST/]OWNER/REPO format 🎯 yes the [HOST/] is optional, format it exactly like that fr fr

πŸ’€ EXIT CODES πŸ’€

  • 0: Successful execution πŸŽ‰ ate, no crumbs
  • 1: Error 😭 it's giving unfortunate
  • 2: Command canceled πŸ™ˆ you (or Ctrl+C) said nevermind
  • 4: Authentication required πŸ” log in bestie, the vibes need credentials
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. Don't come for me about exit codes I didn't list, go check the specific command's help iykyk πŸ’…

🌈 SEE ALSO 🌈

  • gh(1) β€” the main character, the parent, the whole ecosystem πŸ‘‘

and that's the page!! brought to you by GitHub CLI v2.102.0, dated Oct 2026 β€” version and date noted with love, now go set some variables and live your truth πŸ§šπŸ’–

πŸ“¦ where this page comes from