Skip to content

feat(cli): support name@version syntax for --module flag#675

Merged
joshrotenberg merged 2 commits intomainfrom
feat/module-version-syntax
Feb 11, 2026
Merged

feat(cli): support name@version syntax for --module flag#675
joshrotenberg merged 2 commits intomainfrom
feat/module-version-syntax

Conversation

@joshrotenberg
Copy link
Collaborator

Summary

Closes #661

  • Adds name@version syntax to --module flag for enterprise database create, allowing users to disambiguate when multiple versions of the same module exist on the cluster
  • Extracts shared parse_module_spec helper that parses name[@version][:args] format, used in both create and update paths
  • Updates the multi-match error message to suggest @version syntax with available versions listed as name@version

Examples:

  • --module search — auto-resolve (works if only one version exists)
  • --module search@2.10.27 — use specific version
  • --module search@2.10.27:PARTITIONS=AUTO — specific version with args

Test plan

  • Unit tests for parse_module_spec covering all format variations (name only, name+version, name+args, name+version+args)
  • cargo build -p redisctl passes
  • cargo clippy -p redisctl --all-targets --all-features -- -D warnings clean
  • cargo test -p redisctl passes (all 8 new tests green)

When multiple versions of the same module exist on a Redis Enterprise
cluster, the `--module` flag now accepts `name@version` to disambiguate.
The error message for ambiguous modules suggests the `@version` syntax.
@joshrotenberg joshrotenberg merged commit a9d087a into main Feb 11, 2026
16 checks passed
@joshrotenberg joshrotenberg deleted the feat/module-version-syntax branch February 11, 2026 08:15
@joshrotenberg joshrotenberg mentioned this pull request Feb 11, 2026
This was referenced Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Module version resolution: Cannot specify which version when multiple exist

1 participant