# gh issue close

Close issues, with a reason.

## Quick answer
```
gh issue close 42
```

## Syntax
```
gh issue close {<number> | <url>} [flags]
```

## Examples

# Close an issue by number
gh issue close 42

# Close with a comment
gh issue close 42 --comment "Fixed in #45"

# Close as not planned
gh issue close 42 --reason "not planned"

# Bulk-close matching issues
gh issue list --label wontfix --json number --jq ".[].number" | xargs -n1 gh issue close

## Key flags

  -c, --comment	Leave a closing comment.
  -r, --reason	Reason for closing: "completed" or "not planned".

Full guide: https://ghcli.com/gh-issue-close.php
