How to attach images and videos using the GitHub CLI
GitHub shows how to attach images and videos to pull requests, issue comments, and issues directly from the terminal using the GitHub CLI.
Overview
You can attach images and videos to GitHub pull requests, comments, and issues from your terminal using the GitHub CLI.
Attaching media with the GitHub CLI
- Use the new
--attachflag. - Provide:
- The file location (path)
- A
#separator - Alt text (to keep the media accessible)
Where this helps
- Sharing screenshots in reviews
- Attaching test recordings
- Creating visual bug reports
Note on AI agents
The description also calls out that you can instruct AI agents to attach proof-of-work automatically (for example, adding screenshots or recordings as part of an automated workflow).