GH-RELEASE-UPLOAD(1)

πŸ’… gh-release-upload(1) β€” the GitHub CLI manual, bestie edition πŸŽ€

okay so real talk: this is gh-release-upload, one of the gh girlies from the GitHub CLI manual, and she's here to get your files onto a release. let's go ✨


🌸 NAME 🌸

gh-release-upload β€” upload assets to a release. that's it, that's the job, and she does it gorgeously 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

gh release upload <tag> <files>... [flags]

✨ DESCRIPTION ✨

so basically: you point her at a release and some files, and she uploads those asset files to a GitHub Release. main character behavior, honestly πŸ‘‘

and here's a cute little trick β€” if you want an asset to have a display label, you just append some text starting with # after the file name. that's the whole vibe. iykyk πŸ’…

⚠️ lowkey important: when you're using --clobber, the existing assets get deleted before the new assets are uploaded. so if the upload fails? the original assets will be lost. no cap, gone, fr fr. be careful with that one 😭

πŸ’– OPTIONS πŸ’–

  • --clobber β€” deletes the existing assets with the same name and re-uploads them. ruthless. iconic. just remember the warning above, bestie πŸ™ˆ

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

  • -R, --repo <[HOST/]OWNER/REPO> β€” pick a different repository using the [HOST/]OWNER/REPO format. so you're not stuck with wherever you happen to be standing 🧚

⭐ EXIT CODES ⭐

vibe check on how she left things:

  • 0 β€” successful execution, we ate πŸ“
  • 1 β€” error 😭
  • 2 β€” command canceled πŸ’€
  • 4 β€” authentication required πŸ”
πŸ“ NOTE: specific commands may have additional exit codes. refer to the command's help for more information.

πŸŽ€ SEE ALSO πŸŽ€

  • gh-release(1) β€” the whole release family, go say hi πŸ’œ

and that's the whole page, bestie β€” written by the GitHub CLI crew at v2.102.0, dated Oct 2026, and filed under GH-RELEASE-UPLOAD(1) in the manual. slay, go upload something pretty πŸ’–βœ¨

πŸ“¦ where this page comes from