Bootstrap FreeKB - Cloudsmith - List files in a repo using the cloudsmith CLI
Cloudsmith - List files in a repo using the cloudsmith CLI

Updated:   |  Cloudsmith articles

The cloudsmith list packages command can be used to list the files in one of your Cloudsmith repos. In this example, there are 3 files in my-org/my-repo.

~]$ cloudsmith list packages my-org/my-repo --api-key <your Cloudsmith API key> --output-format json | jq .data[] | jq .files[] | jq --raw-output .filename
file1.txt
file3.txt
file3.txt

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 4a24bf in the box below so that we can be sure you are a human.