Uploading to Artifactory Cloud Instance¶
Conan packages can be uploaded to Artifactory under your own users or organizations. To create a repository follow these steps:
Create an Artifactory Free-Tier account
Browse to https://jfrog.com/community/start-free/ and submit the form to create your account. Note that you don’t have to use the same username that you use for your Conan account.
Add your Artifactory repository
To get the correct address, click on
Application -> Artifactory -> Artifacts -> Set Me Up:
Add a Conan remote in your Conan client pointing to your Artifactory repository.
$ conan remote add <REMOTE> <YOUR_ARTIFACTORY_REPO_URL>
Get your API key
Your API key is the “password” used to authenticate the Conan client to Artifactory, NOT your Artifatory password. To get your API key, go to “Set Me Up” and enter your account password. Your API key will appear on conan user command line listed on Set Me Up box:
Set your user credentials
Add your Conan user with the API Key, your remote and your Artifatory user name:
$ conan user -p <APIKEY> -r <REMOTE> <USEREMAIL>
Setting the remotes in this way will cause your Conan client to resolve packages and install them from repositories in the following order of priority:
- Your own repository
If you want to have your own repository first, please use the
--insert command line option
when adding it:
$ conan remote add <your_remote> <your_url> --insert 0 $ conan remote list <your remote>: <your_url> [Verify SSL: True] conancenter: https://center.conan.io [Verify SSL: True]
Check the full reference of $ conan remote command.