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 π
gh-secret-delete(1)β delete secrets. bye-bye, begone, no cap ποΈgh-secret-list(1)β list secrets. let's see what we're working with πgh-secret-set(1)β create or update secrets. the main character command fr fr β
π OPTIONS π
-R,--repo <[HOST/]OWNER/REPO>β select another repository using the[HOST/]OWNER/REPOformat. 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
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms