Upload Conan Packages

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

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

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 V2:

Run the following command:

conan upload "<PATTERN>" --remote=<REMOTE_NAME> --confirm

Where:

  • <PATTERN>: The package you want to upload. This can be a wildcard like * to designate all packages in the local cache, or a recipe reference.

    Recipe references follow the format <NAME>/<VERSION>, where:

    • <NAME>: The software library or component you are packaging

    • <VERSION>: The version of the software you are packaging

    For example, fmt/9.1.0.

  • <REMOTE_NAME>: The local alias of the Artifactory repository

For example:

conan upload "*" --remote=artifactory --confirm

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.