GitHub CLI 2.99.0
New 2
Attach screenshots and videos to issues and PRs from the command line
⟦You paste developed photos into a logbook page by page: where a page already says "photo goes here", the print covers that spot; elsewhere it goes on at the end.⟧ Reporting a bug with a screenshot used to mean opening the web page to upload it first. gh now has --attach, which uploads local images and videos and puts them into the body of an issue, a pull request, or a comment.
```shell gh issue create --attach './repro.png#The error state' gh pr comment 456 --attach ./result.mp4 ```
If the body already references that local path, gh swaps in the uploaded URL; otherwise the attachment is appended. Repeat the flag to attach several files in one invocation. Attachments work on GitHub.com and GitHub Enterprise Cloud.
Original changelog
## Attach images and videos to issues and pull requests
The repeatable --attach flag uploads local images and videos and adds them to issue, pull request, or comment bodies. If a body already references the local path, gh replaces it with the uploaded URL; otherwise it appends the attachment:
```shell
# Attach files when creating or editing an issue
gh issue create --attach './repro.png#The error state'
gh issue edit 123 --attach ./walkthrough.mp4
# Attach files when creating or editing a pull request
gh pr create --attach ./before.png
gh pr edit 456 --attach ./after.png
# Attach files to comments
gh issue comment 123 --attach ./repro.png
gh pr comment 456 --attach ./result.mp4
```
Repeat the flag to attach multiple files in a single invocation. Attachments are available on GitHub.com and GitHub Enterprise Cloud.
For more information see https://gh.io/gh-attach and https://github.blog/changelog/2026-09-01-github-cli-media-in-issues-pull-requests-and-comments/
gh issue develop can check the branch out in a separate worktree
You are halfway through a change when an issue needs a fresh branch, and until now you had to tidy up before switching over. gh issue develop can now create the linked branch for an issue and check it out in a new Git worktree, a second working copy of the same project that stands on its own, leaving your current working copy untouched.
```shell gh issue develop 123 --checkout --worktree /path/to/wt-feature ```
When a site has to start a second job, the crew does not tear down what is already laid out; they open a separate work area beside it and run both at once.
Original changelog
## Worktree support extended to gh issue develop
gh issue develop can now create a linked branch and check it out in a new Git worktree, leaving your current working copy unchanged:
```shell
# Create a linked branch for an issue and check it out in a worktree
gh issue develop 123 --checkout --worktree /path/to/wt-feature
```