GH-PROJECT-CLOSE(1)
π gh-project-close β like, the moment you close a project β¨
okay bestie, so this is the GitHub CLI page for gh-project-close, and it does exactly one iconic thing: Close a project. That's it. That's the whole vibe. π
β¨ SYNOPSIS β¨
gh project close [<number>] [flags]
so you can pass a <number>, but it's optional β the brackets said so, not me. π«Ά
π OPTIONS π
--format <string>β sets the output format, and the only one on the menu rn is{json}π-q,--jq <expression>β filters that JSON output using ajqexpression, iykyk π₯--owner <string>β the login of the owner. pass"@me"to mean the current user, no cap β¨-t,--template <string>β formats the JSON output using a Go template; peepgh help formattingfor the deets π--undoβ flips the whole thing: Reopen a closed project π¦ (not me bringing a project back from the dead π)
π EXIT CODES π
like, so you know what happened when it's done:
0: Successful execution β1: Error π2: Command canceled π4: Authentication required π
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. β so like, don't @ me if another command has extra ones, check its own help, fr fr π
πΈ EXAMPLE πΈ
closing a project, very demure, very mindful:
# Close project "1" owned by monalisa
$ gh project close 1 --owner monalisa
and here's the --undo moment where we bring it back to life:
# Reopen closed project "1" owned by github
$ gh project close 1 --owner github --undo
π SEE ALSO π
gh-project(1)β go read that one too, bestie π«Ά
k that's the whole page, mwah π β this was the GitHub CLI v2.102.0 manual, dated Oct 2026, and yes it's giving main character energy. bye bestie! π§ββοΈβπ
π¦ 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