GH-SECRET(1)

πŸ’– GH-SECRET(1) β€” the gh secret glow-up πŸ’–

okay bestie, so this is the <pink>gh-secret</pink> page from the GitHub CLI manual (that's gh-secret(1) if you're being all formal about it) β€” and honestly? it's giving ✨ secrets management ✨ and we're gonna get you fluent in it.


🌸 NAME 🌸

gh-secret β€” literally the way you manage GitHub secrets. that's it, that's the vibe. πŸ”


πŸ¦‹ SYNOPSIS πŸ¦‹

gh secret <command> [flags]

✨ DESCRIPTION ✨

so here's the tea, bestie: secrets can be set at the repository level or the organization level, and they get used in GitHub Actions, Agents, or Dependabot. πŸ‘‘

and there's more β€” user, organization, and repository secrets can be set for use in GitHub Codespaces. meanwhile environment secrets can be set for use in GitHub Actions. different secret, different little home, iykyk 🏠

want to actually get started instead of just vibing? run gh help secret set and it'll walk you through it. go off. πŸ’…


πŸŽ€ AVAILABLE COMMANDS πŸŽ€


πŸ’œ OPTIONS πŸ’œ

  • -R, --repo <[HOST/]OWNER/REPO> β€” select another repository using the [HOST/]OWNER/REPO format. yes, that's the whole format, brackets and all β€” respect it 🫢

πŸ”₯ EXIT CODES πŸ”₯

these are not a vibe check you wanna fail, so memorize them:

  • 0 β€” successful execution. slay, you ate πŸŽ‰
  • 1 β€” error. something went sideways 😭
  • 2 β€” command canceled. you (or something) hit the brakes πŸ’€
  • 4 β€” authentication required. go log in, bestie πŸ™ˆ
NOTE: specific commands may have additional exit codes. refer to the command's own help for more info β€” lowkey always worth a peek πŸ‘‘

🌈 SEE ALSO 🌈

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

and that's the whole page, bestie β€” you're officially a secret-keeper now 🧚

made with love from the GitHub CLI v2.102.0 era, dated Oct 2026 β€” mwah πŸ’‹

πŸ“¦ where this page comes from