GH-REPO-UNARCHIVE(1)

πŸ’– gh-repo-unarchive β€” bestie edition ✨

okay so real talk, this is the gh repo unarchive page from the GitHub CLI manual, and honestly? It's a little one. A tiny icon. But she does exactly one thing and she does it flawlessly. πŸŽ€


🌸 NAME 🌸

gh-repo-unarchive β€” unarchive a repository πŸ’…

like, un-archive. the opposite of archive. she's bringing your repo back from the shadow realm, no cap. πŸ¦‹

✨ SYNOPSIS ✨

gh repo unarchive [<repository>] [flags]

so it's the command, then optionally a <repository> in square brackets (meaning it's optional, bestie, not that you type the brackets 😭), then your [flags]. that's it. that's the whole vibe check. ⭐

🫢 DESCRIPTION 🫢

Unarchive a GitHub repository.

that's the mission. that's the whole plot. your repo was archived, you want it un-archived, and this is the girl for the job. πŸ‘‘

With no argument, unarchives the current repository.

this is the good part β€” if you just run it with nothing else, she looks around, goes "oh, we're in a repo already?", and unarchives that one. main character energy fr fr. no need to spell out the name if you're already standing in it. πŸ’–

πŸ’… OPTIONS πŸ’…

  • -y, --yes β€” Skip the confirmation prompt. so instead of her going "are you SURE bestie?? πŸ₯Ί" and making you type yes, you just say -y and she goes. iconic. lowkey dangerous if you're the type to mash keys, but slay. πŸ”₯

🧚 EXIT CODES 🧚

the way she tells you exactly how it went, we love an honest queen:

  • 0 β€” Successful execution 🌈 (ate, no crumbs)
  • 1 β€” Error πŸ’€ (something went sideways)
  • 2 β€” Command canceled πŸ™ˆ (you backed out, it happens)
  • 4 β€” Authentication required πŸ” (she doesn't know you like that yet β€” go log in)
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. πŸ‘€ like, these are the general ones, but if you need the full tea on a particular command, check its help. iykyk.

πŸ“ SEE ALSO πŸ“

  • gh-repo(1) β€” the whole repo command family, if you wanna hang out with the rest of the girls 🫢

mwah πŸ’œ that's the page!! brought to you by GitHub CLI v2.102.0, dated Oct 2026, and she is literally perfect, don't @ me. πŸŽ€βœ¨

πŸ“¦ where this page comes from