Cloudsmith CLI

1.16.0 · active · verified Thu Apr 16

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.

Common errors

Warnings

Install

Quickstart

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.

# Install the CLI (if not already installed)
pip install --upgrade cloudsmith-cli

# Authenticate with Cloudsmith using an API Key (recommended for CI/CD)
# Set CLOUDSMITH_API_KEY environment variable
export CLOUDSMITH_API_KEY="$CLOUDSMITH_API_KEY"

# Or for interactive login (SAML/SSO supported from v1.3.1+)
# cloudsmith auth

# Verify authentication
cloudsmith whoami

# Example: List repositories in your organization
cloudsmith list repos OWNER

# Example: Push a Python package
# cloudsmith push python OWNER/REPOSITORY path/to/your/package.whl

view raw JSON →