Edit icon Edit This Page

Add an upstream to a proxy repository

Add an upstream (–url) to a repository; it is tried after the others.

An upstream decides what the repository serves: a package it does not hold is fetched from the upstreams in their order. Adding or changing one changes your supply chain, so rp asks for confirmation on a terminal. In a script pass –yes; with –no-input or without a terminal, and no –yes, the command exits 2 and changes nothing.

rp proxy add <repo> [flags]

Options

      --active             Use the upstream (false keeps it but skips it) (default true)
      --password-stdin     Read the upstream's password from the first line of stdin
      --private            The upstream needs credentials (--username, --password-stdin)
      --timeout duration   Connection timeout, whole seconds, such as 30s
      --tls-check          Check the upstream's certificate (default true)
      --url string         The upstream registry (required)
      --username string    Username for the upstream

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 proxy - Manage the upstreams of a proxy repository (Repsy Cloud)
Found a problem with this page?