[ 03 ]Commands
copia-cli release view¶
copia-cli release view [<tag>] [flags]
View information about a Copia release.
Without an explicit tag name argument, the latest release in the project is shown: the newest release that is neither a draft nor a pre-release.
With --web, open the release page in the browser instead. With a tag no API call is made, so no token is needed; without one the latest release is looked up first.
Options¶
-q,--jq <expression>- Filter JSON output using a jq expression
--json <fields>- Output JSON with the specified fields: id, tag_name, name, body, draft, prerelease, created_at, published_at, author, html_url, tarball_url, zipball_url, target_commitish, assets
-t,--template <template>- Format JSON output using a Go template (helpers: join, pluck, truncate, timeago, tablerow, tablerender)
-w,--web- Open the release in the browser
Options inherited from parent commands¶
--host <string>- Target Copia host
-R,--repo <string>- Select repository (owner/repo)
--token <string>- Authentication token
Examples¶
# View the latest release
$ copia-cli release view
# View a release by tag
$ copia-cli release view v1.0.0
# List the asset names as JSON
$ copia-cli release view v1.0.0 --json assets \
--jq '.assets[].name'
# Open the release in the browser
$ copia-cli release view v1.0.0 --web