GH-ISSUE-CLOSE(1)
π gh-issue-close β the "close an issue" era
okay so real talk, this one's from the GitHub CLI manual (that's gh-issue-close(1) if you're being fancy β¨) and it's literally just the glow-up moment where an issue gets to rest. bestie, let's get into it π«Ά
β¨ NAME β¨
gh-issue-close β Close issue πβ¨
πΈ SYNOPSIS πΈ
gh issue close {<number> | <url>} [flags]
so you give it either the issue's number or its url, and then whatever flags your heart desires. very demure, very mindful π
π― OPTIONS π―
-c,--comment<string> β Leave a closing comment π¬ like a little goodbye note on the way out, so nobody's left wondering what happened--duplicate-of<string> β Mark as duplicate of another issue by number or URL π― "it's giving 'this already exists' energy" β you just point at the other one-r,--reason<string> β Reason for closing, and the options are{completed|not planned|duplicate}π pick your character arc
π«Ά OPTIONS INHERITED FROM PARENT COMMANDS π«Ά
these aren't even her flags, she got them from the parent command, and honestly? nepotism slay π
-R,--repo<[HOST/]OWNER/REPO> β Select another repository using the[HOST/]OWNER/REPOformat ποΈ so you can close issues in a repo that isn't the one you're standing in
π¦ EXIT CODES π¦
the vibe check of "did it work" β memorize these fr fr:
0: Successful execution β ate, no crumbs1: Error π something went wrong2: Command canceled π you backed out4: Authentication required π ma'am you need to log in first
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. π so like, don't come for me if your command's got extra ones β check its help
π EXAMPLE π
the moment you've all been waiting for β copy these, they're iconic:
# Close issue
$ gh issue close 123
# Close issue and add a closing comment
$ gh issue close 123 --comment "Closing this issue"
# Close issue as a duplicate of issue #456
$ gh issue close 123 --duplicate-of 456
# Close issue as not planned
$ gh issue close 123 --reason "not planned"
not the "not planned" reason being the most passive-aggressive closure in existence π anyway, it's giving closure (literally) π
π SEE ALSO π
gh-issue(1)β the whole issue family, go meet the relatives π§
that's the whole page bestie, no cap π β brought to you by GitHub CLI v2.102.0, dated Oct 2026, and yes the footer ships with the same energy: GH-ISSUE-CLOSE(1) top and bottom, periodt π
π¦ 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