gh release create v1.1.0 --generate-notes --target main

Category: GitHub CLI

gh release create v1.1.0 --generate-notes --target main

Create a release with auto-generated notes

Creates release v1.1.0 from the tag, and --generate-notes has GitHub draft the changelog from merged PRs and commits since the last release. --target pins the branch or SHA the release builds from. Edit the auto notes before publishing if they need polish.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.