Skip to main content

Syntax

Description

Closes one or more issues and records the reason for closure. This sets the status to closed and adds a timestamp.

Arguments

string
required
One or more issue IDs to close (e.g., bd-1 bd-2 bd-3).

Options

string
default:"Completed"
Reason for closing the issue. Recorded in the issue’s event history.
boolean
Output the closed issue(s) in JSON format.

Examples

Output Format

Human-readable (single issue)

Human-readable (multiple issues)

JSON (with —json flag)

Issue not found

Closure Reasons

Common closure reasons:
  • "Completed" (default) - Work finished successfully
  • "Fixed and tested" - Bug resolved
  • "Implemented" - Feature completed
  • "Duplicate of bd-X" - Duplicate issue
  • "Won't fix" - Out of scope or declined
  • "Cannot reproduce" - Bug not reproducible
  • "Obsolete" - No longer relevant

Batch Closing

Close related work efficiently:
Closing an issue sets closed_at timestamp and creates a Closed event with the specified reason. The issue remains in the database and can be queried with tracer list --status closed.
For AI agents, include implementation details in the reason:
This creates a helpful audit trail for humans reviewing completed work.