[ 03 ]Commands
copia-cli release download¶
copia-cli release download [<tag>] [flags]
Download assets from a Copia release.
Without an explicit tag name argument, assets are downloaded from the
latest release in the project. In this case, --pattern or --archive
is required.
Options¶
-A,--archive <format>- Download the source code archive in the specified format (zip or tar.gz)
--clobber- Overwrite existing files of the same name
-D,--dir <directory>- The directory to download files into (default ".")
-O,--output <file>- The file to write a single asset to (use "-" to write to standard output)
-p,--pattern <stringArray>- Download only assets that match a glob pattern
--skip-existing- Skip downloading when files of the same name exist
Options inherited from parent commands¶
--host <string>- Target Copia host
-R,--repo <string>- Select repository (owner/repo)
--token <string>- Authentication token
Examples¶
# Download all assets from a specific release
$ copia-cli release download v1.2.3
# Download only Debian packages for the latest release
$ copia-cli release download --pattern '*.deb'
# Specify multiple file patterns
$ copia-cli release download -p '*.deb' -p '*.rpm'
# Download the archive of the source code for a release
$ copia-cli release download v1.2.3 --archive=zip