The Cloudsmith Command-Line Interface (CLI) is a Python 3 based tool that provides a text-based interface to the Cloudsmith API. It enables users, machines, and services to manage packages across various formats (e.g., Python, Maven, Docker, npm, Debian, RPM) directly from the command line, facilitating automation in CI/CD workflows. The library is actively maintained, with frequent releases, and is currently at version 1.16.0.
pip install --upgrade cloudsmith-cliNo compatibility data collected yet for this library.
This quickstart demonstrates installing the Cloudsmith CLI, authenticating using an API key via an environment variable, verifying the authentication, and listing repositories. For interactive use, `cloudsmith auth` is preferred for SAML/SSO users.
Upgrade to `cloudsmith-cli>=1.11.1`.
For SAML/SSO, use `cloudsmith auth`. For automation, set `CLOUDSMITH_API_KEY` or use a `credentials.ini` file.
Use environment variables (e.g., `export CLOUDSMITH_API_KEY=YOUR_KEY`) or a securely managed `credentials.ini` file. For CI/CD, consider GitHub Actions or CircleCI orbs that support OIDC for ephemeral token generation.
Check package metadata for correctness. If a package is corrupt, fix and re-upload. For temporary issues, try `cloudsmith resync OWNER/REPOSITORY/PACKAGE`.
For interactive login, simply run `cloudsmith login`. For SAML/SSO, use `cloudsmith auth`. For API key setup without prompts, set `CLOUDSMITH_API_KEY` environment variable.
Specify the full path to the credentials file, e.g., `cloudsmith --credentials-file ./credentials.ini <command>`. Ensure the path points to a file, not a directory.
Download the repository's GPG key from your Cloudsmith repository settings and install it on your system. Consult Cloudsmith documentation for format-specific instructions.
Double-check the exact package name/version in your client configuration. Verify repository permissions and access tokens. Consult Cloudsmith documentation specific to your package format for any unique setup requirements. Ensure package visibility is correct.