• Introduction
  • What’s new in Conan 2.0
  • Install
  • Tutorial
  • Integrations
  • Examples
  • Reference
    • Commands
      • conan cache
      • conan config
      • conan graph
      • conan inspect
      • conan install
      • conan list
      • conan lock
      • conan profile
      • conan remove
      • conan remote
      • conan search
      • conan build
      • conan create
      • conan download
      • conan editable
      • conan export
      • conan export-pkg
      • conan new
      • conan source
      • conan test
      • conan upload
      • Formatter: Graph-info JSON
    • conanfile.py
    • conanfile.txt
    • Recipe tools
    • Configuration files
    • Extensions
    • Environment variables
    • Conan Server
  • Knowledge
  • Changelog

Sign up for release updates

conan
  • Docs »
  • Reference »
  • Commands »
  • conan search
  • Edit on GitHub

conan search¶

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

$ conan search -h
usage: conan search [-h] [-f FORMAT] [-v [V]] [-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.

optional arguments:
  -h, --help            show this help message and exit
  -f FORMAT, --format FORMAT
                        Select the output format: json
  -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
  -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.11
    zlib/1.2.8

$ conan search zlib -r=conancenter
conancenter:
zlib
    zlib/1.2.11
    zlib/1.2.8

$ conan search zlib/1.2.1* -r=conancenter
conancenter:
zlib
    zlib/1.2.11

$ conan search zlib/1.2.1* -r=conancenter --format=json
[
    {
        "remote": "conancenter",
        "error": null,
        "results": [
            {
                "name": "zlib",
                "id": "zlib/1.2.11"
            }
        ]
    }
]
Next Previous

© Copyright 2016-2023, JFrog. Last updated on May 30, 2023. Cookies Settings

Version: 2.0
Versions
2.0
2

1
1.60
1.59
1.58
1.57
1.56
1.55
1.54
1.53
1.52
1.51
1.50
1.49
1.48
1.47
1.46
1.45
1.44
1.43
1.42
1.41
1.40
1.39
1.38
1.37
1.36
1.35
1.34
1.33
1.32
1.31
1.30
1.29
1.28
1.27
1.26
1.25
1.24
1.23
1.22
1.21
1.20
1.19
1.18
1.17
1.16
1.15
1.14
1.13
1.12
1.11
1.10
1.9
1.8
1.7
1.6
1.5
1.4
1.3
Downloads
PDF