You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
powersync deploy sync-config --directory=powersync # sync-config.yaml only
40
44
```
41
45
42
46
**Single directory and link file, with `!env` substitution**
@@ -90,8 +94,18 @@ powersync link cloud --create --project-id=<project-id>
90
94
# If your token has multiple orgs: add --org-id=<org-id>
91
95
powersync validate
92
96
powersync deploy
97
+
98
+
# Optional targeted deploys:
99
+
powersync deploy service-config
100
+
powersync deploy sync-config
93
101
```
94
102
103
+
Deploy command modes:
104
+
105
+
- `powersync deploy`— deploy both service config and sync config.
106
+
- `powersync deploy service-config`— deploy only service config changes, without updating sync config.
107
+
- `powersync deploy sync-config`— deploy only sync config changes.
108
+
95
109
The instance **name** and **region** are taken from your local `service.yaml`; set them before running `powersync link cloud --create` if you want a specific display name and region.
When you only changed one file, prefer a targeted deploy command to reduce unnecessary updates.
132
+
113
133
If the config directory already exists and is linked, you can run **`powersync pull instance`** without passing IDs to refresh the local config from the cloud.
114
134
115
135
## Executing commands on an instance (no local config management)
@@ -202,7 +222,7 @@ If you decline this prompt, login exits without storing a token. Use `TOKEN` in
202
222
203
223
# Supplying Linking Information for Cloud and Self-Hosted Commands
204
224
205
-
Cloud and self-hosted commands need instance (and for Cloud, org and project) identifiers. **Cloud only:**`powersync deploy`, `powersync destroy`, `powersync stop`, `powersync fetch config`, `powersync pull instance`. **Both:**`powersync fetch status`, `powersync generate schema`, `powersync generate token`, `powersync validate`. The same three methods apply: the CLI uses the first that is available for each field (flags override environment variables, environment variables override link file). For Cloud, **org_id is optional**: when not set via flags, env, or link file, the CLI fetches the token’s organizations and uses the single org if there is exactly one; if the token has multiple orgs, the command errors and you must pass `--org-id` (or set `ORG_ID`).
225
+
Cloud and self-hosted commands need instance (and for Cloud, org and project) identifiers. **Cloud only:**`powersync deploy`, `powersync deploy service-config`, `powersync deploy sync-config`, `powersync destroy`, `powersync stop`, `powersync fetch config`, `powersync pull instance`. **Both:**`powersync fetch status`, `powersync generate schema`, `powersync generate token`, `powersync validate`. The same three methods apply: the CLI uses the first that is available for each field (flags override environment variables, environment variables override link file). For Cloud, **org_id is optional**: when not set via flags, env, or link file, the CLI fetches the token’s organizations and uses the single org if there is exactly one; if the token has multiple orgs, the command errors and you must pass `--org-id` (or set `ORG_ID`).
206
226
207
227
1.**Flags**
208
228
-**Cloud:**`--instance-id`, `--project-id` (required when using instance-id), `--org-id` (optional; defaults to token’s single org)
0 commit comments