GH-ISSUE-CLOSE(1) GitHub CLI manual GH-ISSUE-CLOSE(1)

# [NAME](#NAME)

gh-issue-close - Close issue

# [SYNOPSIS](#SYNOPSIS)

**gh issue close {&lt;number&gt; | &lt;url&gt;} \[flags]**

# [OPTIONS](#OPTIONS)

[**-c**, **--comment** **&lt;string&gt;**](#c)

Leave a closing comment

[**--duplicate-of** **&lt;string&gt;**](#duplicate_of)

Mark as duplicate of another issue by number or URL

[**-r**, **--reason** **&lt;string&gt;**](#r)

Reason for closing: {completed|not planned|duplicate}

# [OPTIONS INHERITED FROM PARENT COMMANDS](#OPTIONS_INHERITED_FROM_PARENT_COMMANDS)

[**-R**, **--repo** **&lt;\[HOST/\]OWNER/REPO&gt;**](#R)

Select another repository using the \[HOST/]OWNER/REPO format

# [EXIT CODES](#EXIT_CODES)

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.

# [EXAMPLE](#EXAMPLE)

```
# 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"
```

# [SEE ALSO](#SEE_ALSO)

[**gh-issue(1)**](/man/os/gh/gh-issue.1)

Sep 2026

---

Document: gh-issue-close(1) from gh 2.101.0-r1 (Chainguard OS)
Source: https://github.com/cli/cli
