remotes.json

The remotes.json file is located in the Conan user home directory, e.g., [CONAN_HOME]/remotes.json.

The default file created by Conan looks like this:

remotes.json

  1. {
  2. "remotes": [
  3. {
  4. "name": "conancenter",
  5. "url": "https://center.conan.io",
  6. "verify_ssl": true
  7. }
  8. ]
  9. }

Essentially, it tells Conan where to list/upload/download the recipes/binaries from the remotes specified by their URLs.

The fields for each remote are:

  • name (Required, string value): Name of the remote. This name will be used in commands like conan list, e.g., conan list zlib/1.2.11 —remote my_remote_name.

  • url (Required, string value): indicates the URL to be used by Conan to search for the recipes/binaries.

  • verify_ssl (Required, bool value): Verify SSL certificate of the specified url.

  • disabled (Optional, bool value, false by default): If the remote is enabled or not to be used by commands like search, list, download and upload. Notice that a disabled remote can be used to authenticate against it even if it’s disabled.

See also