GitHub CLI: media in issues, pull requests, and comments
GitHub CLI's new repeatable `--attach` flag, which uploads a local image or video and references it inline in an issue, pull request, or comment body.
- Works on `gh issue create/edit/comment` and `gh pr create/edit/comment`; supports PNG, JPEG, GIF, WebP, SVG, MP4, MOV, and WebM.
- Size limits match the web upload flow β 10MB for images/GIFs, 10MB for video on Free plans, 100MB on paid plans; requires gh CLI 2.99.0+ and repo write access.
- Repeatable per command, and `--attach './image.png#Description'` sets alt text.
added by Adam Tomat β’ 2nd Sep 2026