GitHub CLI --attach Flag Uploads Media in Issues, Pull Requests, and Comments

What shipped

GitHub CLI v2.99.0 adds a repeatable --attach flag that uploads a local image or video and references it inline in an issue, pull request, or comment body — generally available for all users across all plans.

What changed

--attach works on commands that write Markdown: file the bug and the screenshot lands with it in the same command; open a PR with a before/after and reviewers see the change without pulling the branch. Coding agents built on gh get the capability too, so they can show a result instead of describing one.

Why a builder cares

The browser round-trip for screenshots is gone — bug reports, PRs, and agent-generated issues ship with visual evidence attached straight from the terminal.