Skip to content

[Divergence] CLI shows target instance before mutating commands and adds --dry-run to deploy (powersync-cli #64) #620

Description

@benitav

What's changing: Before deploy, deploy sync-config, deploy service-config, stop, destroy, and compact do anything, the CLI now prints the resolved target instance name and IDs; status shows the target first too, with the API URL for self-hosted instances. deploy and deploy service-config also warn when the local service.yaml name differs from the instance name, since deploying renames the instance. All deploy commands gain a new --dry-run flag that prints the target, runs validations, shows a diff of the sync config and the changed service config sections, and stops without deploying.

High priority — existing docs are now inaccurate or incomplete
None identified.

For reviewer consideration — worth documenting

  • New --dry-run flag on powersync deploy, powersync deploy sync-config, and powersync deploy service-config. The CLI page's Common Commands table lists these three deploy commands with no mention of a dry-run option, and the "Deploying From CI" section describes running powersync deploy directly with no preview step.
  • Pre-action target instance confirmation (name and IDs) now shown before deploy, stop, destroy, and compact, and before status output. No page currently mentions this confirmation step; the Common Commands table and the destroy/stop/compact rows are the closest existing coverage.

Source PR: powersync-ja/powersync-cli#64 — open, labeled "Product Visibility"

Filed automatically by Claude Code (claude-sonnet-5). A human must verify the scope, prepare the docs PR, and publish it only once this update has been released.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions