C
Cloudsmith CLI
Details
- Command
-
cloudsmith - Docs
- https://docs.cloudsmith.com/developer-tools/cli
Authentication
$ cloudsmith login In the Cloudsmith web app, open your user settings API key page as described in API Keys to view or manage your personal API key. You can also retrieve it with the CLI using cloudsmith login as noted in Cloudsmith CLI.
env CLOUDSMITH_API_KEY Create a service account from the Cloudsmith workspace/team settings described in Service Accounts. Service accounts provide a Cloudsmith API key not tied to a specific user, for automation and machine use.
env CLOUDSMITH_API_KEY Configure OpenID Connect in Cloudsmith following OpenID Connect. After setting up an external IdP/workload identity mapping, obtain a JWT from Cloudsmith's OIDC flow; the docs state this token works with Cloudsmith API endpoints and can be used like an API key in the X-Api-Key header.