Conan Add Remote ((top)) May 2026
To add a new remote in the Conan package manager, you use the conan remote add command. This allows you to connect to additional repositories (like JFrog Artifactory or ConanCenter) to download or upload packages. Basic Syntax The most common usage follows this structure: conan remote add Use code with caution. Copied to clipboard
: A custom name you give the remote (e.g., my-repo). : The web address of the repository.
[VERIFY_SSL]: Optional. Set to True (default) or False if your server uses self-signed certificates. Key Usage Examples Add a new remote: conan remote add my-remote https://your-repo-url.com Use code with caution. Copied to clipboard
Add a remote at the top of the search list:Conan searches remotes in the order they were added. To force a new remote to be checked first, use the --insert flag: conan remote add my-high-priority-repo Use code with caution. Copied to clipboard Add a remote and immediately disable it: conan remote add my-remote Use code with caution. Copied to clipboard Managing Remotes
Once added, you can manage your remotes with these related commands: List all remotes: conan remote list (shows names and URLs). Remove a remote: conan remote remove .
Update a URL: conan remote update .
Authenticate: After adding a private remote, you usually need to log in: conan user -p Use code with caution. Copied to clipboard
For detailed official documentation on different Conan versions, check the Conan 1.x Reference or the latest Conan 2.x Documentation. conan remote — conan 1.66.0 documentation
In Conan, the C/C++ package manager, a "remote" is essentially a server where packages are stored, similar to how GitHub hosts code repositories. Adding a remote allows you to download (pull) dependencies or upload (push) your own packages to a central or private server. Quick Command
To add a new remote, use the following syntax in your terminal: conan remote add Use code with caution. Copied to clipboard
: A nickname for the server (e.g., my-company-repo). : The full web address of the server. Common Options & Tips
Security: If you are using a server with a self-signed or invalid SSL certificate, you can bypass verification by adding False (Conan 1.x) or the --insecure flag (Conan 2.x).
Priority/Ordering: Conan searches remotes in the order they were added. To make a new remote the first one searched, use the --insert flag:conan remote add .
Private Repositories: For teams, the most common setup is using JFrog Artifactory (Community Edition is free for C++) as a private remote.
Authentication: After adding a remote, you typically need to log in to upload packages:conan user -p . Managing Your Remotes
To see which remotes are currently configured on your machine, run: conan remote list Use code with caution. Copied to clipboard If you need to remove one, use: conan remote remove Use code with caution. Copied to clipboard
Are you looking to set up a private server for a team, or just trying to pull a specific package from ConanCenter? conan remote — conan 2.27.1 documentation
conan remote add command to link your Conan client to a new package repository (remote), such as an Artifactory instance or a private server. Conan Docs Core Command Syntax conan remote add
to place a new remote at a specific priority level. Remotes are checked in the order they are listed. Set as the first priority (index 0): conan remote add my-repo
to add a remote even if the name or URL already exists, effectively updating it. Disable/Enable
: Temporarily ignore a remote without removing it from your configuration. conan remote disable my-repo Use code with caution. Copied to clipboard Conan Docs Managing Authentication
Once added, you must often authenticate to upload or download private packages. Conan Docs
To add a remote to your Conan package manager configuration, use the conan remote add command. This allows you to download and upload packages from specific servers beyond the default ConanCenter. Basic Syntax The standard command follows this structure: conan remote add Use code with caution. Copied to clipboard NAME: A unique identifier for the remote (e.g., my-repo).
URL: The endpoint of the repository (e.g., a GitLab project or Artifactory instance). Key Options and Variations
Force Add: Use the -f or --force flag to overwrite an existing remote with the same name.
Specific Positioning: Use --index to specify the search priority. For example, --index 0 makes it the first remote checked.
SSL Verification: If your server uses a self-signed certificate, you can bypass verification with --insecure (Conan 2.x) or by adding False at the end (Conan 1.x).
Allowed Packages: Use -ap or --allowed-packages to restrict which packages can be downloaded from this specific remote. Common Integration Examples
GitLab:conan remote add gitlab https://gitlab.example.com/api/v4/projects/
Bincrafters (Legacy):conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan Managing Remotes
Once added, you can manage your remotes with these related commands: List: conan remote list to see all configured sources.
Update: conan remote update to modify an existing entry.
Remove: conan remote remove to delete a remote from your list.
Are you setting up a private repository like Artifactory, or are you looking for the specific URL for a public community repo? Conan 2 packages in the package registry - GitLab Docs
Master Remote Package Management: A Guide to conan remote add To add a new remote in the Conan
If you are using Conan, the powerhouse C/C++ package manager, you already know it excels at handling dependencies. However, you aren't limited to the packages found on your local machine or the default "Conan Center."
To truly unlock the power of DevOps and team collaboration, you need to know how to connect to external repositories. This is where the conan remote add command comes into play. What is a Conan Remote?
A "remote" is simply a server that hosts Conan packages. Think of it like a remote Git repository (GitHub/GitLab) but for compiled binaries and recipes. By adding a remote, you allow Conan to: Search for packages globally. Upload your own built packages for teammates to use. Download pre-compiled binaries to save hours of build time. The Basic Syntax To add a new remote, the syntax is straightforward: conan remote add Use code with caution.
REMOTE_NAME: A nickname you give the server (e.g., my-company-artifactory). URL: The full web address of the Conan repository.
VERIFY_SSL: (Optional) Set to False if your company uses self-signed certificates (not recommended for production). Common Scenarios for Adding Remotes 1. Adding a Private Company Repository
Most professional teams use JFrog Artifactory or Sonatype Nexus to host private C++ libraries. To add your team's Artifactory server: conan remote add company-repo https://jfrog.io Use code with caution. 2. Re-adding Conan Center
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
Sometimes, specific projects (like Bincrafters) host their own repositories for specialized packages: conan remote add bincrafters https://jfrog.io Use code with caution. Post-Addition: Authentication
Adding the remote is only the first step. If the repository is private, you need to log in: conan user -p Use code with caution. Managing Your Remotes
Once you start working with multiple repositories, these commands will be your best friends: List all remotes: conan remote list
Change the priority: Conan searches remotes in the order they were added. To move a remote to the top of the list, use: conan remote add my-repo Use code with caution. Remove a remote: conan remote remove Rename a remote: conan remote rename Best Practices
Use Meaningful Names: Don't just name a remote "test." Use names like prod-binary-cache or team-alpha-dev.
Order Matters: Place your most reliable or internal servers at the top of the list to speed up dependency resolution.
Security First: Avoid using Verify SSL: False in a professional environment. Instead, properly configure your system's certificate store.
Mastering conan remote add is the bridge between "it works on my machine" and "it works for the whole team." By effectively managing your remotes, you create a centralized, scalable ecosystem for your C++ development.
In the decentralized world of Conan C/C++ package management, remotes are the central servers that store and distribute packages, functioning much like a git push-pull model. Managing these connections via the conan remote add command is a core skill for any C++ developer looking to scale beyond local builds. 1. Essential Command Syntax
To add a new remote, you only need a unique name and a valid URL. conan remote add Use code with caution. Copied to clipboard name: A custom identifier (e.g., artifactory or mycompany). Conan will prompt for a password
url: The endpoint of the Conan repository (e.g., https://center.conan.io for Conan Center).
verify_ssl: (Optional) Defaults to True. Set to False if using a local server with self-signed certificates. 2. Strategic Remote Management
The order of your remotes determines where Conan looks for packages first.
Prioritization: Use the --insert flag to place a new remote at a specific position. For example, --insert=0 makes it the very first source checked, ensuring your internal company versions are prioritized over public ones.
Maintenance: If a remote's URL changes, you can use conan remote update instead of deleting and re-adding it.
Conflict Resolution: The --force flag allows you to add or update a remote even if a name or URL conflict exists. 3. Use Cases for Different Remotes
Developers typically manage a mix of public and private remotes depending on their project needs: Setting up a Conan remote — conan 2.27.1 documentation
Here’s a quick review of the conan add remote command, based on typical usage in Conan (1.x and 2.x).
Issue 3: Authentication Failures
conan add remote does not handle credentials. After adding a remote that requires login, you must run:
conan remote login <remote-name> <username>
Conan will prompt for a password. Store credentials using conan user or environment variables (CONAN_PASSWORD).
Rename a remote
conan remote rename old-name new-name
2. Command Syntax and Options
Basic syntax:
conan remote add <remote-name> <remote-url> [options]
<remote-name>: A unique, user-defined identifier for the remote (e.g.,my_company,artifactory-dev).<remote-url>: The URL of the Conan repository (must end with/v2if using Conan V2 API, or/v1for older servers).[options]: Optional flags (see below).
Insert at position 2 (0-indexed)
conan remote add vendor https://vendor.conan.com --insert 2
To reorder existing remotes without re-adding them, use:
conan remote move my_remote --position 0
7. Authentication and Security
- Username/Password: Most enterprise remotes require authentication. Use
conan userto log in before installing packages. - SSL Certificates: Always verify SSL in production. If you have a self-signed certificate, either add it to your system trust store or use
--verify-ssl=False(not recommended). - Tokens/Bearer Auth: Supported via
conan user -p <token> -r <remote-name>.
The Basic Syntax of conan add remote
The fundamental command structure is straightforward:
conan remote add <remote-name> <remote-url>
<remote-name>: A unique, case-sensitive identifier for the remote (e.g.,my_company,third_party,conancenter).<remote-url>: The HTTP/HTTPS endpoint of the Conan server (e.g.,https://center.conan.io,https://artifactory.mycorp.com/artifactory/api/conan/conan-local).
Example:
conan remote add company https://artifactory.mycorp.com/artifactory/api/conan/conan-local
If successful, Conan returns no message—silence indicates success. To verify, use:
conan remote list
Issue 1: The "Diamond Dependency" Remote Conflict
Scenario: Library A requires boost/1.80 (exists on remote X). Library B requires boost/1.80 (exists only on remote Y). If remote X is searched first, it finds boost, but may lack the configurations needed by Library B.
Solution: Ensure your remotes are exhaustive or use conan lockfiles to pin exact revisions.