Logo
2
  • Introduction
  • What’s new in Conan 2
  • Install
  • Tutorial
  • CI Tutorial
  • Devops guide
  • Security
  • Integrations
  • Examples
  • Reference
    • Commands
      • conan cache
      • conan config
      • conan graph
      • conan inspect
      • conan install
      • conan list
      • conan lock
      • conan pkglist
      • conan profile
      • conan remove
      • conan remote
      • conan search
      • conan version
      • conan workspace
      • conan build
      • conan create
      • conan download
      • conan editable
      • conan export
      • conan export-pkg
      • conan new
      • conan source
      • conan test
      • conan upload
      • conan audit
      • conan report
      • Formatter: Graph-info JSON
    • conanfile.py
    • conanfile.txt
    • Workspace files
    • Recipe tools
    • Configuration files
    • Extensions
    • Environment variables
    • The binary model
    • Conan Server
    • Runners
  • Knowledge
  • Incubating features
  • Changelog
conan
  • Reference
  • Commands
  • conan search
  • Edit on GitHub

conan search¶

Search existing recipes in remotes. This command is equivalent to conan list <query> -r=*, and is provided for simpler UX.

$ conan search -h
usage: conan search [-h] [-v [V]] [-cc CORE_CONF] [-f FORMAT]
                    [--out-file OUT_FILE] [-r REMOTE]
                    reference

Search for package recipes in all the remotes (by default), or a remote.

positional arguments:
  reference             Recipe reference to search for. It can contain * as
                        wildcard at any reference field.

options:
  -h, --help            show this help message and exit
  -v [V]                Level of detail of the output. Valid options from less
                        verbose to more verbose: -vquiet, -verror, -vwarning,
                        -vnotice, -vstatus, -v or -vverbose, -vv or -vdebug,
                        -vvv or -vtrace
  -cc CORE_CONF, --core-conf CORE_CONF
                        Define core configuration, overwriting global.conf
                        values. E.g.: -cc core:non_interactive=True
  -f FORMAT, --format FORMAT
                        Select the output format: json
  --out-file OUT_FILE   Write the output of the command to the specified file
                        instead of stdout.
  -r REMOTE, --remote REMOTE
                        Remote names. Accepts wildcards. If not specified it
                        searches in all the remotes
$ conan search zlib
conancenter
  zlib
    zlib/1.2.8
    zlib/1.3.1
    zlib/1.2.12
    zlib/1.2.13

$ conan search zlib -r=conancenter
conancenter
  zlib
    zlib/1.2.8
    zlib/1.3.1
    zlib/1.2.12
    zlib/1.2.13

$ conan search zlib/1.2.1* -r=conancenter
conancenter
  zlib
    zlib/1.3.1
    zlib/1.2.12
    zlib/1.2.13

$ conan search zlib/1.2.1* -r=conancenter --format=json
{
    "conancenter": {
        "zlib/1.3.1": {},
        "zlib/1.2.12": {},
        "zlib/1.2.13": {}
    }
}
Previous Next

© Copyright 2016-2024, JFrog. Last updated on Sep 16, 2025.