release: cloudsmith-cli v1.21.0 - #343
Merged
Merged
Conversation
Emits a resolved credential as a versioned JSON document on stdout, so tools that cannot import the CLI can still authenticate through the full provider chain (API key, credentials.ini, system keyring, OIDC). The command takes no arguments because a Cloudsmith token is organisation-wide, so the host where it will be used does not change which credential resolves. The document is serialised in one step and a single broad exception guard protects the protocol boundary, so subprocess consumers never receive a partial document or traceback. Refusals exit non-zero with a human-readable line on stderr and nothing on stdout. The CLI wiring tests resolve from --api-key, so they never read a developer's real credentials.ini or keyring. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
BartoszBlizniak
marked this pull request as ready for review
August 3, 2026 12:37
Contributor
There was a problem hiding this comment.
Pull request overview
Releases Cloudsmith CLI v1.21.0 and introduces a new cloudsmith credential-helper generic subcommand intended for subprocess consumers, emitting a versioned JSON credential document resolved via the existing credential provider chain.
Changes:
- Bump packaged CLI version to
1.21.0and update bumpversion configuration. - Add
credential-helper genericcommand and runtime to emit a versioned JSON credential document. - Add unit tests and a changelog entry documenting the new helper and release.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| cloudsmith_cli/data/VERSION | Bumps packaged CLI version to 1.21.0. |
| .bumpversion.cfg | Updates bumpversion current_version to 1.21.0. |
| CHANGELOG.md | Adds 1.21.0 release entry describing the new generic credential helper. |
| cloudsmith_cli/credential_helpers/generic.py | Implements generic helper runtime that returns a versioned JSON document (or refusal). |
| cloudsmith_cli/cli/commands/credential_helper/generic.py | Adds the Click command wrapper that wires resolved credentials into the generic helper runtime. |
| cloudsmith_cli/cli/commands/credential_helper/init.py | Registers the new generic subcommand under credential-helper. |
| cloudsmith_cli/cli/tests/commands/test_credential_helper_generic.py | Adds tests for the runtime contract and CLI wiring. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
estebangarcia
approved these changes
Aug 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Release Cloudsmith CLI v1.21.0 and add the generic credential-helper command.
The changes were merged into the custom domain PR due to the re-pointing of stacked PRs, so I'm just bringing this over as part of the release here and will update the stack branch accordingly.
cloudsmith credential-helper genericresolves the effective credential through the CLI's existing provider chain and emits a versioned JSON document for subprocess consumers:{"version": 1, "username": "token", "password": "<resolved credential>"}The command:
credentials.ini, system keyring, then OIDC;The release updates the packaged version and bumpversion configuration from
1.20.2 to 1.21.0, with a matching changelog entry.
Type of Change
Additional Notes