Skip to content

Restructure CLI into local and cloud top-level subcommands#20

Merged
sdairs merged 2 commits intomainfrom
local-cloud-subcommands
Mar 9, 2026
Merged

Restructure CLI into local and cloud top-level subcommands#20
sdairs merged 2 commits intomainfrom
local-cloud-subcommands

Conversation

@sdairs
Copy link
Copy Markdown
Collaborator

@sdairs sdairs commented Mar 9, 2026

Summary

  • Introduces two top-level subcommands: local and cloud
  • Moves all local ClickHouse commands (install, list, use, remove, which, init, server) under clickhousectl local
  • Flattens run client to local client as a direct subcommand
  • Drops run, sql, and run local commands to simplify the CLI surface
  • Updates all help text, README, and CLAUDE.md

Before

clickhousectl install|list|use|remove|which|init|run|server|cloud

After

clickhousectl local install|list|use|remove|which|init|client|server
clickhousectl cloud auth|org|service|backup

Test plan

  • cargo build passes
  • cargo test passes (12 tests)
  • clickhousectl local --help shows all subcommands
  • clickhousectl local install stable works
  • clickhousectl local server start works
  • clickhousectl local client connects to running server
  • clickhousectl cloud --help unchanged

🤖 Generated with Claude Code

sdairs and others added 2 commits March 9, 2026 21:15
Move all local ClickHouse commands (install, list, use, remove, which,
init, run, server) under `clickhousectl local`. Cloud commands remain
under `clickhousectl cloud`. Update all help text, README, and CLAUDE.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Flatten `local run client` to `local client`. Remove the `run` subcommand
layer entirely. Drop `sql` (clickhouse-local shorthand) and `run local`
commands to simplify the CLI surface.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant