Download maven artifacts
Download one file of an artifact: <groupId>:<artifactId> names it, –version picks the release (default: the release, else the latest, that maven-metadata.xml lists) and the file is <artifactId>-<version>.jar (–classifier and –extension change that). The checksum next to the file (.sha256, .sha512, .sha1) is fetched and the file is verified against it; a file with no published checksum is stored but reported as not verified.
–download-token takes the short-lived token the web panel hands to a browser for ONE file (Maven is the only format that has them). It opens just that file of that repository, so rp needs –version, skips maven-metadata.xml and the checksum (other paths the token does not cover), sends no other credential, and never prints the token.
rp download maven <groupId>:<artifactId> [flags]
Options
--classifier string Classifier of the file (sources, javadoc, ...)
--dir string Directory to store the file in (created when missing) (default ".")
--download-token string Download token of the web panel for this one file (needs --version)
--extension string File extension (default "jar")
--force Replace the file when it already exists
--repo string Repository to download from (required)
--version string Version to download (default: the newest the format knows)
Options inherited from parent commands
--api-url string Panel API URL of the profile, overrides the stored value
--ca-file string PEM file with extra trusted CA certificates
--debug Print debug output with secrets redacted
--hostname string Repsy host to use instead of the current profile
--insecure Do not verify TLS certificates (unsafe; plain http is chosen with the URL, not with this flag)
--insecure-storage Keep credentials in a plain 0600 file instead of the OS keyring (unsafe; a warning is printed once per command)
--jq string Filter JSON output with a jq expression (implies --output json)
--no-color Disable colored output
--no-input Never prompt; fail when input is needed
--output table|json|yaml Output format: table, json or yaml (default table; json when --jq is given)
--owner string Owner segment of Cloud protocol URLs; --owner= means none
--registry-url string Protocol host URL of the profile, overrides the stored value
--type os|cloud Product of the host, overrides detection
--web-url string Panel UI URL of the profile (where /cli/auth lives), overrides the stored value
--yes Answer yes to confirmation prompts
See also
- rp download - Download artifacts from a repository