Download artifacts from a repository
Download an artifact from a Repsy repository: rp download <format> <name> –repo <name>.
Files come from the repository host (the protocol host of the profile), not from the panel API. A public repository is read anonymously. A private one answers 401 with a WWW-Authenticate challenge, and rp then answers with the credential it uses everywhere (REPSY_TOKEN, else the stored credential of the profile) as HTTP Basic or Bearer, whichever the server asks for; a deploy token or a personal access token works, a login session does not.
The file is streamed into a temporary file next to the destination, checked against the digest the format publishes, and only then renamed into place, so the destination never holds a partial file, also after Ctrl-C. A file whose format publishes no digest is stored but reported as not verified.
Downloads cannot be resumed: the server supports no Range requests and never redirects to storage, so a download that breaks starts again from the first byte (rp retries a few times by itself) and there is no –continue. For a very large file, such as a Docker layer, a broken connection costs the whole file.
rp download
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 - Command line client for Repsy OS and Repsy Cloud
- rp download cargo - Download cargo artifacts
- rp download docker - Download docker artifacts
- rp download go - Download go artifacts
- rp download helm - Download helm artifacts
- rp download maven - Download maven artifacts
- rp download npm - Download npm artifacts
- rp download nuget - Download nuget artifacts
- rp download pypi - Download pypi artifacts
- rp download ruby - Download ruby artifacts