Cloudsmith - List files in a repo using the cloudsmith CLI
by
Jeremy Canfield |
Updated: November 21 2025
| 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 