Conan Add Remote New! -
While conan add remote works in both, Conan 2.x introduced more robust configuration via conan remote subcommands. The principles remain identical, but Conan 2.x requires --remote flags more explicitly in conan install . Always check your Conan version:
In scripts (e.g., GitHub Actions, GitLab CI), add remotes non-interactively: conan add remote
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. While conan add remote works in both, Conan 2
conan add remote only adds the remote configuration; it does not store user credentials. To authenticate with a private remote that requires login, you use: By executing this command, developers instruct their local
is like knocking down a wall and building a bridge to a massive warehouse (like ConanCenter) or a private vault (your company’s internal Artifactory).
Use --force to overwrite the URL of an existing remote without deleting it first:
To change priority without re-adding: