- Manage your PowerSync instances (PowerSync Cloud)
- Validate and deploy Sync Rules to an instance from a local file
- Generate the client-side schema
The PowerSync CLI is not yet compatible with managing self-hosted PowerSync instances (PowerSync Open Edition and PowerSync Enterprise Self-Hosted Edition). This is on our roadmap.
Getting started
To begin, initialize the CLI vianpx:
Personal Access Token
Usage
For more information on the CLI’s available commands, please refer to:npm: powersync
npm
Deploying Sync Rules with GitHub Actions
You can automate sync rule deployments using the PowerSync CLI in your CI/CD pipeline. This is useful for ensuring your sync rules are automatically deployed whenever changes are pushed to a repository.GitHub Actions Demo
See a complete example of deploying sync rules with GitHub Actions
- Set up a GitHub Actions workflow to deploy sync rules on push to the
mainbranch - Configure required repository secrets (
POWERSYNC_AUTH_TOKEN,POWERSYNC_INSTANCE_ID,POWERSYNC_PROJECT_ID,POWERSYNC_ORG_ID) - Automatically deploy
sync-rules.yamlchanges
Known issues and limitations
- Certificates cannot currently be managed from the CLI.
- The PowerSync CLI is not yet compatible with managing self-hosted PowerSync instances (PowerSync Open Edition and PowerSync Enterprise Self-Hosted Edition). This is on our roadmap.