conan remote list
conan remote add [verify_ssl] [insert_index] Use code with caution. Argument Breakdowns
To add a private server hosted on JFrog Artifactory, Nexus, or a self-hosted Conan server (like Conan server or Sonatype Nexus), map a unique name to the server's API URL: conan remote add my-company-repo https://mycompany.com Use code with caution. 2. Adding a Remote to a Legacy Conan 1.x Client
For detailed documentation on managing repositories, you can visit the Official Conan Remote Documentation. conan remote — conan 2.27.1 documentation
: The explicit web address of the Conan repository API endpoint. conan add remote
Remote priority matters: Conan searches remotes in the order they are listed (from highest to lowest priority). To make your company remote take precedence over Conan Center:
If you try to add a remote that already exists, Conan will normally raise an error. The --force flag changes this behavior by making the command always succeed and update the existing remote with the new information. If a remote with the same name or URL exists, it will be updated rather than raising an error. This is especially useful in CI/CD pipelines or automated scripts where you want to ensure the configuration is correct without worrying about whether the remote was already present.
: Place your most reliable or internal servers at the top of the list to speed up dependency resolution.
Let's look at some specific examples of using conan remote add in real-world scenarios: Adding a Remote to a Legacy Conan 1
If you accidentally deleted the default central repository, you can bring it back easily: conan remote add conancenter https://conan.io Use code with caution. 3. Adding a Community Remote
Here are the key takeaways for using conan remote add effectively:
# Syntax conan remote add company-repo https://your.server.url/repo-name
Working with Conan Remotes: A Quick Guide Managing remotes is a core part of the Conan C/C++ package manager workflow, allowing you to share and consume packages from centralized or private repositories like Artifactory . Adding a New Remote To make your company remote take precedence over
conan user -p my_secret_token -r company-internal my_username Use code with caution.
I can provide the exact commands and security configurations for your environment. Share public link
conan remote add test http://insecure-server:8080 --insecure