Simplify your automations with the new show all flag

We’ve added the --show-all flag to the Cloudsmith CLI, which simplifies your automation scripts by eliminating the need for pagination logic. Previously, fetching large datasets required looping to iterate through page and --page-size. Now, the CLI automatically handles the underlying pagination, fetching every requested item and returning the full list instantly. This lets you simplify your scripts and maintain less code.

Applicable commands

You can pass the --show-all flag to the following commands that support pagination:

  • License
  • Vulnerability
  • List packages
  • List repos
  • List upstreams
Passing the --show-all flag
# List All Packages
cloudsmith list packages <ORG-NAME>/<REPO-NAME> --show-all

# List All Upstreams
cloudsmith upstream <FORMAT> list <ORG-NAME>/<REPO-NAME> --show-all

# List All License Policies
cloudsmith policy license list <ORG-NAME> --show-all

# List All Vulnerability Policies
cloudsmith policy vulnerability list <ORG-NAME> --show-all

The --show-all flag is available in v.1.9.3 of the Cloudsmith CLI.

Keep up to date with our monthly product bulletin