Conan: Add Remote
Whether you are working with the official ConanCenter or hosting your own Artifactory instance, understanding how to add and manage these remotes is a fundamental skill for any Conan user. This guide will walk you through everything you need to know about conan remote add , covering both Conan 1.X and the modern 2.X workflows. What is a Conan Remote?
Configuring remotes globally is convenient, but explicit control is often required during building and packaging. Explicitly Fetching from a Specific Remote
conan remote add insecure-repo http://internal-server/conan --insecure Use code with caution. Updating an Existing Remote conan add remote
Once you have added a remote, you can verify, modify, or delete it using these complementary commands: List All Configured Remotes
: Place your most reliable or internal servers at the top of the list to speed up dependency resolution. Whether you are working with the official ConanCenter
Either choose a different name or run conan remote remove first to clear out the legacy definition. 2. Package Not Found Errors
conan remote login my-company-repo my_username -p my_password_or_token Use code with caution. Authenticating in Conan 1.x Either choose a different name or run conan
conan remote add my_other_mirror https://other.com --insert=2
The conan add remote command is the primary mechanism used to register a remote server (a repository of binary packages and source code recipes) with a local Conan client. By executing this command, developers instruct their local Conan installation to query external servers—such as the official Conan Center, private company Artifactory instances, or custom servers—when searching for or downloading dependencies.
: The explicit web address of the Conan repository API endpoint.
A Conan remote is a network location pointing to a package server. By default, Conan comes pre-configured with the , the central public repository for open-source C/C++ libraries.