Store a new profile
Store a profile for a host. The product and the API, registry and web URLs are classified and derived from the host, then stored as they are; –type, –api-url, –registry-url, –web-url and –owner override them. A host that is not one of the known Repsy Cloud hosts and has no –type is asked which product it runs (an unauthenticated request to its login route, nothing is sent but an empty form); when it cannot tell, rp warns and classifies the host by name (Repsy OS). A Cloud custom domain needs –api-url and –registry-url as well. Environment variables are not stored. The first profile becomes the current one; –use does it for later ones. A host without a scheme means https.
rp profile add <host> [flags]
Options
--use Make the new profile the current one
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 URLs (default: your account, or the one account that shares a repository of that name with you); --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 profile - Manage the host profiles
Found a problem with this page?
Report a problem