This example was created by pulling an existing PowerSync Cloud instance with powersync pull instance. You do not need to run powersync init first: pull instance with your instance ID creates the config directory, writes cli.yaml, and downloads service.yaml and sync-config.yaml.
Log in (powersync login) or set the PS_ADMIN_TOKEN environment variable, then run:
# Creates powersync/, writes cli.yaml, and downloads config for the given instance
powersync pull instance --instance-id=abcThe configuration file in ./powersync/service.yaml can now be edited.
Deploy changes with
powersync deployThis project can be used with any of the cloud cli commands e.g.
powersync status
powersync generate schema --output-path=schema.ts --output=ts