: Temporarily deactivates or reactivates a remote without removing it. Best Practices Conan Repositories - Sonatype Help
The command also facilitates modern DevOps practices such as artifact promotion and multi-stage pipelines. Consider a continuous integration pipeline that builds a library, uploads it to a "development" remote using conan upload , and runs tests. Once the library passes validation, a promotion script could issue conan remote add stable https://artifacts.company.com/stable on a different stage, allowing production builds to consume only promoted artifacts. Without conan remote add , each environment would require manual configuration of its Conan client; with it, the configuration becomes part of the build script itself—codified, version-controlled, and repeatable. This transforms infrastructure from pet to cattle, where remotes are ephemeral references that can be added and removed as easily as switching branches. conan remote add
: A unique alphanumeric identifier for your server (e.g., my-company-artifactory ). URL : The explicit endpoint of the repository server. : Temporarily deactivates or reactivates a remote without
conan remote add conancenter https://center.conan.io Once the library passes validation, a promotion script
If a server URL changes, update it using update instead of deleting it: conan remote update company-artifactory company.com Use code with caution. To entirely remove a repository configuration: conan remote remove company-artifactory Use code with caution. Troubleshooting Common Errors SSL Verification Failures
If your team utilizes the open-source conan_server tool for local hosting: conan remote add local-server http://localhost:9300 Use code with caution. 3. Setting Remote Priority