github GitHub Changelog ·

GitHub CLI Now Supports Attaching Media to Issues, PRs, and Comments

gaengineermedia
feature

GitHub CLI `v2.99.0` now includes a new `--attach` flag, enabling users to upload and embed local images or videos directly into issues, pull requests, and comments. This enhancement streamlines workflows by allowing developers to visually demonstrate UI bugs, rendered results, or errors without leaving the command line. The feature is generally available to all GitHub users on any plan, supporting various media formats like PNG, MP4, and GIF. Users simply need to update their `gh` client to `v2.99.0` to access this capability.

  • Attach Media Directly in GitHub CLI Workflows
  • Flexible Media Uploads and Markdown Integration
  • General Availability and Enterprise Server Exclusions
Features (1)
  • Attach Media Directly in GitHub CLI Workflows

    GitHub CLI `v2.99.0` introduces a new `--attach` flag, enabling users to upload local images or videos and reference them inline when creating or editing issues, pull requests, or comments. This eliminates the need to switch to a browser to add visual context to command-line interactions.

Enhancements (1)
  • Flexible Media Uploads and Markdown Integration

    The `--attach` flag is repeatable and compatible with various `gh` commands, including `gh issue create/edit/comment` and `gh pr create/edit/comment`. It supports a wide range of image and video formats (PNG, JPEG, GIF, MP4, MOV, WebM) and intelligently handles existing Markdown references to local files, rewriting them in place.

Notes (1)
  • General Availability and Enterprise Server Exclusions

    This feature is generally available to all GitHub users across all plans, requiring a `gh` client update to `v2.99.0`. Uploads authenticate with standard `gh` tokens and adhere to size limits (10MB for images/GIFs, up to 100MB for video on paid plans), but GitHub Enterprise Server is not supported in this initial release.

Read the original announcement →

https://github.blog/changelog/2026-09-01-github-cli-media-in-issues-pull-requests-and-comments

Related releases