feat(cli): add --dry-run to write operations#757
Merged
joshrotenberg merged 1 commit intomainfrom Mar 1, 2026
Merged
Conversation
Add --dry-run flag to 8 priority write commands using two mechanisms: Server-side dry-run (inserts "dryRun": true into API request body): - cloud subscription update - cloud database create (forces legacy path) - cloud database update (forces legacy path) Client-side dry-run (prints preview to stderr, exits early): - cloud subscription delete - cloud database delete - enterprise database update (shows planned request JSON) - enterprise database delete - enterprise cluster bootstrap (shows bootstrap config JSON) Closes #752
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
--dry-runflag to 8 priority write commands per --dry-run support for write operations (input validation and operation preview) #752"dryRun": trueinto API request body)--output jsonpipingCommands updated
cloud subscription updatecloud subscription deletecloud database createcloud database updatecloud database deleteenterprise database updateenterprise database deleteenterprise cluster bootstrapTest plan
cargo fmt --all -- --checkcargo clippy -p redisctl --all-targets --all-features -- -D warningscargo test -p redisctl --lib --all-features(72 passed)cargo test -p redisctl --bin redisctl --all-features(105 passed)Closes #752