{"id":15137033,"url":"https://github.com/jgsogo/jcli-conan-center","last_synced_at":"2026-01-19T05:33:05.996Z","repository":{"id":55667104,"uuid":"315083944","full_name":"jgsogo/jcli-conan-center","owner":"jgsogo","description":"A plugin for JFrog CLI to manage a ConanCenter-like repository","archived":false,"fork":false,"pushed_at":"2020-12-14T08:20:14.000Z","size":178,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T10:18:14.805Z","etag":null,"topics":["conan","conan-center","jfrog-cli"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgsogo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-22T16:40:28.000Z","updated_at":"2023-12-19T23:58:25.000Z","dependencies_parsed_at":"2022-08-15T06:00:47.560Z","dependency_job_id":null,"html_url":"https://github.com/jgsogo/jcli-conan-center","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"jfrog/jfrog-cli-plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgsogo%2Fjcli-conan-center","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgsogo%2Fjcli-conan-center/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgsogo%2Fjcli-conan-center/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgsogo%2Fjcli-conan-center/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgsogo","download_url":"https://codeload.github.com/jgsogo/jcli-conan-center/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430835,"owners_count":20937873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conan","conan-center","jfrog-cli"],"created_at":"2024-09-26T06:43:02.706Z","updated_at":"2026-01-19T05:33:05.991Z","avatar_url":"https://github.com/jgsogo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jcli-conan-center\n\n![Test Across Matrix](https://github.com/jgsogo/jcli-conan-center/workflows/Test%20Across%20Matrix/badge.svg?branch=master)\n![Lint Go Code](https://github.com/jgsogo/jcli-conan-center/workflows/Lint%20Go%20Code/badge.svg?branch=master)\n[![Go Reference](https://pkg.go.dev/badge/github.com/jgsogo/jcli-conan-center.svg)](https://pkg.go.dev/github.com/jgsogo/jcli-conan-center)\n[![codecov](https://codecov.io/gh/jgsogo/jcli-conan-center/branch/master/graph/badge.svg)](https://codecov.io/gh/jgsogo/jcli-conan-center)\n\n\n## About this plugin\nThis is a JFrog CLI plugin to manage Conan repositories. Some of its commands\nexpect to find properties associated to packages as of those in Conan Center.\n\n\n## Installation with JFrog CLI\nSince this plugin is currently not included in [JFrog CLI Plugins Registry](https://github.com/jfrog/jfrog-cli-plugins-reg),\nit needs to be built and installed manually. Follow these steps to install and use this plugin with JFrog CLI.\n1. Make sure JFrog CLI is installed on you machine by running ```jfrog```. If it is not installed, [install](https://jfrog.com/getcli/) it.\n2. Create a directory named ```plugins``` under ```~/.jfrog/``` if it does not exist already.\n3. Clone this repository.\n4. CD into the root directory of the cloned project.\n5. Run ```go build``` to create the binary in the current directory.\n6. Copy the binary into the ```~/.jfrog/plugins``` directory.\n\n\n## Commands\n\nThis plugin requires a valid authentication to Artifactory, use JFrog CLI as usual\nto provide credentials and configure the connection.\n\nAvailable commands:\n\n * Search packages: `search [command options] \u003crepo\u003e`\n * Get properties: `properties [command options] \u003crepo\u003e \u003creference\u003e`\n * Indexeer JSON call: `index-reference [command options] \u003crepo\u003e \u003creference\u003e`\n\n**Note.-** Commands are documented using the plugin isolated, to use them within\nJFrog CLI just change the `go run main.go` with `jfrog conan-center` after installing\nit.\n\n## Search packages: `search [command options] \u003crepo\u003e`\n\nReturns the list of Conan references in a given Artifactory repository\n\n* Arguments:\n\n  * `repo`: Name of the Artifactory repository\n\n* Flags:\n\n  * `--server-id` [Optional]: Artifactory server ID configured using the config\n    command. If not specified, the default configured Artifactory server is used.\n  * `--ref-name` [Optional]: Name of the Conan reference to search (only the name).\n    If not set, it will search for all references.\n  * `--packages` [Default: `false`]: If specified, it will retrieve Conan packages\n    instead of references.\n  * `--only-latest` [Default: `false`]: If specified, it will retrieve only the latest\n    revision for packages or recipes.\n\n\n\u003cdetails\u003e\u003csummary\u003eExample: all references (all revisions) in a repository\u003c/summary\u003e\n\u003cp\u003e\n\n```\n$\u003e go run main.go search conan-center\n\n[Info] Found 171 references.\noptional-lite/3.2.0#084d0464901dd0fe38a2bd9ddfb5f1df\noptional-lite/3.2.0#54a8db3bf59eda2b62f21758b91473ee\noptional-lite/3.2.0#dfe10998d2a51a857e69cc34cb5ff91b\nnasm/2.13.01#250720a29c2eaaccf49ea3df06f2772a\nnasm/2.13.01#63659723342a256b38af04c8fe0237ce\nopenssl/1.1.1c#efa6db368062e31e64cad382990970e3\nopenssl/1.1.1f#cda22c20cbf83946b5313386f88267ab\nboost/1.73.0#26a99093ce49eabfb628051ea23f7242\nspan-lite/new-version-bump#0d114658ddebb6582b1bb1068f9f60d8\n...\n```\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eExample: all references (latest revision) in a repository\u003c/summary\u003e\n\u003cp\u003e\n\n```\n$\u003e go run main.go search conan-center --only-latest\n\n[Info] Found 95 references.\noptional-lite/3.2.0#dfe10998d2a51a857e69cc34cb5ff91b\nnasm/2.14#e2ed38224348da1b0e31223aae547690\nopenssl/1.0.2s#f3ac03b5eb67f428a21444ebdae8d0b6\nopenssl/1.1.0l#7f3fa5cfcfba31fffa344c71a9795176\n...\n```\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eExample: Search reference by name (latest revision)\u003c/summary\u003e\n\u003cp\u003e\n\n```\n$\u003e go run main.go search conan-center --ref-name=b2 --only-latest\n\n[Info] Found 5 references.\nb2/4.0.0#3c07b6a54477e856d429493d01c85636\nb2/4.0.1#fe103dcc7b9fa2226d82f5fb43af1d09\nb2/4.2.0#efacbfac6ee3561ff07968a372b940af\nb2/4.1.0#87e5e0e1d7eab23643ca941d08aecac7\nb2/4.3.0#ec8af29b790f5745890470ce4220ed50\n...\n```\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eExample: Packages by reference name (latest revision)\u003c/summary\u003e\n\u003cp\u003e\n\n```\n$\u003e go run main.go search conan-center --ref-name=b2 --only-latest --packages\n\nFound 15 packages:\nb2/4.0.0#3c07b6a54477e856d429493d01c85636:4db1be536558d833e52e862fd84d64d75c2b3656#513adef99548254b2b5800a5fc3569c6\nb2/4.0.0#3c07b6a54477e856d429493d01c85636:46f53f156846659bf39ad6675fa0ee8156e859fe#f62ce7a872642c6b5beb8ae1fed2131b\nb2/4.0.0#3c07b6a54477e856d429493d01c85636:ca33edce272a279b24f87dc0d4cf5bbdcffbc187#5f27426c663ab6ef42a368cc5f41be25\nb2/4.0.1#fe103dcc7b9fa2226d82f5fb43af1d09:ca33edce272a279b24f87dc0d4cf5bbdcffbc187#a462982b96300ac531d82ce34c84ab60\nb2/4.0.1#fe103dcc7b9fa2226d82f5fb43af1d09:46f53f156846659bf39ad6675fa0ee8156e859fe#b9345d42018a28b312bdfcb37fc32f7f\nb2/4.0.1#fe103dcc7b9fa2226d82f5fb43af1d09:4db1be536558d833e52e862fd84d64d75c2b3656#61e82452df2c33f90fdaafd84a3fcbb9\nb2/4.2.0#efacbfac6ee3561ff07968a372b940af:ca33edce272a279b24f87dc0d4cf5bbdcffbc187#6ea9badc4dd235e150326d1460ca61b0\nb2/4.2.0#efacbfac6ee3561ff07968a372b940af:46f53f156846659bf39ad6675fa0ee8156e859fe#1d55eb15426c7b4f58fd685a82798f2c\nb2/4.2.0#efacbfac6ee3561ff07968a372b940af:4db1be536558d833e52e862fd84d64d75c2b3656#f9d9ecd0a8f306a14ec77b3b14f7284a\n...\n```\n\u003c/p\u003e\n\u003c/details\u003e\n\n\n## Get properties: `properties [command options] \u003crepo\u003e \u003creference\u003e`\n\nReturns the properties associated to a given Conan reference in a given Artifactory repository\n\n* Arguments:\n\n  * `repo`: Name of the Artifactory repository\n  * `reference`: Conan reference to work with (use v2 style, without trailing @).\n    If no revision is given, it will use latest one\n\n* Flags:\n\n  * `--server-id` [Optional]: Artifactory server ID configured using the config\n    command. If not specified, the default configured Artifactory server is used.\n  * `--packages` [Default: `false`]: If specified, it will retrieve properties\n    from packages as well.\n\n\u003cdetails\u003e\u003csummary\u003eExample: Return properties for a given reference\u003c/summary\u003e\n\u003cp\u003e\n\n```\n$\u003e go run main.go properties conan-center b2/4.3.0#ec8af29b790f5745890470ce4220ed50\n\nReference 'b2/4.3.0#ec8af29b790f5745890470ce4220ed50':\n  topics: conan\n  topics: builder\n  settings: os\n  url: https://github.com/conan-io/conan-center-index\n  options: use_cxx_env\n  license: BSL-1.0\n  settings: arch\n  topics: boost\n  version: 4.3.0\n  deprecated: \n  options: toolset\n  name: b2\n  channel: \n  description: B2 makes it easy to build C++ projects, everywhere.\n  topics: installer\n  homepage: https://boostorg.github.io/build/\n  user:\n```\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eExample: Return properties for a reference (latest revision)\nand all the packages associated to it\u003c/summary\u003e\n\u003cp\u003e\n\n```\n$\u003e go run main.go properties conan-center b2/4.3.0 --packages\n\nReference 'b2/4.3.0#ec8af29b790f5745890470ce4220ed50':\n  topics: conan\n  topics: builder\n  settings: os\n  url: https://github.com/conan-io/conan-center-index\n  options: use_cxx_env\n  license: BSL-1.0\n  settings: arch\n  topics: boost\n  version: 4.3.0\n  deprecated: \n  options: toolset\n  name: b2\n  channel: \n  description: B2 makes it easy to build C++ projects, everywhere.\n  topics: installer\n  homepage: https://boostorg.github.io/build/\n  user: \nPackage 'b2/4.3.0#ec8af29b790f5745890470ce4220ed50:46f53f156846659bf39ad6675fa0ee8156e859fe#91521b313ac2e32c6306677464116901':\n  settings: build_type=Release\n  topics: conan\n  ...\nPackage 'b2/4.3.0#ec8af29b790f5745890470ce4220ed50:4db1be536558d833e52e862fd84d64d75c2b3656#675b3df28a8ad03689634e1b4f46187f':\n  topics: boost\n  settings: os=Linux\n  ...\n```\n\u003c/p\u003e\n\u003c/details\u003e\n\n\n## Indexeer JSON call: `index-reference [command options] \u003crepo\u003e \u003creference\u003e`\n\nReturns the properties associated to a given Conan reference in a given Artifactory repository\n\n* Arguments:\n\n  * `repo`: Name of the Artifactory repository\n  * `reference`: Conan reference to work with (use v2 style, without trailing @).\n    If no revision is given, it will use latest one.\n\n* Flags:\n\n  * `--server-id` [Optional]: Artifactory server ID configured using the config\n    command. If not specified, the default configured Artifactory server is used.\n  * `--force` [Default: `false`]: Value for argument `force` in the indexer call.\n\n\u003cdetails\u003e\u003csummary\u003eExample: Indexer call for a reference\u003c/summary\u003e\n\u003cp\u003e\n\n```json\n$\u003e go run main.go index-reference conan-center b2/4.3.0 --force\n\n{\n        \"user\": \"\",\n        \"channel\": \"\",\n        \"recipe_revision\": \"ec8af29b790f5745890470ce4220ed50\",\n        \"name\": \"b2\",\n        \"version\": \"4.3.0\",\n        \"description\": \"B2 makes it easy to build C++ projects, everywhere.\",\n        \"license\": \"BSL-1.0\",\n        \"homepage\": \"https://boostorg.github.io/build/\",\n        \"giturl\": \"https://github.com/conan-io/conan-center-index\",\n        \"topics\": \"conan,builder,boost,installer\",\n        \"requires\": null,\n        \"packages\": [\n                {\n                        \"package_id\": \"46f53f156846659bf39ad6675fa0ee8156e859fe\",\n                        \"version\": \"4.3.0\",\n                        \"package_revision\": \"91521b313ac2e32c6306677464116901\",\n                        \"settings\": {\n                                \"arch\": \"x86_64\",\n                                \"arch_build\": \"x86_64\",\n                                \"build_type\": \"Release\",\n                                \"compiler\": \"apple-clang\",\n                                \"compiler_libcxx\": \"libc++\",\n                                \"compiler_version\": \"10.0\",\n                                \"os\": \"Macos\",\n                                \"os_build\": \"Macos\"\n                        }\n                },\n                {\n                        \"package_id\": \"4db1be536558d833e52e862fd84d64d75c2b3656\",\n                        \"version\": \"4.3.0\",\n                        \"package_revision\": \"675b3df28a8ad03689634e1b4f46187f\",\n                        \"settings\": {\n                                \"arch\": \"x86_64\",\n                                \"arch_build\": \"x86_64\",\n                                \"build_type\": \"Release\",\n                                \"compiler\": \"gcc\",\n                                \"compiler_libcxx\": \"libstdc++\",\n                                \"compiler_version\": \"4.9\",\n                                \"os\": \"Linux\",\n                                \"os_build\": \"Linux\"\n                        }\n                },\n                {\n                        \"package_id\": \"ca33edce272a279b24f87dc0d4cf5bbdcffbc187\",\n                        \"version\": \"4.3.0\",\n                        \"package_revision\": \"2904158bb9b96db13de732f1c8ca4b64\",\n                        \"settings\": {\n                                \"arch\": \"x86_64\",\n                                \"arch_build\": \"x86_64\",\n                                \"build_type\": \"Release\",\n                                \"compiler\": \"Visual Studio\",\n                                \"compiler_runtime\": \"MT\",\n                                \"compiler_version\": \"14\",\n                                \"os\": \"Windows\",\n                                \"os_build\": \"Windows\"\n                        }\n                }\n        ],\n        \"force\": true,\n        \"force_requires\": true,\n        \"force_settings\": true\n}\n```\n\u003c/p\u003e\n\u003c/details\u003e\n\n\n## Additional info\nWork in progress.\n\n## Release Notes\nThe release notes are available [here](RELEASE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgsogo%2Fjcli-conan-center","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgsogo%2Fjcli-conan-center","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgsogo%2Fjcli-conan-center/lists"}