How cloudsmith-io/cloudsmith-cli works
Cloudsmith CLI is a Python command-line client for Cloudsmith’s REST API. Users invoke commands through the lazy command-line entry point; command families cover package transfer and lifecycle, repository administration, authentication, and organization features such as policies and quotas. The CLI’s API layer configures requests and the shared HTTP session handles transport concerns. The README documents the broad command capabilities, while sampled source and the SOURCE INDEX support only selected internal links; uncertain command-to-API details are therefore represented at the documented API boundary.
Main entry points: main.py Main command group · auth.py Authentication · __main__.py CLI entry point · commands Package lifecycle
Components 20
CLI entry
- CLI entry point
cloudsmith_cli/__main__.py - Command dispatch
cloudsmith_cli/cli/command.py - Main command group
cloudsmith_cli/cli/commands/main.py - CLI configuration
cloudsmith_cli/cli/config.py
Package workflows
- Package lifecycle
cloudsmith_cli/cli/commands - Package upload
cloudsmith_cli/cli/commands/push.py - Package download
cloudsmith_cli/core/download.py
Account and administration
- Repository management
cloudsmith_cli/cli/commands/repos.py - Authentication
cloudsmith_cli/cli/commands/auth.py - SAML and SSO
cloudsmith_cli/core/sso.py - Organization policies
cloudsmith_cli/cli/commands/policy - Quota reporting
cloudsmith_cli/cli/commands/quota - Repository metrics
cloudsmith_cli/cli/commands/metrics
API and transport
- API configuration
cloudsmith_cli/core/api/init.py - API resources
cloudsmith_cli/core/api - HTTP session
cloudsmith_cli/core/session.py
Integrations
- MCP server
cloudsmith_cli/core/mcp/server.py
Other components
- CLI user
- Cloudsmith REST API
- MCP client
Connections 17
- CLI user → CLI entry point: runs
cloudsmith_cli/__main__.py - CLI entry point → Main command group: invokes
cloudsmith_cli/__main__.py - Main command group → Command dispatch: configures
cloudsmith_cli/cli/commands/main.py - Main command group → CLI configuration: uses
cloudsmith_cli/cli/commands/main.py - Main command group → Package lifecycle: dispatches
cloudsmith_cli/cli/commands/main.py - Package lifecycle → Cloudsmith REST API: manages packages
- Package upload → Cloudsmith REST API: uploads packages
- Package download → Cloudsmith REST API: downloads packages
- Repository management → Cloudsmith REST API: manages repositories
- Authentication → SAML and SSO: uses SSO
cloudsmith_cli/cli/commands/auth.py - Authentication → Cloudsmith REST API: authenticates
- Organization policies → Cloudsmith REST API: manages policies
- Quota reporting → Cloudsmith REST API: reads quotas
- Repository metrics → Cloudsmith REST API: reads metrics
- API configuration → HTTP session: configures transport
cloudsmith_cli/core/api/init.py - API resources → Cloudsmith REST API: calls
- MCP client → MCP server: connects
cloudsmith_cli/core/mcp/server.py