Logo
2.2
  • Introduction
  • What’s new in Conan 2
  • Install
  • Tutorial
  • Devops guide
  • 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 version
      • 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
    • The binary model
    • Conan Server
  • Knowledge
  • Changelog
conan

🔍 Scan for vulnerabilities in your packages with the new conan audit command. Register now.

  • 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
Migration: Successfully updated settings.yml
Migration: Successfully updated profile.py
usage: conan search [-h] [-v [V]] [-cc CORE_CONF] [-f FORMAT] [-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
                        Global configuration for Conan
  -f FORMAT, --format FORMAT
                        Select the output format: json
  -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.2.11
    zlib/1.2.12
    zlib/1.2.13

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

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

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

© Copyright 2016-2024, JFrog. Last updated on Apr 29, 2025.

Version: 2.2
Versions
2.16
2.15
2.14
2.13
2.12
2.11
2.10
2.9
2.8
2.7
2.6
2.5
2.4
2.3
2.2
2.1
2.0
2

1
1.66
1.65
1.64
1.63
1.62
1.61
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