To identify a package, you need to obtain the Unique ID for the package (also called slug_perm for backward compatibility reasons)
You can get this either via the CLI or the Website UI.
You can get the Unique ID from the JSON output of the
cloudsmith list packages command:
cloudsmith list packages OWNER/REPOSITORY -F pretty_json
The JSON output from this command includes the field
slug_perm (Unique ID)
You can use the
-q flag to filter for a format or filename and pipe the output to a tool such as
jq to further filter the fields from the JSON output.
cloudsmith list packages demo/examples-repo -F pretty_json -q "format:cargo" | jq -r ".data.filename, .data.slug_perm"
The Unique ID for a package is also displayed as part of the output when pushing a package to a repository using the
cloudsmith push command:
The Unique ID is also available in the Metadata tab on the package detail page:
Updated almost 2 years ago