gh release create Publish a release on GitHub

Creates a release for a tag, with notes and optional downloadable files. If the tag does not exist yet, gh creates it for you.

Synopsis

gh release create [TAG] [FILES...] [FLAGS]

Common options

Option or formWhat it does
-t, --title TEXTRelease title
-n, --notes TEXTRelease notes
-F, --notes-file FILERead the notes from a file
--generate-notesWrite notes automatically from merged pull requests
-d, --draftSave it as a draft
-p, --prereleaseMark it as a pre-release
--target BRANCHBranch or commit to tag if the tag is new

Examples

Create a release with generated notes
gh release create v1.2.0 --generate-notes
Give a title and notes
gh release create v1.2.0 --title "Version 1.2.0" --notes "Adds search."
Attach files
gh release create v1.2.0 dist/app.zip dist/app.tar.gz
Save it as a draft first
gh release create v1.2.0 --draft --generate-notes
Mark a beta
gh release create v2.0.0-beta.1 --prerelease

Notes

See also

Last reviewed 2026-10-09.