Skip to content

Comments

vtctld: add base CLI commands#1195

Open
nickvanw wants to merge 3 commits intomainfrom
nick/vtctld-cli-base
Open

vtctld: add base CLI commands#1195
nickvanw wants to merge 3 commits intomainfrom
nick/vtctld-cli-base

Conversation

@nickvanw
Copy link
Contributor

Summary

  • Adds the pscale branch vtctld parent command for running vtctld operations against Vitess branches
  • Implements two general-purpose subcommands: list-workflows and list-keyspaces
  • Registers the vtctld command in the branch command tree (replacing the commented-out InfraCmd)
  • Uses a local replace directive for planetscale-go while the version is finalized

This is the base PR in a stack. Subsequent PRs will add service-specific commands (MoveTables, LookupVindex, VDiff, Materialize) on top of this.

Add the vtctld parent command and the initial general-purpose
subcommands (list-workflows, list-keyspaces) that allow users to
interact with vtctld on Vitess branches. This lays the groundwork
for the service-specific commands (MoveTables, LookupVindex, VDiff,
Materialize) that will follow in subsequent PRs.

The vtctld command is hidden by default — users need to know about
it to use it.

Signed-off-by: Nick Van Wiggeren <nick@planetscale.com>
@nickvanw nickvanw force-pushed the nick/vtctld-cli-base branch from 4195ce4 to 8172bd9 Compare February 24, 2026 00:36
Adds `pscale branch vtctld start-workflow` and `stop-workflow` commands
that call the generic workflow start/stop API endpoints. These work for
any vreplication workflow type (MoveTables, Materialize, etc.).

Also bumps planetscale-go to v0.150.0 which includes the
StartWorkflow/StopWorkflow client methods.

Part of planetscale/issues#1594
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.

2 participants