Logo
2
  • Introduction
  • Installation
  • Tutorial
  • CI Tutorial
  • Devops guide
  • Security
  • Integrations
  • Examples
  • Reference
    • Binary model
    • 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
    • Conan Server
    • Configuration files
    • Environment variables
    • Extensions
    • Recipe tools
    • Runners
    • Workspace files
  • Knowledge
  • Incubating features
  • What’s new in Conan 2
  • 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] [-f FORMAT] [--out-file OUT_FILE]
                    [-v [{quiet,error,warning,notice,status,,verbose,debug,v,trace,vv}]]
                    [-cc CORE_CONF] [-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
  -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.
  -v [{quiet,error,warning,notice,status,,verbose,debug,v,trace,vv}]
                        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
  -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 Nov 04, 2025.