GH-CONFIG-CLEAR-CACHE(1)

✨ gh-config-clear-cache(1) ✨

okay so real talk, this is a page from the GitHub CLI manual, and today's main character is gh-config-clear-cache πŸ’… it lives in the gh-config family and it literally just... clears the cli cache. that's the whole vibe. no cap.


🌸 NAME 🌸

gh-config-clear-cache β€” clear the cli cache 🧹✨

like, that's it. that's the job. it takes the cli cache and goes poof 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

gh config clear-cache [flags]

so you run gh config clear-cache and it does the thing. the [flags] bit is just sitting there being all cute and optional, iykyk 🌈


πŸ’œ EXIT CODES πŸ’œ

ngl, these are important, bestie β€” this is how you know what just happened πŸ‘‘

  • 0 β€” Successful execution ✨ everything slayed, nothing to worry about
  • 1 β€” Error 😭 something went sideways
  • 2 β€” Command canceled πŸ’€ you (or the universe) hit the brakes
  • 4 β€” Authentication required πŸ” you gotta prove who you are first
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. πŸŽ€ like, don't come for me if a different command has extra codes β€” check its help, fr fr.

πŸ“ EXAMPLE πŸ“

# Clear the cli cache
$ gh config clear-cache

see? iconic. one line, cache gone, serotonin delivered πŸŒΈπŸ¦‹


🌈 SEE ALSO 🌈

  • gh-config(1) β€” the whole config gang is over here, go say hi πŸ’–

GitHub CLI v2.102.0 πŸŽ€ Oct 2026 πŸŽ€ and that's the whole page, bestie β€” go forth and clear that cache πŸ‘‘πŸ’…βœ¨

πŸ“¦ where this page comes from