powersync 0.9.6 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -144
- package/dist/api/cloud/validate-cloud-link-config.d.ts +12 -8
- package/dist/api/cloud/validate-cloud-link-config.js +14 -22
- package/dist/api/cloud/validate-cloud-link-config.js.map +1 -1
- package/dist/api/validations/cloud-validations.js +2 -2
- package/dist/api/validations/cloud-validations.js.map +1 -1
- package/dist/api/validations/self-hosted-validations.js +2 -2
- package/dist/api/validations/self-hosted-validations.js.map +1 -1
- package/dist/api/validations/validation-utils.d.ts +3 -13
- package/dist/api/validations/validation-utils.js +2 -73
- package/dist/api/validations/validation-utils.js.map +1 -1
- package/dist/api/validations/validations.d.ts +2 -6
- package/dist/api/validations/validations.js +31 -51
- package/dist/api/validations/validations.js.map +1 -1
- package/dist/commands/deploy/index.js +1 -4
- package/dist/commands/deploy/index.js.map +1 -1
- package/dist/commands/deploy/service-config.js +1 -4
- package/dist/commands/deploy/service-config.js.map +1 -1
- package/dist/commands/deploy/sync-config.js +1 -4
- package/dist/commands/deploy/sync-config.js.map +1 -1
- package/dist/commands/fetch/status.js +1 -1
- package/dist/commands/fetch/status.js.map +1 -1
- package/dist/commands/generate/schema.js +1 -1
- package/dist/commands/generate/schema.js.map +1 -1
- package/dist/commands/init/cloud.js +1 -1
- package/dist/commands/init/cloud.js.map +1 -1
- package/dist/commands/link/cloud.js +33 -22
- package/dist/commands/link/cloud.js.map +1 -1
- package/dist/commands/pull/index.js +1 -1
- package/dist/commands/pull/index.js.map +1 -1
- package/dist/commands/pull/instance.js +58 -35
- package/dist/commands/pull/instance.js.map +1 -1
- package/oclif.manifest.json +156 -87
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -129,11 +129,11 @@ This avoids re-supplying the raw password in subsequent deploys while reusing th
|
|
|
129
129
|
|
|
130
130
|
## Using an existing instance (pull)
|
|
131
131
|
|
|
132
|
-
Run **`powersync pull instance`** with the instance
|
|
132
|
+
Run **`powersync pull instance`** with the instance ID (from the PowerSync Dashboard URL or **`powersync fetch instances`**). This creates the config directory, writes **`cli.yaml`**, and downloads **`service.yaml`** and **`sync-config.yaml`**. Edit as needed, then run **`powersync deploy`**.
|
|
133
133
|
|
|
134
134
|
```sh
|
|
135
135
|
powersync login
|
|
136
|
-
powersync pull instance --
|
|
136
|
+
powersync pull instance --instance-id=<instance-id>
|
|
137
137
|
# then edit powersync/service.yaml and sync-config.yaml as needed
|
|
138
138
|
powersync deploy
|
|
139
139
|
```
|
|
@@ -144,18 +144,17 @@ To refresh local config after external edits from the cloud when already linked,
|
|
|
144
144
|
|
|
145
145
|
You can run CLI commands (e.g. **`powersync generate schema`**, **`powersync generate token`**, **`powersync status`**) against a Cloud instance whose configuration is managed elsewhere—for example in the PowerSync Dashboard. No local config directory or link file is required.
|
|
146
146
|
|
|
147
|
-
Specify the instance using
|
|
147
|
+
Specify the instance using **`--instance-id`** (or the `INSTANCE_ID` environment variable). Org and project are resolved automatically from the instance.
|
|
148
148
|
|
|
149
149
|
```sh
|
|
150
150
|
powersync login
|
|
151
|
-
powersync generate schema --instance-id=<id> --
|
|
152
|
-
# or with env
|
|
153
|
-
export PROJECT_ID=<project-id>
|
|
151
|
+
powersync generate schema --instance-id=<id> --output-path=schema.ts --output=ts
|
|
152
|
+
# or with an env var:
|
|
154
153
|
export INSTANCE_ID=<instance-id>
|
|
155
154
|
powersync generate schema --output-path=schema.ts --output=ts
|
|
156
155
|
```
|
|
157
156
|
|
|
158
|
-
**Tip:** To avoid passing instance
|
|
157
|
+
**Tip:** To avoid passing `--instance-id` on every command, run **`powersync link cloud --instance-id=<id>`** once. The CLI writes `cli.yaml` in the current directory, and subsequent commands use that instance without flags or env vars.
|
|
159
158
|
|
|
160
159
|
# Self-hosted
|
|
161
160
|
|
|
@@ -239,7 +238,7 @@ $ npm install -g powersync
|
|
|
239
238
|
$ powersync COMMAND
|
|
240
239
|
running command...
|
|
241
240
|
$ powersync (--version)
|
|
242
|
-
powersync/0.
|
|
241
|
+
powersync/0.10.1 linux-x64 node-v24.20.0
|
|
243
242
|
$ powersync --help [COMMAND]
|
|
244
243
|
USAGE
|
|
245
244
|
$ powersync COMMAND
|
|
@@ -253,15 +252,13 @@ USAGE
|
|
|
253
252
|
You can supply instance and auth context via environment variables (useful for CI or scripts):
|
|
254
253
|
|
|
255
254
|
- **`PS_ADMIN_TOKEN`** — PowerSync personal access token for Cloud commands. [Learn more](https://docs.powersync.com/usage/tools/cli#personal-access-token).
|
|
256
|
-
- **`ORG_ID`** — Organization ID (optional for Cloud). Omit when your token has a single organization; required when it has multiple.
|
|
257
|
-
- **`PROJECT_ID`** — Project ID (Cloud).
|
|
258
255
|
- **`INSTANCE_ID`** — Instance ID (Cloud). Get IDs from the [PowerSync Dashboard](https://dashboard.powersync.com) or **`powersync fetch instances`**.
|
|
259
256
|
- **`API_URL`** — Self-hosted PowerSync API base URL (e.g. `https://powersync.example.com`).
|
|
260
257
|
|
|
261
258
|
Example (Cloud):
|
|
262
259
|
|
|
263
260
|
```sh
|
|
264
|
-
PS_ADMIN_TOKEN=your-token
|
|
261
|
+
PS_ADMIN_TOKEN=your-token INSTANCE_ID=123 powersync status
|
|
265
262
|
```
|
|
266
263
|
|
|
267
264
|
See [docs/usage.md](../docs/usage.md) for full usage and resolution order (flags, env, cli.yaml).
|
|
@@ -340,7 +337,7 @@ EXAMPLES
|
|
|
340
337
|
$ powersync autocomplete --refresh-cache
|
|
341
338
|
```
|
|
342
339
|
|
|
343
|
-
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.
|
|
340
|
+
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.50/src/commands/autocomplete/index.ts)_
|
|
344
341
|
|
|
345
342
|
## `powersync commands`
|
|
346
343
|
|
|
@@ -369,7 +366,7 @@ DESCRIPTION
|
|
|
369
366
|
List all powersync commands.
|
|
370
367
|
```
|
|
371
368
|
|
|
372
|
-
_See code: [@oclif/plugin-commands](https://github.com/oclif/plugin-commands/blob/4.1.
|
|
369
|
+
_See code: [@oclif/plugin-commands](https://github.com/oclif/plugin-commands/blob/4.1.57/src/commands/commands.ts)_
|
|
373
370
|
|
|
374
371
|
## `powersync compact`
|
|
375
372
|
|
|
@@ -377,8 +374,7 @@ _See code: [@oclif/plugin-commands](https://github.com/oclif/plugin-commands/blo
|
|
|
377
374
|
|
|
378
375
|
```
|
|
379
376
|
USAGE
|
|
380
|
-
$ powersync compact [--directory <value>] [--instance-id <value>
|
|
381
|
-
[--timeout <value>]
|
|
377
|
+
$ powersync compact [--directory <value>] [--instance-id <value>] [--timeout <value>]
|
|
382
378
|
|
|
383
379
|
FLAGS
|
|
384
380
|
--timeout=<value> [default: 30] Maximum time to wait for compaction to complete, in minutes. Use 0 to wait
|
|
@@ -391,9 +387,6 @@ PROJECT FLAGS
|
|
|
391
387
|
|
|
392
388
|
CLOUD_PROJECT FLAGS
|
|
393
389
|
--instance-id=<value> PowerSync Cloud instance ID. Manually passed if the current context has not been linked.
|
|
394
|
-
--org-id=<value> Organization ID (optional). Defaults to the token’s single org when only one is available; pass
|
|
395
|
-
explicitly if the token has multiple orgs.
|
|
396
|
-
--project-id=<value> Project ID. Manually passed if the current context has not been linked.
|
|
397
390
|
|
|
398
391
|
DESCRIPTION
|
|
399
392
|
[Cloud only] Compact the linked Cloud instance.
|
|
@@ -408,7 +401,7 @@ EXAMPLES
|
|
|
408
401
|
$ powersync compact --timeout=0
|
|
409
402
|
```
|
|
410
403
|
|
|
411
|
-
_See code: [src/commands/compact.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
404
|
+
_See code: [src/commands/compact.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/compact.ts)_
|
|
412
405
|
|
|
413
406
|
## `powersync configure ide`
|
|
414
407
|
|
|
@@ -428,7 +421,7 @@ EXAMPLES
|
|
|
428
421
|
$ powersync configure ide
|
|
429
422
|
```
|
|
430
423
|
|
|
431
|
-
_See code: [src/commands/configure/ide.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
424
|
+
_See code: [src/commands/configure/ide.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/configure/ide.ts)_
|
|
432
425
|
|
|
433
426
|
## `powersync deploy`
|
|
434
427
|
|
|
@@ -436,8 +429,8 @@ _See code: [src/commands/configure/ide.ts](https://github.com/powersync-ja/power
|
|
|
436
429
|
|
|
437
430
|
```
|
|
438
431
|
USAGE
|
|
439
|
-
$ powersync deploy [--deploy-timeout <value>] [--directory <value>] [--instance-id <value>
|
|
440
|
-
|
|
432
|
+
$ powersync deploy [--deploy-timeout <value>] [--directory <value>] [--instance-id <value>]
|
|
433
|
+
[--sync-config-file-path <value>] [--skip-validations <value> | --validate-only <value>]
|
|
441
434
|
|
|
442
435
|
FLAGS
|
|
443
436
|
--deploy-timeout=<value> [default: 300] Seconds to wait after scheduling a deploy before timing out while polling
|
|
@@ -456,9 +449,6 @@ PROJECT FLAGS
|
|
|
456
449
|
|
|
457
450
|
CLOUD_PROJECT FLAGS
|
|
458
451
|
--instance-id=<value> PowerSync Cloud instance ID. Manually passed if the current context has not been linked.
|
|
459
|
-
--org-id=<value> Organization ID (optional). Defaults to the token’s single org when only one is available; pass
|
|
460
|
-
explicitly if the token has multiple orgs.
|
|
461
|
-
--project-id=<value> Project ID. Manually passed if the current context has not been linked.
|
|
462
452
|
|
|
463
453
|
DESCRIPTION
|
|
464
454
|
[Cloud only] Deploy local config to the linked Cloud instance (connections + auth + sync config).
|
|
@@ -471,10 +461,10 @@ DESCRIPTION
|
|
|
471
461
|
EXAMPLES
|
|
472
462
|
$ powersync deploy
|
|
473
463
|
|
|
474
|
-
$ powersync deploy --instance-id=<id>
|
|
464
|
+
$ powersync deploy --instance-id=<id>
|
|
475
465
|
```
|
|
476
466
|
|
|
477
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
467
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/deploy/index.ts)_
|
|
478
468
|
|
|
479
469
|
## `powersync deploy service-config`
|
|
480
470
|
|
|
@@ -482,8 +472,8 @@ _See code: [src/commands/deploy/index.ts](https://github.com/powersync-ja/powers
|
|
|
482
472
|
|
|
483
473
|
```
|
|
484
474
|
USAGE
|
|
485
|
-
$ powersync deploy service-config [--deploy-timeout <value>] [--directory <value>] [--instance-id <value>
|
|
486
|
-
|
|
475
|
+
$ powersync deploy service-config [--deploy-timeout <value>] [--directory <value>] [--instance-id <value>]
|
|
476
|
+
[--skip-validations <value> | --validate-only <value>]
|
|
487
477
|
|
|
488
478
|
FLAGS
|
|
489
479
|
--deploy-timeout=<value> [default: 300] Seconds to wait after scheduling a deploy before timing out while polling
|
|
@@ -500,9 +490,6 @@ PROJECT FLAGS
|
|
|
500
490
|
|
|
501
491
|
CLOUD_PROJECT FLAGS
|
|
502
492
|
--instance-id=<value> PowerSync Cloud instance ID. Manually passed if the current context has not been linked.
|
|
503
|
-
--org-id=<value> Organization ID (optional). Defaults to the token’s single org when only one is available; pass
|
|
504
|
-
explicitly if the token has multiple orgs.
|
|
505
|
-
--project-id=<value> Project ID. Manually passed if the current context has not been linked.
|
|
506
493
|
|
|
507
494
|
DESCRIPTION
|
|
508
495
|
[Cloud only] Deploy only local service config to the linked Cloud instance.
|
|
@@ -512,10 +499,10 @@ DESCRIPTION
|
|
|
512
499
|
EXAMPLES
|
|
513
500
|
$ powersync deploy service-config
|
|
514
501
|
|
|
515
|
-
$ powersync deploy service-config --instance-id=<id>
|
|
502
|
+
$ powersync deploy service-config --instance-id=<id>
|
|
516
503
|
```
|
|
517
504
|
|
|
518
|
-
_See code: [src/commands/deploy/service-config.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
505
|
+
_See code: [src/commands/deploy/service-config.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/deploy/service-config.ts)_
|
|
519
506
|
|
|
520
507
|
## `powersync deploy sync-config`
|
|
521
508
|
|
|
@@ -523,8 +510,8 @@ _See code: [src/commands/deploy/service-config.ts](https://github.com/powersync-
|
|
|
523
510
|
|
|
524
511
|
```
|
|
525
512
|
USAGE
|
|
526
|
-
$ powersync deploy sync-config [--deploy-timeout <value>] [--directory <value>] [--instance-id <value>
|
|
527
|
-
|
|
513
|
+
$ powersync deploy sync-config [--deploy-timeout <value>] [--directory <value>] [--instance-id <value>]
|
|
514
|
+
[--sync-config-file-path <value>] [--skip-validations <value> | ]
|
|
528
515
|
|
|
529
516
|
FLAGS
|
|
530
517
|
--deploy-timeout=<value> [default: 300] Seconds to wait after scheduling a deploy before timing out while polling
|
|
@@ -541,9 +528,6 @@ PROJECT FLAGS
|
|
|
541
528
|
|
|
542
529
|
CLOUD_PROJECT FLAGS
|
|
543
530
|
--instance-id=<value> PowerSync Cloud instance ID. Manually passed if the current context has not been linked.
|
|
544
|
-
--org-id=<value> Organization ID (optional). Defaults to the token’s single org when only one is available; pass
|
|
545
|
-
explicitly if the token has multiple orgs.
|
|
546
|
-
--project-id=<value> Project ID. Manually passed if the current context has not been linked.
|
|
547
531
|
|
|
548
532
|
DESCRIPTION
|
|
549
533
|
[Cloud only] Deploy only local sync config to the linked Cloud instance.
|
|
@@ -553,10 +537,10 @@ DESCRIPTION
|
|
|
553
537
|
EXAMPLES
|
|
554
538
|
$ powersync deploy sync-config
|
|
555
539
|
|
|
556
|
-
$ powersync deploy sync-config --instance-id=<id>
|
|
540
|
+
$ powersync deploy sync-config --instance-id=<id>
|
|
557
541
|
```
|
|
558
542
|
|
|
559
|
-
_See code: [src/commands/deploy/sync-config.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
543
|
+
_See code: [src/commands/deploy/sync-config.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/deploy/sync-config.ts)_
|
|
560
544
|
|
|
561
545
|
## `powersync destroy`
|
|
562
546
|
|
|
@@ -564,8 +548,7 @@ _See code: [src/commands/deploy/sync-config.ts](https://github.com/powersync-ja/
|
|
|
564
548
|
|
|
565
549
|
```
|
|
566
550
|
USAGE
|
|
567
|
-
$ powersync destroy [--directory <value>] [--instance-id <value>
|
|
568
|
-
[--confirm yes]
|
|
551
|
+
$ powersync destroy [--directory <value>] [--instance-id <value>] [--confirm yes]
|
|
569
552
|
|
|
570
553
|
FLAGS
|
|
571
554
|
--confirm=<option> Set to "yes" to confirm destruction of the instance.
|
|
@@ -578,9 +561,6 @@ PROJECT FLAGS
|
|
|
578
561
|
|
|
579
562
|
CLOUD_PROJECT FLAGS
|
|
580
563
|
--instance-id=<value> PowerSync Cloud instance ID. Manually passed if the current context has not been linked.
|
|
581
|
-
--org-id=<value> Organization ID (optional). Defaults to the token’s single org when only one is available; pass
|
|
582
|
-
explicitly if the token has multiple orgs.
|
|
583
|
-
--project-id=<value> Project ID. Manually passed if the current context has not been linked.
|
|
584
564
|
|
|
585
565
|
DESCRIPTION
|
|
586
566
|
[Cloud only] Permanently destroy the linked Cloud instance.
|
|
@@ -593,7 +573,7 @@ EXAMPLES
|
|
|
593
573
|
$ powersync destroy --confirm=yes
|
|
594
574
|
```
|
|
595
575
|
|
|
596
|
-
_See code: [src/commands/destroy.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
576
|
+
_See code: [src/commands/destroy.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/destroy.ts)_
|
|
597
577
|
|
|
598
578
|
## `powersync docker configure`
|
|
599
579
|
|
|
@@ -631,7 +611,7 @@ EXAMPLES
|
|
|
631
611
|
$ powersync docker configure --database=postgres --storage=postgres
|
|
632
612
|
```
|
|
633
613
|
|
|
634
|
-
_See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
614
|
+
_See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/docker/configure.ts)_
|
|
635
615
|
|
|
636
616
|
## `powersync docker reset`
|
|
637
617
|
|
|
@@ -660,7 +640,7 @@ EXAMPLES
|
|
|
660
640
|
$ powersync docker reset
|
|
661
641
|
```
|
|
662
642
|
|
|
663
|
-
_See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
643
|
+
_See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/docker/reset.ts)_
|
|
664
644
|
|
|
665
645
|
## `powersync docker start`
|
|
666
646
|
|
|
@@ -688,7 +668,7 @@ EXAMPLES
|
|
|
688
668
|
$ powersync docker start
|
|
689
669
|
```
|
|
690
670
|
|
|
691
|
-
_See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
671
|
+
_See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/docker/start.ts)_
|
|
692
672
|
|
|
693
673
|
## `powersync docker stop`
|
|
694
674
|
|
|
@@ -730,7 +710,7 @@ EXAMPLES
|
|
|
730
710
|
$ powersync docker stop --project-name=powersync_myapp --remove
|
|
731
711
|
```
|
|
732
712
|
|
|
733
|
-
_See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
713
|
+
_See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/docker/stop.ts)_
|
|
734
714
|
|
|
735
715
|
## `powersync edit config`
|
|
736
716
|
|
|
@@ -738,8 +718,8 @@ Open the PowerSync configuration editor (Nitro server).
|
|
|
738
718
|
|
|
739
719
|
```
|
|
740
720
|
USAGE
|
|
741
|
-
$ powersync edit config [--api-url <value> | --instance-id <value> | --
|
|
742
|
-
|
|
721
|
+
$ powersync edit config [--api-url <value> | --instance-id <value> | | ] [--directory <value>] [--host
|
|
722
|
+
<value>] [--port <value>]
|
|
743
723
|
|
|
744
724
|
FLAGS
|
|
745
725
|
--host=<value> [default: 127.0.0.1] Host to bind the editor preview server. Pass 0.0.0.0 to expose on all interfaces.
|
|
@@ -757,9 +737,6 @@ PROJECT FLAGS
|
|
|
757
737
|
CLOUD_PROJECT FLAGS
|
|
758
738
|
--instance-id=<value> [Cloud] PowerSync Cloud instance ID (BSON ObjectID). When set, context is treated as cloud
|
|
759
739
|
(exclusive with --api-url). Resolved: flag → cli.yaml → INSTANCE_ID.
|
|
760
|
-
--org-id=<value> [Cloud] Organization ID (optional). Defaults to the token’s single org when only one is
|
|
761
|
-
available; pass explicitly if the token has multiple orgs. Resolved: flag → cli.yaml → ORG_ID.
|
|
762
|
-
--project-id=<value> [Cloud] Project ID. Resolved: flag → cli.yaml → PROJECT_ID.
|
|
763
740
|
|
|
764
741
|
DESCRIPTION
|
|
765
742
|
Open the PowerSync configuration editor (Nitro server).
|
|
@@ -772,7 +749,7 @@ EXAMPLES
|
|
|
772
749
|
$ powersync edit config --directory ./powersync
|
|
773
750
|
```
|
|
774
751
|
|
|
775
|
-
_See code: [@powersync/cli-plugin-config-edit](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
752
|
+
_See code: [@powersync/cli-plugin-config-edit](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/edit/config.ts)_
|
|
776
753
|
|
|
777
754
|
## `powersync fetch config`
|
|
778
755
|
|
|
@@ -780,8 +757,7 @@ _See code: [@powersync/cli-plugin-config-edit](https://github.com/powersync-ja/p
|
|
|
780
757
|
|
|
781
758
|
```
|
|
782
759
|
USAGE
|
|
783
|
-
$ powersync fetch config [--directory <value>] [--instance-id <value>
|
|
784
|
-
[--output json|yaml]
|
|
760
|
+
$ powersync fetch config [--directory <value>] [--instance-id <value>] [--output json|yaml]
|
|
785
761
|
|
|
786
762
|
FLAGS
|
|
787
763
|
--output=<option> [default: yaml] Output format: yaml or json.
|
|
@@ -794,9 +770,6 @@ PROJECT FLAGS
|
|
|
794
770
|
|
|
795
771
|
CLOUD_PROJECT FLAGS
|
|
796
772
|
--instance-id=<value> PowerSync Cloud instance ID. Manually passed if the current context has not been linked.
|
|
797
|
-
--org-id=<value> Organization ID (optional). Defaults to the token’s single org when only one is available; pass
|
|
798
|
-
explicitly if the token has multiple orgs.
|
|
799
|
-
--project-id=<value> Project ID. Manually passed if the current context has not been linked.
|
|
800
773
|
|
|
801
774
|
DESCRIPTION
|
|
802
775
|
[Cloud only] Print linked Cloud instance config (YAML or JSON).
|
|
@@ -809,7 +782,7 @@ EXAMPLES
|
|
|
809
782
|
$ powersync fetch config --output=json
|
|
810
783
|
```
|
|
811
784
|
|
|
812
|
-
_See code: [src/commands/fetch/config.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
785
|
+
_See code: [src/commands/fetch/config.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/fetch/config.ts)_
|
|
813
786
|
|
|
814
787
|
## `powersync fetch instances`
|
|
815
788
|
|
|
@@ -837,7 +810,7 @@ EXAMPLES
|
|
|
837
810
|
$ powersync fetch instances --project-id=<id> --output=json
|
|
838
811
|
```
|
|
839
812
|
|
|
840
|
-
_See code: [src/commands/fetch/instances.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
813
|
+
_See code: [src/commands/fetch/instances.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/fetch/instances.ts)_
|
|
841
814
|
|
|
842
815
|
## `powersync fetch status`
|
|
843
816
|
|
|
@@ -845,8 +818,8 @@ Show instance diagnostics (connections, sync config, replication).
|
|
|
845
818
|
|
|
846
819
|
```
|
|
847
820
|
USAGE
|
|
848
|
-
$ powersync fetch status [--api-url <value> | --instance-id <value> | --
|
|
849
|
-
|
|
821
|
+
$ powersync fetch status [--api-url <value> | --instance-id <value> | | ] [--directory <value>] [--output
|
|
822
|
+
human|json|yaml]
|
|
850
823
|
|
|
851
824
|
FLAGS
|
|
852
825
|
--output=<option> [default: human] Output format: human-readable, json, or yaml.
|
|
@@ -864,9 +837,6 @@ PROJECT FLAGS
|
|
|
864
837
|
CLOUD_PROJECT FLAGS
|
|
865
838
|
--instance-id=<value> [Cloud] PowerSync Cloud instance ID (BSON ObjectID). When set, context is treated as cloud
|
|
866
839
|
(exclusive with --api-url). Resolved: flag → cli.yaml → INSTANCE_ID.
|
|
867
|
-
--org-id=<value> [Cloud] Organization ID (optional). Defaults to the token’s single org when only one is
|
|
868
|
-
available; pass explicitly if the token has multiple orgs. Resolved: flag → cli.yaml → ORG_ID.
|
|
869
|
-
--project-id=<value> [Cloud] Project ID. Resolved: flag → cli.yaml → PROJECT_ID.
|
|
870
840
|
|
|
871
841
|
DESCRIPTION
|
|
872
842
|
Show instance diagnostics (connections, sync config, replication).
|
|
@@ -879,10 +849,10 @@ EXAMPLES
|
|
|
879
849
|
|
|
880
850
|
$ powersync fetch status --output=json
|
|
881
851
|
|
|
882
|
-
$ powersync fetch status --instance-id=<id>
|
|
852
|
+
$ powersync fetch status --instance-id=<id>
|
|
883
853
|
```
|
|
884
854
|
|
|
885
|
-
_See code: [src/commands/fetch/status.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
855
|
+
_See code: [src/commands/fetch/status.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/fetch/status.ts)_
|
|
886
856
|
|
|
887
857
|
## `powersync generate schema`
|
|
888
858
|
|
|
@@ -891,8 +861,7 @@ Generate client schema file from instance schema and sync config.
|
|
|
891
861
|
```
|
|
892
862
|
USAGE
|
|
893
863
|
$ powersync generate schema --output dart|dotNet|dotNetClass|js|jsLegacy|kotlin|swift|ts --output-path <value>
|
|
894
|
-
[--api-url <value> | --instance-id <value> |
|
|
895
|
-
[--sync-config-file-path <value>]
|
|
864
|
+
[--api-url <value> | --instance-id <value> | | ] [--directory <value>] [--sync-config-file-path <value>]
|
|
896
865
|
|
|
897
866
|
FLAGS
|
|
898
867
|
--output=<option> (required) [default: type] Output type: dart, dotNet, dotNetClass, js, jsLegacy, kotlin, swift,
|
|
@@ -914,9 +883,6 @@ PROJECT FLAGS
|
|
|
914
883
|
CLOUD_PROJECT FLAGS
|
|
915
884
|
--instance-id=<value> [Cloud] PowerSync Cloud instance ID (BSON ObjectID). When set, context is treated as cloud
|
|
916
885
|
(exclusive with --api-url). Resolved: flag → cli.yaml → INSTANCE_ID.
|
|
917
|
-
--org-id=<value> [Cloud] Organization ID (optional). Defaults to the token’s single org when only one is
|
|
918
|
-
available; pass explicitly if the token has multiple orgs. Resolved: flag → cli.yaml → ORG_ID.
|
|
919
|
-
--project-id=<value> [Cloud] Project ID. Resolved: flag → cli.yaml → PROJECT_ID.
|
|
920
886
|
|
|
921
887
|
DESCRIPTION
|
|
922
888
|
Generate client schema file from instance schema and sync config.
|
|
@@ -927,10 +893,10 @@ DESCRIPTION
|
|
|
927
893
|
EXAMPLES
|
|
928
894
|
$ powersync generate schema --output=ts --output-path=schema.ts
|
|
929
895
|
|
|
930
|
-
$ powersync generate schema --output=dart --output-path=lib/schema.dart --instance-id=<id>
|
|
896
|
+
$ powersync generate schema --output=dart --output-path=lib/schema.dart --instance-id=<id>
|
|
931
897
|
```
|
|
932
898
|
|
|
933
|
-
_See code: [src/commands/generate/schema.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
899
|
+
_See code: [src/commands/generate/schema.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/generate/schema.ts)_
|
|
934
900
|
|
|
935
901
|
## `powersync generate token`
|
|
936
902
|
|
|
@@ -938,8 +904,8 @@ Generate a development JWT for client connections.
|
|
|
938
904
|
|
|
939
905
|
```
|
|
940
906
|
USAGE
|
|
941
|
-
$ powersync generate token --subject <value> [--api-url <value> | --instance-id <value> | --
|
|
942
|
-
|
|
907
|
+
$ powersync generate token --subject <value> [--api-url <value> | --instance-id <value> | | ] [--directory
|
|
908
|
+
<value>] [--expires-in-seconds <value>] [--kid <value>]
|
|
943
909
|
|
|
944
910
|
FLAGS
|
|
945
911
|
--expires-in-seconds=<value> [default: 43200] Expiration time in seconds. Default is 43,200 (12 hours).
|
|
@@ -959,9 +925,6 @@ PROJECT FLAGS
|
|
|
959
925
|
CLOUD_PROJECT FLAGS
|
|
960
926
|
--instance-id=<value> [Cloud] PowerSync Cloud instance ID (BSON ObjectID). When set, context is treated as cloud
|
|
961
927
|
(exclusive with --api-url). Resolved: flag → cli.yaml → INSTANCE_ID.
|
|
962
|
-
--org-id=<value> [Cloud] Organization ID (optional). Defaults to the token’s single org when only one is
|
|
963
|
-
available; pass explicitly if the token has multiple orgs. Resolved: flag → cli.yaml → ORG_ID.
|
|
964
|
-
--project-id=<value> [Cloud] Project ID. Resolved: flag → cli.yaml → PROJECT_ID.
|
|
965
928
|
|
|
966
929
|
DESCRIPTION
|
|
967
930
|
Generate a development JWT for client connections.
|
|
@@ -976,7 +939,7 @@ EXAMPLES
|
|
|
976
939
|
$ powersync generate token --subject=user-123 --expires-in-seconds=3600
|
|
977
940
|
```
|
|
978
941
|
|
|
979
|
-
_See code: [src/commands/generate/token.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
942
|
+
_See code: [src/commands/generate/token.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/generate/token.ts)_
|
|
980
943
|
|
|
981
944
|
## `powersync help [COMMAND]`
|
|
982
945
|
|
|
@@ -996,7 +959,7 @@ DESCRIPTION
|
|
|
996
959
|
Display help for powersync.
|
|
997
960
|
```
|
|
998
961
|
|
|
999
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.
|
|
962
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.50/src/commands/help.ts)_
|
|
1000
963
|
|
|
1001
964
|
## `powersync init cloud`
|
|
1002
965
|
|
|
@@ -1022,7 +985,7 @@ EXAMPLES
|
|
|
1022
985
|
$ powersync init cloud --directory=powersync
|
|
1023
986
|
```
|
|
1024
987
|
|
|
1025
|
-
_See code: [src/commands/init/cloud.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
988
|
+
_See code: [src/commands/init/cloud.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/init/cloud.ts)_
|
|
1026
989
|
|
|
1027
990
|
## `powersync init self-hosted`
|
|
1028
991
|
|
|
@@ -1049,7 +1012,7 @@ EXAMPLES
|
|
|
1049
1012
|
$ powersync init self-hosted --directory=powersync
|
|
1050
1013
|
```
|
|
1051
1014
|
|
|
1052
|
-
_See code: [src/commands/init/self-hosted.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
1015
|
+
_See code: [src/commands/init/self-hosted.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/init/self-hosted.ts)_
|
|
1053
1016
|
|
|
1054
1017
|
## `powersync link cloud`
|
|
1055
1018
|
|
|
@@ -1057,16 +1020,15 @@ _See code: [src/commands/init/self-hosted.ts](https://github.com/powersync-ja/po
|
|
|
1057
1020
|
|
|
1058
1021
|
```
|
|
1059
1022
|
USAGE
|
|
1060
|
-
$ powersync link cloud --
|
|
1023
|
+
$ powersync link cloud [--directory <value>] [--instance-id <value>] [--org-id <value>] [--project-id <value>]
|
|
1061
1024
|
[--create]
|
|
1062
1025
|
|
|
1063
1026
|
FLAGS
|
|
1064
1027
|
--create Create a new Cloud instance in the given org and project, then link. Do not supply
|
|
1065
1028
|
--instance-id when using --create.
|
|
1066
1029
|
--instance-id=<value> PowerSync Cloud instance ID. Omit when using --create. Resolved: flag → INSTANCE_ID → cli.yaml.
|
|
1067
|
-
--org-id=<value> Organization ID.
|
|
1068
|
-
|
|
1069
|
-
--project-id=<value> (required) Project ID. Resolved: flag → PROJECT_ID → cli.yaml.
|
|
1030
|
+
--org-id=<value> Organization ID. Required with --create when the token has multiple orgs.
|
|
1031
|
+
--project-id=<value> Project ID. Required with --create.
|
|
1070
1032
|
|
|
1071
1033
|
PROJECT FLAGS
|
|
1072
1034
|
--directory=<value> [default: powersync] Directory containing PowerSync config. Defaults to "powersync". This is
|
|
@@ -1076,19 +1038,18 @@ PROJECT FLAGS
|
|
|
1076
1038
|
DESCRIPTION
|
|
1077
1039
|
[Cloud only] Link to a PowerSync Cloud instance (or create one with --create).
|
|
1078
1040
|
|
|
1079
|
-
Write or update cli.yaml with a Cloud instance
|
|
1080
|
-
|
|
1081
|
-
the token has a single organization.
|
|
1041
|
+
Write or update cli.yaml with a Cloud instance. Use --create to create a new instance from service.yaml name/region
|
|
1042
|
+
and link it; omit --instance-id when using --create.
|
|
1082
1043
|
|
|
1083
1044
|
EXAMPLES
|
|
1084
|
-
$ powersync link cloud --
|
|
1045
|
+
$ powersync link cloud --instance-id=<id>
|
|
1085
1046
|
|
|
1086
1047
|
$ powersync link cloud --create --project-id=<project-id>
|
|
1087
1048
|
|
|
1088
|
-
$ powersync link cloud --
|
|
1049
|
+
$ powersync link cloud --create --project-id=<project-id> --org-id=<org-id>
|
|
1089
1050
|
```
|
|
1090
1051
|
|
|
1091
|
-
_See code: [src/commands/link/cloud.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
1052
|
+
_See code: [src/commands/link/cloud.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/link/cloud.ts)_
|
|
1092
1053
|
|
|
1093
1054
|
## `powersync link self-hosted`
|
|
1094
1055
|
|
|
@@ -1116,7 +1077,7 @@ EXAMPLES
|
|
|
1116
1077
|
$ powersync link self-hosted --api-url=https://powersync.example.com
|
|
1117
1078
|
```
|
|
1118
1079
|
|
|
1119
|
-
_See code: [src/commands/link/self-hosted.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
1080
|
+
_See code: [src/commands/link/self-hosted.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/link/self-hosted.ts)_
|
|
1120
1081
|
|
|
1121
1082
|
## `powersync login`
|
|
1122
1083
|
|
|
@@ -1137,7 +1098,7 @@ EXAMPLES
|
|
|
1137
1098
|
$ powersync login
|
|
1138
1099
|
```
|
|
1139
1100
|
|
|
1140
|
-
_See code: [src/commands/login.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
1101
|
+
_See code: [src/commands/login.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/login.ts)_
|
|
1141
1102
|
|
|
1142
1103
|
## `powersync logout`
|
|
1143
1104
|
|
|
@@ -1157,7 +1118,7 @@ EXAMPLES
|
|
|
1157
1118
|
$ powersync logout
|
|
1158
1119
|
```
|
|
1159
1120
|
|
|
1160
|
-
_See code: [src/commands/logout.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
1121
|
+
_See code: [src/commands/logout.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/logout.ts)_
|
|
1161
1122
|
|
|
1162
1123
|
## `powersync migrate sync-rules`
|
|
1163
1124
|
|
|
@@ -1165,8 +1126,8 @@ Migrates Sync Rules to Sync Streams
|
|
|
1165
1126
|
|
|
1166
1127
|
```
|
|
1167
1128
|
USAGE
|
|
1168
|
-
$ powersync migrate sync-rules [--api-url <value> | --instance-id <value> | --
|
|
1169
|
-
|
|
1129
|
+
$ powersync migrate sync-rules [--api-url <value> | --instance-id <value> | | ] [--directory <value>] [--input-file
|
|
1130
|
+
<value>] [--output-file <value>]
|
|
1170
1131
|
|
|
1171
1132
|
FLAGS
|
|
1172
1133
|
--input-file=<value> Path to the input sync rules file. Defaults to the project sync-config.yaml file.
|
|
@@ -1184,9 +1145,6 @@ PROJECT FLAGS
|
|
|
1184
1145
|
CLOUD_PROJECT FLAGS
|
|
1185
1146
|
--instance-id=<value> [Cloud] PowerSync Cloud instance ID (BSON ObjectID). When set, context is treated as cloud
|
|
1186
1147
|
(exclusive with --api-url). Resolved: flag → cli.yaml → INSTANCE_ID.
|
|
1187
|
-
--org-id=<value> [Cloud] Organization ID (optional). Defaults to the token’s single org when only one is
|
|
1188
|
-
available; pass explicitly if the token has multiple orgs. Resolved: flag → cli.yaml → ORG_ID.
|
|
1189
|
-
--project-id=<value> [Cloud] Project ID. Resolved: flag → cli.yaml → PROJECT_ID.
|
|
1190
1148
|
|
|
1191
1149
|
DESCRIPTION
|
|
1192
1150
|
Migrates Sync Rules to Sync Streams
|
|
@@ -1194,7 +1152,7 @@ DESCRIPTION
|
|
|
1194
1152
|
Migrates Sync Rules to Sync Streams
|
|
1195
1153
|
```
|
|
1196
1154
|
|
|
1197
|
-
_See code: [src/commands/migrate/sync-rules.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
1155
|
+
_See code: [src/commands/migrate/sync-rules.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/migrate/sync-rules.ts)_
|
|
1198
1156
|
|
|
1199
1157
|
## `powersync plugins`
|
|
1200
1158
|
|
|
@@ -1217,7 +1175,7 @@ EXAMPLES
|
|
|
1217
1175
|
$ powersync plugins
|
|
1218
1176
|
```
|
|
1219
1177
|
|
|
1220
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.
|
|
1178
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.72/src/commands/plugins/index.ts)_
|
|
1221
1179
|
|
|
1222
1180
|
## `powersync plugins add PLUGIN`
|
|
1223
1181
|
|
|
@@ -1291,7 +1249,7 @@ EXAMPLES
|
|
|
1291
1249
|
$ powersync plugins inspect myplugin
|
|
1292
1250
|
```
|
|
1293
1251
|
|
|
1294
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.
|
|
1252
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.72/src/commands/plugins/inspect.ts)_
|
|
1295
1253
|
|
|
1296
1254
|
## `powersync plugins install PLUGIN`
|
|
1297
1255
|
|
|
@@ -1340,7 +1298,7 @@ EXAMPLES
|
|
|
1340
1298
|
$ powersync plugins install someuser/someplugin
|
|
1341
1299
|
```
|
|
1342
1300
|
|
|
1343
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.
|
|
1301
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.72/src/commands/plugins/install.ts)_
|
|
1344
1302
|
|
|
1345
1303
|
## `powersync plugins link PATH`
|
|
1346
1304
|
|
|
@@ -1371,7 +1329,7 @@ EXAMPLES
|
|
|
1371
1329
|
$ powersync plugins link myplugin
|
|
1372
1330
|
```
|
|
1373
1331
|
|
|
1374
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.
|
|
1332
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.72/src/commands/plugins/link.ts)_
|
|
1375
1333
|
|
|
1376
1334
|
## `powersync plugins remove [PLUGIN]`
|
|
1377
1335
|
|
|
@@ -1412,7 +1370,7 @@ FLAGS
|
|
|
1412
1370
|
--reinstall Reinstall all plugins after uninstalling.
|
|
1413
1371
|
```
|
|
1414
1372
|
|
|
1415
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.
|
|
1373
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.72/src/commands/plugins/reset.ts)_
|
|
1416
1374
|
|
|
1417
1375
|
## `powersync plugins uninstall [PLUGIN]`
|
|
1418
1376
|
|
|
@@ -1440,7 +1398,7 @@ EXAMPLES
|
|
|
1440
1398
|
$ powersync plugins uninstall myplugin
|
|
1441
1399
|
```
|
|
1442
1400
|
|
|
1443
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.
|
|
1401
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.72/src/commands/plugins/uninstall.ts)_
|
|
1444
1402
|
|
|
1445
1403
|
## `powersync plugins unlink [PLUGIN]`
|
|
1446
1404
|
|
|
@@ -1484,7 +1442,7 @@ DESCRIPTION
|
|
|
1484
1442
|
Update installed plugins.
|
|
1485
1443
|
```
|
|
1486
1444
|
|
|
1487
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.
|
|
1445
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.72/src/commands/plugins/update.ts)_
|
|
1488
1446
|
|
|
1489
1447
|
## `powersync pull instance`
|
|
1490
1448
|
|
|
@@ -1492,8 +1450,7 @@ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
|
1492
1450
|
|
|
1493
1451
|
```
|
|
1494
1452
|
USAGE
|
|
1495
|
-
$ powersync pull instance [--directory <value>] [--instance-id <value>
|
|
1496
|
-
[--overwrite]
|
|
1453
|
+
$ powersync pull instance [--directory <value>] [--instance-id <value>] [--overwrite]
|
|
1497
1454
|
|
|
1498
1455
|
FLAGS
|
|
1499
1456
|
--overwrite Overwrite existing service.yaml and sync-config.yaml if they exist. By default, if these files already
|
|
@@ -1507,26 +1464,20 @@ PROJECT FLAGS
|
|
|
1507
1464
|
|
|
1508
1465
|
CLOUD_PROJECT FLAGS
|
|
1509
1466
|
--instance-id=<value> PowerSync Cloud instance ID. Manually passed if the current context has not been linked.
|
|
1510
|
-
--org-id=<value> Organization ID (optional). Defaults to the token’s single org when only one is available; pass
|
|
1511
|
-
explicitly if the token has multiple orgs.
|
|
1512
|
-
--project-id=<value> Project ID. Manually passed if the current context has not been linked.
|
|
1513
1467
|
|
|
1514
1468
|
DESCRIPTION
|
|
1515
1469
|
[Cloud only] Pull an existing Cloud instance: link and download config into local service.yaml and sync-config.yaml.
|
|
1516
1470
|
|
|
1517
1471
|
Fetch an existing Cloud instance by ID: create the config directory if needed, write cli.yaml, and download
|
|
1518
|
-
service.yaml and sync-config.yaml.
|
|
1519
|
-
is optional when the token has a single organization. Cloud only.
|
|
1472
|
+
service.yaml and sync-config.yaml. Cloud only.
|
|
1520
1473
|
|
|
1521
1474
|
EXAMPLES
|
|
1522
1475
|
$ powersync pull instance
|
|
1523
1476
|
|
|
1524
|
-
$ powersync pull instance --instance-id=<id>
|
|
1525
|
-
|
|
1526
|
-
$ powersync pull instance --instance-id=<id> --project-id=<id> --org-id=<org-id>
|
|
1477
|
+
$ powersync pull instance --instance-id=<id>
|
|
1527
1478
|
```
|
|
1528
1479
|
|
|
1529
|
-
_See code: [src/commands/pull/instance.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
1480
|
+
_See code: [src/commands/pull/instance.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/pull/instance.ts)_
|
|
1530
1481
|
|
|
1531
1482
|
## `powersync status`
|
|
1532
1483
|
|
|
@@ -1534,8 +1485,8 @@ Show instance diagnostics (connections, sync config, replication).
|
|
|
1534
1485
|
|
|
1535
1486
|
```
|
|
1536
1487
|
USAGE
|
|
1537
|
-
$ powersync status [--api-url <value> | --instance-id <value> | --
|
|
1538
|
-
|
|
1488
|
+
$ powersync status [--api-url <value> | --instance-id <value> | | ] [--directory <value>] [--output
|
|
1489
|
+
human|json|yaml]
|
|
1539
1490
|
|
|
1540
1491
|
FLAGS
|
|
1541
1492
|
--output=<option> [default: human] Output format: human-readable, json, or yaml.
|
|
@@ -1553,9 +1504,6 @@ PROJECT FLAGS
|
|
|
1553
1504
|
CLOUD_PROJECT FLAGS
|
|
1554
1505
|
--instance-id=<value> [Cloud] PowerSync Cloud instance ID (BSON ObjectID). When set, context is treated as cloud
|
|
1555
1506
|
(exclusive with --api-url). Resolved: flag → cli.yaml → INSTANCE_ID.
|
|
1556
|
-
--org-id=<value> [Cloud] Organization ID (optional). Defaults to the token’s single org when only one is
|
|
1557
|
-
available; pass explicitly if the token has multiple orgs. Resolved: flag → cli.yaml → ORG_ID.
|
|
1558
|
-
--project-id=<value> [Cloud] Project ID. Resolved: flag → cli.yaml → PROJECT_ID.
|
|
1559
1507
|
|
|
1560
1508
|
DESCRIPTION
|
|
1561
1509
|
Show instance diagnostics (connections, sync config, replication).
|
|
@@ -1568,10 +1516,10 @@ EXAMPLES
|
|
|
1568
1516
|
|
|
1569
1517
|
$ powersync status --output=json
|
|
1570
1518
|
|
|
1571
|
-
$ powersync status --instance-id=<id>
|
|
1519
|
+
$ powersync status --instance-id=<id>
|
|
1572
1520
|
```
|
|
1573
1521
|
|
|
1574
|
-
_See code: [src/commands/status.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
1522
|
+
_See code: [src/commands/status.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/status.ts)_
|
|
1575
1523
|
|
|
1576
1524
|
## `powersync stop`
|
|
1577
1525
|
|
|
@@ -1579,8 +1527,7 @@ _See code: [src/commands/status.ts](https://github.com/powersync-ja/powersync-cl
|
|
|
1579
1527
|
|
|
1580
1528
|
```
|
|
1581
1529
|
USAGE
|
|
1582
|
-
$ powersync stop [--directory <value>] [--instance-id <value>
|
|
1583
|
-
[--confirm yes]
|
|
1530
|
+
$ powersync stop [--directory <value>] [--instance-id <value>] [--confirm yes]
|
|
1584
1531
|
|
|
1585
1532
|
FLAGS
|
|
1586
1533
|
--confirm=<option> Set to "yes" to confirm stopping the instance.
|
|
@@ -1593,9 +1540,6 @@ PROJECT FLAGS
|
|
|
1593
1540
|
|
|
1594
1541
|
CLOUD_PROJECT FLAGS
|
|
1595
1542
|
--instance-id=<value> PowerSync Cloud instance ID. Manually passed if the current context has not been linked.
|
|
1596
|
-
--org-id=<value> Organization ID (optional). Defaults to the token’s single org when only one is available; pass
|
|
1597
|
-
explicitly if the token has multiple orgs.
|
|
1598
|
-
--project-id=<value> Project ID. Manually passed if the current context has not been linked.
|
|
1599
1543
|
|
|
1600
1544
|
DESCRIPTION
|
|
1601
1545
|
[Cloud only] Stop the linked Cloud instance (restart with deploy).
|
|
@@ -1608,7 +1552,7 @@ EXAMPLES
|
|
|
1608
1552
|
$ powersync stop --confirm=yes
|
|
1609
1553
|
```
|
|
1610
1554
|
|
|
1611
|
-
_See code: [src/commands/stop.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
1555
|
+
_See code: [src/commands/stop.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/stop.ts)_
|
|
1612
1556
|
|
|
1613
1557
|
## `powersync validate`
|
|
1614
1558
|
|
|
@@ -1616,9 +1560,8 @@ Validate config schema, connections, and sync config before deploy.
|
|
|
1616
1560
|
|
|
1617
1561
|
```
|
|
1618
1562
|
USAGE
|
|
1619
|
-
$ powersync validate [--api-url <value> | --instance-id <value> |
|
|
1620
|
-
[--
|
|
1621
|
-
--validate-only <value>]
|
|
1563
|
+
$ powersync validate [--api-url <value> | --instance-id <value> | | ] [--directory <value>]
|
|
1564
|
+
[--sync-config-file-path <value>] [--output human|json|yaml] [--skip-validations <value> | --validate-only <value>]
|
|
1622
1565
|
|
|
1623
1566
|
FLAGS
|
|
1624
1567
|
--output=<option> [default: human] Output format: human-readable, json, or yaml.
|
|
@@ -1642,9 +1585,6 @@ PROJECT FLAGS
|
|
|
1642
1585
|
CLOUD_PROJECT FLAGS
|
|
1643
1586
|
--instance-id=<value> [Cloud] PowerSync Cloud instance ID (BSON ObjectID). When set, context is treated as cloud
|
|
1644
1587
|
(exclusive with --api-url). Resolved: flag → cli.yaml → INSTANCE_ID.
|
|
1645
|
-
--org-id=<value> [Cloud] Organization ID (optional). Defaults to the token’s single org when only one is
|
|
1646
|
-
available; pass explicitly if the token has multiple orgs. Resolved: flag → cli.yaml → ORG_ID.
|
|
1647
|
-
--project-id=<value> [Cloud] Project ID. Resolved: flag → cli.yaml → PROJECT_ID.
|
|
1648
1588
|
|
|
1649
1589
|
DESCRIPTION
|
|
1650
1590
|
Validate config schema, connections, and sync config before deploy.
|
|
@@ -1660,6 +1600,6 @@ EXAMPLES
|
|
|
1660
1600
|
$ powersync validate --api-url=https://powersync.example.com
|
|
1661
1601
|
```
|
|
1662
1602
|
|
|
1663
|
-
_See code: [src/commands/validate.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.
|
|
1603
|
+
_See code: [src/commands/validate.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/validate.ts)_
|
|
1664
1604
|
|
|
1665
1605
|
<!-- commandsstop -->
|