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
WARN: Downgrading cache from Conan 2.1.0 to 2.0.17
usage: conan search [-h] [-v [V]] [-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.
optional arguments:
-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
-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": {}
}
}