If you no longer need a repository, remove it cleanly from your configuration: conan remote remove my-company-repo Use code with caution. Advanced Workflows: Specifying Remotes During Operations
When configuring Conan remotes within automated CI/CD pipelines (such as GitHub Actions, GitLab CI, or Jenkins), manual logins are impossible. Follow these workflows:
Conan then stores an authentication token locally (in ~/.conan2/remotes.json or similar). Future operations with --remote=mycompany will use this token.
: A unique alphanumeric identifier for your repository (e.g., my-company-artifactory ). URL : The explicit network endpoint of the repository.
Now Conan will first look for any package in mycompany ; only if not found there will it fall back to conancenter . conan add remote
Adding remotes is just the start. Here is a quick reference for managing them:
The remote responded with an embrace it had denied her for days: a list of recipes, tags, and versions unfurling like a map. Line by line, the missing dependency appeared, with its own small history of builds and commits. Mara felt something like gratitude toward the machine; a problem dissolved not by brilliance but by the simple act of pointing things where they belonged.
Effectively managing remotes allows C/C++ developers to build scalable, predictable, and secure dependency pipelines. By mastering the conan remote add command along with registry prioritization strategies, you ensure that your local workflows and automated CI environments seamlessly bridge the gap between global open-source innovations and private corporate intellectual property.
$ conan remote add_ref OpenSSL/1.0.2i@conan/stable conan-center If you no longer need a repository, remove
Use --force to overwrite the URL of an existing remote without deleting it first:
conan remote add mycorp https://artifactory.mycorp.com/artifactory/api/conan/conan-local
Use conan remote list to verify the search order. Place internal, faster servers higher in the list to reduce conan install times. Conclusion
Never use this in production or CI/CD pipelines exposed to the internet. It exposes you to man-in-the-middle attacks. Now Conan will first look for any package
Verify that your remote was successfully added and inspect its position in the search order: conan remote list Use code with caution. Authenticating with the Remote
In Conan 2.x, all remote-related actions are grouped under the conan remote sub-command structure using an explicit verb format: conan remote add [OPTIONS] Use code with caution. Conan 1.x Syntax
# Remove the default remote entirely conan remote remove conancenter
This happens if you try to add a remote using a name that is already assigned.