feat(cli): add Workspace option aliases - #398
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the CLI’s shared “org” option to support Cloudsmith’s “Workspace” terminology while preserving backward-compatible spellings used by existing scripts and configs.
Changes:
- Added
-w/--workspaceas additional aliases for the existing internalorgoption used by OIDC and custom-domain discovery. - Updated help text, warnings, and command documentation/examples to refer to “Workspace” instead of “organisation”.
- Recorded the change in the changelog for the upcoming release.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| cloudsmith_cli/cli/tests/test_org_option.py | Extends option-alias tests to cover -w/--workspace and updates terminology in module/docs. |
| cloudsmith_cli/cli/decorators.py | Adds -w/--workspace aliases to the shared Click option and updates its help text. |
| cloudsmith_cli/cli/commands/domains.py | Updates command docs/examples and warning text to use Workspace terminology and --workspace in examples. |
| cloudsmith_cli/cli/commands/credential_helper/docker.py | Updates credential-helper documentation to refer to Workspace and --workspace. |
| cloudsmith_cli/cli/commands/credential_helper/cargo.py | Updates credential-helper documentation to refer to Workspace and --workspace. |
| CHANGELOG.md | Adds an “Added” entry documenting the new -w/--workspace aliases and compatibility guarantees. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Unify auth with the shared Workspace option, retain all legacy aliases, and prefer CLOUDSMITH_WORKSPACE and the workspace config key. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
tigh-latte
approved these changes
Aug 27, 2026
tigh-latte
left a comment
Contributor
There was a problem hiding this comment.
Pull down and tested, working well on my end
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.
Summary
-w/--workspacecloudsmith authinherit the shared flag, environment, andconfig.inivalue, prompting only when none is configuredCLOUDSMITH_WORKSPACEandworkspaceinconfig.iniacross authentication, OIDC, and custom-domain discoveryworkspaceincloudsmith domains listoutputValidation
pre-commit run --all-filespytest -m "not integration"(1,111 passed)pytest -q cloudsmith_cli/cli/tests/commands/test_domains.py(25 passed)