Merged
Conversation
Adds a new subcommand that connects to a ClickHouse Cloud service using the native clickhouse-client. Resolves service by --name or --id, auto-downloads the matching ClickHouse version, and supports multiple password methods (flag, env var, TTY prompt, or hidden --generate-password that resets via API). Closes #56 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove redundant subcommand listings and flag descriptions from CONTEXT FOR AGENTS sections — focus on non-obvious guidance only. Also remove hidden --generate-password from agent context. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Tests query-by-id and query-by-name against a live cloud service using the password from service creation. Runs in the Capability Checks phase of the existing CRUD lifecycle test. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add --password to the redact list in redact_command so passwords never appear in CI output - Add integration test for --generate-password (resets password via API and uses it to query) - Add unit test verifying password redaction works Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Open IP access (0.0.0.0/0) before client tests so CI runner can connect, remove it after - Change install_version progress messages from println to eprintln so they don't contaminate clickhouse-client stdout output Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resolve the version spec to an exact version before checking if it's installed. Previously "25.12" would miss the existing "25.12.9.61" directory, causing install_version to fail on the second call. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Wait in case of any delay in password propagation after an API reset. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
iskakaushik
approved these changes
Mar 30, 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.
Summary
cloud service clientsubcommand to connect to ClickHouse Cloud services via the nativeclickhouse-client--name(service name) or--id(service ID)local installlogic--allow-mismatched-client-versionflag to use the local default version instead (with a warning)--passwordflag >CLICKHOUSE_PASSWORDenv var > interactive TTY prompt > error--generate-passwordflag that resets the service password via API and uses it (agent-friendly escape hatch)local clientflags:--query,--queries-file,--user, and--passthrough argsUsage
Test plan
cloud service client --helpshows expected flags--generate-passwordis hidden from help but accepted--namelookup,--idlookup--allow-mismatched-client-versionwith a local default setCloses #56
🤖 Generated with Claude Code