| GT-RELEASE-DOWNLOAD(1) | gitea-cli Manual | GT-RELEASE-DOWNLOAD(1) |
NAME
gt-release-download - Download release assets
SYNOPSIS
gt release download [<tag>] [<asset>...] [flags]
DESCRIPTION
Download the assets of a release (default: the latest) by name or ID, those matching --pattern, or all of them; --archive downloads the source code instead. Existing files are replaced only with --clobber, and --output - writes one asset to standard output.
OPTIONS
-A, --archive="" Download the source code archive {zip|tar.gz}
--clobber[=false] Replace an existing file
-D, --dir="" Directory to download into
-h, --help[=false] help for download
-O, --output="" File or directory to write to, or - for standard output (default: the download's name)
-p, --pattern=[] Download the assets whose names match this glob (repeatable)
--skip-existing[=false] Keep an existing file and skip the download
OPTIONS INHERITED FROM PARENT COMMANDS
--cwd="" Working directory for repository discovery
--debug[=false] Log the method, URL, status, and duration of each HTTP request to stderr
--host="" Gitea instance URL, including any base path
--interactive[=false] Allow prompts with machine output
--no-input[=false] Disable prompts and implicit editor/browser interactions
--remote="" Git remote used for repository discovery
-R, --repo="" Select a repository as OWNER/REPO or URL
--sudo="" Perform API requests as this user (requires an administrator account)
--user="" Account name on the selected instance
EXAMPLE
# Download every asset of the latest release $ gt release download # Download the Linux builds of a release into dist/ $ gt release download v1.0.0 --pattern '*linux*' --dir dist # Download the source code as a zip file $ gt release download v1.0.0 --archive zip
SEE ALSO
| Nov 2026 | gitea-cli |