Edit icon Edit This Page

Configuration

rp keeps its settings in two files in its configuration directory, and its credentials in the OS keyring.

FileContent
config.ymlcurrent_host, the profile used when no host is given.
hosts.ymlOne profile per host: product, api_url, registry_url, web_url, owner, and the result of the last rp profile doctor.
credentials.jsonOnly when the OS keyring cannot be used, or with --insecure-storage: the stored credentials, mode 0600. See Authentication.

Location

The configuration directory is, in this order:

  1. $REPSY_CONFIG_DIR,
  2. $XDG_CONFIG_HOME/repsy, only when XDG_CONFIG_HOME is an absolute path,
  3. ~/.config/repsy.

The same rule applies on every platform.

File mode and content

  • The files are written atomically with mode 0600.
  • Tokens are never stored in config.yml or hosts.yml. A token written there by hand is ignored.
  • A key that rp does not know is kept and written back unchanged when the file is rewritten. YAML comments are not preserved.

Commands

How flags, environment variables and the stored profile combine is described in Profiles and hosts.

Found a problem with this page?