A Conan recipe is a Python script that serves as a blueprint for creating a C/C++ software package. The recipe defines all necessary steps and metadata to automate the process of turning the source code into a reusable binary.
Note
Note: You can only upload Conan recipes through the Conan client. Artifactory only indexes Conan recipes that are uploaded through the Conan client, and does not index recipes uploaded from the JFrog web UI or REST API.
To upload a Conan recipe and its binary packages with Conan V1:
Run the following command:
conan upload "<RECIPE>" -r <REMOTE_NAME> --all
Where:
<RECIPE>: The recipe reference, in the format<NAME>/<VERSION>@<USER>/<CHANNEL>.Where:
<NAME>: The software library or component you are packaging<VERSION>: The version of the software you are packaging<USER>: The user or namespace.<CHANNEL>: The stability of the package build.
For example,
fmt/9.1.0@jeffryfrog/stable.<REMOTE_NAME>: The local alias of the Artifactory repository
For example:
conan upload "fmt/9.1.0@jeffryfrog/stable" -r artifactory --all
Note
You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.