Skip to content

Commit 96015d5

Browse files
perseoGIAbrilRBS
andauthored
Added new format output to cache check-integrity (#4332)
* Added new format output to cache check-integrity * Update reference/commands/cache.rst Co-authored-by: Abril Rincón Blanco <[email protected]> --------- Co-authored-by: Abril Rincón Blanco <[email protected]>
1 parent 2be3cd9 commit 96015d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

reference/commands/cache.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,16 @@ For example, to verify the integrity of the whole Conan local cache, do:
212212
zlib/1.3.1:6fe7fa69f760aee504e0be85c12b2327c716f9e7: Integrity checked: ok
213213
214214
215+
This command can also return a pkglist when the ``--format=json`` option is used.
216+
This returns the packages the are corrupted, which is useful for generating a list of packages that can later be used, for example,
217+
to remove all potentially corrupted packages in a single operation:
218+
219+
.. code-block:: text
220+
221+
$ conan cache check-integrity "*" --format=json --out-file pkglist.json
222+
$ conan remove --list pkglist.json
223+
224+
215225
conan cache backup-upload
216226
-------------------------
217227

0 commit comments

Comments
 (0)