powersync 0.10.0 → 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 CHANGED
@@ -238,7 +238,7 @@ $ npm install -g powersync
238
238
  $ powersync COMMAND
239
239
  running command...
240
240
  $ powersync (--version)
241
- powersync/0.10.0 linux-x64 node-v24.16.0
241
+ powersync/0.10.1 linux-x64 node-v24.20.0
242
242
  $ powersync --help [COMMAND]
243
243
  USAGE
244
244
  $ powersync COMMAND
@@ -401,7 +401,7 @@ EXAMPLES
401
401
  $ powersync compact --timeout=0
402
402
  ```
403
403
 
404
- _See code: [src/commands/compact.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/compact.ts)_
404
+ _See code: [src/commands/compact.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/compact.ts)_
405
405
 
406
406
  ## `powersync configure ide`
407
407
 
@@ -421,7 +421,7 @@ EXAMPLES
421
421
  $ powersync configure ide
422
422
  ```
423
423
 
424
- _See code: [src/commands/configure/ide.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/configure/ide.ts)_
424
+ _See code: [src/commands/configure/ide.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/configure/ide.ts)_
425
425
 
426
426
  ## `powersync deploy`
427
427
 
@@ -464,7 +464,7 @@ EXAMPLES
464
464
  $ powersync deploy --instance-id=<id>
465
465
  ```
466
466
 
467
- _See code: [src/commands/deploy/index.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/deploy/index.ts)_
467
+ _See code: [src/commands/deploy/index.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/deploy/index.ts)_
468
468
 
469
469
  ## `powersync deploy service-config`
470
470
 
@@ -502,7 +502,7 @@ EXAMPLES
502
502
  $ powersync deploy service-config --instance-id=<id>
503
503
  ```
504
504
 
505
- _See code: [src/commands/deploy/service-config.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/deploy/service-config.ts)_
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)_
506
506
 
507
507
  ## `powersync deploy sync-config`
508
508
 
@@ -540,7 +540,7 @@ EXAMPLES
540
540
  $ powersync deploy sync-config --instance-id=<id>
541
541
  ```
542
542
 
543
- _See code: [src/commands/deploy/sync-config.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/deploy/sync-config.ts)_
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)_
544
544
 
545
545
  ## `powersync destroy`
546
546
 
@@ -573,7 +573,7 @@ EXAMPLES
573
573
  $ powersync destroy --confirm=yes
574
574
  ```
575
575
 
576
- _See code: [src/commands/destroy.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/destroy.ts)_
576
+ _See code: [src/commands/destroy.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/destroy.ts)_
577
577
 
578
578
  ## `powersync docker configure`
579
579
 
@@ -611,7 +611,7 @@ EXAMPLES
611
611
  $ powersync docker configure --database=postgres --storage=postgres
612
612
  ```
613
613
 
614
- _See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/docker/configure.ts)_
614
+ _See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/docker/configure.ts)_
615
615
 
616
616
  ## `powersync docker reset`
617
617
 
@@ -640,7 +640,7 @@ EXAMPLES
640
640
  $ powersync docker reset
641
641
  ```
642
642
 
643
- _See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/docker/reset.ts)_
643
+ _See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/docker/reset.ts)_
644
644
 
645
645
  ## `powersync docker start`
646
646
 
@@ -668,7 +668,7 @@ EXAMPLES
668
668
  $ powersync docker start
669
669
  ```
670
670
 
671
- _See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/docker/start.ts)_
671
+ _See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/docker/start.ts)_
672
672
 
673
673
  ## `powersync docker stop`
674
674
 
@@ -710,7 +710,7 @@ EXAMPLES
710
710
  $ powersync docker stop --project-name=powersync_myapp --remove
711
711
  ```
712
712
 
713
- _See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/docker/stop.ts)_
713
+ _See code: [@powersync/cli-plugin-docker](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/docker/stop.ts)_
714
714
 
715
715
  ## `powersync edit config`
716
716
 
@@ -749,7 +749,7 @@ EXAMPLES
749
749
  $ powersync edit config --directory ./powersync
750
750
  ```
751
751
 
752
- _See code: [@powersync/cli-plugin-config-edit](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/edit/config.ts)_
752
+ _See code: [@powersync/cli-plugin-config-edit](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/edit/config.ts)_
753
753
 
754
754
  ## `powersync fetch config`
755
755
 
@@ -782,7 +782,7 @@ EXAMPLES
782
782
  $ powersync fetch config --output=json
783
783
  ```
784
784
 
785
- _See code: [src/commands/fetch/config.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/fetch/config.ts)_
785
+ _See code: [src/commands/fetch/config.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/fetch/config.ts)_
786
786
 
787
787
  ## `powersync fetch instances`
788
788
 
@@ -810,7 +810,7 @@ EXAMPLES
810
810
  $ powersync fetch instances --project-id=<id> --output=json
811
811
  ```
812
812
 
813
- _See code: [src/commands/fetch/instances.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/fetch/instances.ts)_
813
+ _See code: [src/commands/fetch/instances.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/fetch/instances.ts)_
814
814
 
815
815
  ## `powersync fetch status`
816
816
 
@@ -852,7 +852,7 @@ EXAMPLES
852
852
  $ powersync fetch status --instance-id=<id>
853
853
  ```
854
854
 
855
- _See code: [src/commands/fetch/status.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/fetch/status.ts)_
855
+ _See code: [src/commands/fetch/status.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/fetch/status.ts)_
856
856
 
857
857
  ## `powersync generate schema`
858
858
 
@@ -896,7 +896,7 @@ EXAMPLES
896
896
  $ powersync generate schema --output=dart --output-path=lib/schema.dart --instance-id=<id>
897
897
  ```
898
898
 
899
- _See code: [src/commands/generate/schema.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/generate/schema.ts)_
899
+ _See code: [src/commands/generate/schema.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/generate/schema.ts)_
900
900
 
901
901
  ## `powersync generate token`
902
902
 
@@ -939,7 +939,7 @@ EXAMPLES
939
939
  $ powersync generate token --subject=user-123 --expires-in-seconds=3600
940
940
  ```
941
941
 
942
- _See code: [src/commands/generate/token.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/generate/token.ts)_
942
+ _See code: [src/commands/generate/token.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/generate/token.ts)_
943
943
 
944
944
  ## `powersync help [COMMAND]`
945
945
 
@@ -985,7 +985,7 @@ EXAMPLES
985
985
  $ powersync init cloud --directory=powersync
986
986
  ```
987
987
 
988
- _See code: [src/commands/init/cloud.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/init/cloud.ts)_
988
+ _See code: [src/commands/init/cloud.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/init/cloud.ts)_
989
989
 
990
990
  ## `powersync init self-hosted`
991
991
 
@@ -1012,7 +1012,7 @@ EXAMPLES
1012
1012
  $ powersync init self-hosted --directory=powersync
1013
1013
  ```
1014
1014
 
1015
- _See code: [src/commands/init/self-hosted.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/init/self-hosted.ts)_
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)_
1016
1016
 
1017
1017
  ## `powersync link cloud`
1018
1018
 
@@ -1049,7 +1049,7 @@ EXAMPLES
1049
1049
  $ powersync link cloud --create --project-id=<project-id> --org-id=<org-id>
1050
1050
  ```
1051
1051
 
1052
- _See code: [src/commands/link/cloud.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/link/cloud.ts)_
1052
+ _See code: [src/commands/link/cloud.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/link/cloud.ts)_
1053
1053
 
1054
1054
  ## `powersync link self-hosted`
1055
1055
 
@@ -1077,7 +1077,7 @@ EXAMPLES
1077
1077
  $ powersync link self-hosted --api-url=https://powersync.example.com
1078
1078
  ```
1079
1079
 
1080
- _See code: [src/commands/link/self-hosted.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/link/self-hosted.ts)_
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)_
1081
1081
 
1082
1082
  ## `powersync login`
1083
1083
 
@@ -1098,7 +1098,7 @@ EXAMPLES
1098
1098
  $ powersync login
1099
1099
  ```
1100
1100
 
1101
- _See code: [src/commands/login.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/login.ts)_
1101
+ _See code: [src/commands/login.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/login.ts)_
1102
1102
 
1103
1103
  ## `powersync logout`
1104
1104
 
@@ -1118,7 +1118,7 @@ EXAMPLES
1118
1118
  $ powersync logout
1119
1119
  ```
1120
1120
 
1121
- _See code: [src/commands/logout.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/logout.ts)_
1121
+ _See code: [src/commands/logout.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/logout.ts)_
1122
1122
 
1123
1123
  ## `powersync migrate sync-rules`
1124
1124
 
@@ -1152,7 +1152,7 @@ DESCRIPTION
1152
1152
  Migrates Sync Rules to Sync Streams
1153
1153
  ```
1154
1154
 
1155
- _See code: [src/commands/migrate/sync-rules.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/migrate/sync-rules.ts)_
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)_
1156
1156
 
1157
1157
  ## `powersync plugins`
1158
1158
 
@@ -1477,7 +1477,7 @@ EXAMPLES
1477
1477
  $ powersync pull instance --instance-id=<id>
1478
1478
  ```
1479
1479
 
1480
- _See code: [src/commands/pull/instance.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/pull/instance.ts)_
1480
+ _See code: [src/commands/pull/instance.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/pull/instance.ts)_
1481
1481
 
1482
1482
  ## `powersync status`
1483
1483
 
@@ -1519,7 +1519,7 @@ EXAMPLES
1519
1519
  $ powersync status --instance-id=<id>
1520
1520
  ```
1521
1521
 
1522
- _See code: [src/commands/status.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/status.ts)_
1522
+ _See code: [src/commands/status.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/status.ts)_
1523
1523
 
1524
1524
  ## `powersync stop`
1525
1525
 
@@ -1552,7 +1552,7 @@ EXAMPLES
1552
1552
  $ powersync stop --confirm=yes
1553
1553
  ```
1554
1554
 
1555
- _See code: [src/commands/stop.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/stop.ts)_
1555
+ _See code: [src/commands/stop.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/stop.ts)_
1556
1556
 
1557
1557
  ## `powersync validate`
1558
1558
 
@@ -1600,6 +1600,6 @@ EXAMPLES
1600
1600
  $ powersync validate --api-url=https://powersync.example.com
1601
1601
  ```
1602
1602
 
1603
- _See code: [src/commands/validate.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.0/src/commands/validate.ts)_
1603
+ _See code: [src/commands/validate.ts](https://github.com/powersync-ja/powersync-cli/blob/v0.10.1/src/commands/validate.ts)_
1604
1604
 
1605
1605
  <!-- commandsstop -->
@@ -86,7 +86,7 @@ export default class PullInstance extends CloudInstanceCommand {
86
86
  orgId: resolvedLink.org_id,
87
87
  projectId: resolvedLink.project_id
88
88
  });
89
- this.log(`Created ${ux.colorize('blue', `${directory}/${CLI_FILENAME}`)} with Cloud instance link.`);
89
+ this.log(`Created ${ux.colorize('blue', join(projectDir, CLI_FILENAME))} with Cloud instance link.`);
90
90
  }
91
91
  const { linked } = await this.loadProject(flags);
92
92
  if (!instanceConfig) {
@@ -1 +1 @@
1
- {"version":3,"file":"instance.js","sourceRoot":"","sources":["../../../src/commands/pull/instance.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,GAAG,EACH,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MA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AG,CACN,SAAS,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,iEAAiE,CAC7G,CAAC;QACJ,CAAC;IACH,CAAC"}
@@ -876,57 +876,26 @@
876
876
  "sync-config.js"
877
877
  ]
878
878
  },
879
- "generate": {
880
- "aliases": [],
881
- "args": {},
882
- "description": "Generate client artifacts: schema (from instance schema + sync config) or a development token for connecting clients. Cloud and self-hosted where supported.",
883
- "examples": [
884
- "<%= config.bin %> <%= command.id %>"
885
- ],
886
- "flags": {},
887
- "hasDynamicHelp": false,
888
- "hidden": true,
889
- "hiddenAliases": [],
890
- "id": "generate",
891
- "pluginAlias": "powersync",
892
- "pluginName": "powersync",
893
- "pluginType": "core",
894
- "strict": true,
895
- "summary": "Generate client schema or development token.",
896
- "enableJsonFlag": false,
897
- "isESM": true,
898
- "relativePath": [
899
- "dist",
900
- "commands",
901
- "generate",
902
- "index.js"
903
- ]
904
- },
905
- "generate:schema": {
879
+ "fetch:config": {
906
880
  "aliases": [],
907
881
  "args": {},
908
- "description": "Generate a client-side schema file from the instance database schema and sync config. Supports multiple output types (e.g. type, dart). Requires a linked instance. Cloud and self-hosted.",
882
+ "description": "Retrieve the current instance config from PowerSync Cloud and print as YAML or JSON.",
909
883
  "examples": [
910
- "<%= config.bin %> <%= command.id %> --output=ts --output-path=schema.ts",
911
- "<%= config.bin %> <%= command.id %> --output=dart --output-path=lib/schema.dart --instance-id=<id>"
884
+ "<%= config.bin %> <%= command.id %>",
885
+ "<%= config.bin %> <%= command.id %> --output=json"
912
886
  ],
913
887
  "flags": {
914
- "api-url": {
915
- "description": "[Self-hosted] PowerSync API URL. When set, context is treated as self-hosted (exclusive with --instance-id). Resolved: flag → cli.yaml → API_URL.",
916
- "exclusive": [
917
- "instance-id",
918
- "org-id",
919
- "project-id"
920
- ],
921
- "helpGroup": "SELF_HOSTED_PROJECT",
922
- "name": "api-url",
923
- "required": false,
888
+ "directory": {
889
+ "description": "Directory containing PowerSync config. Defaults to \"powersync\". This is required if multiple powersync config files are present in subdirectories of the current working directory.",
890
+ "helpGroup": "PROJECT",
891
+ "name": "directory",
892
+ "default": "powersync",
924
893
  "hasDynamicHelp": false,
925
894
  "multiple": false,
926
895
  "type": "option"
927
896
  },
928
897
  "instance-id": {
929
- "description": "[Cloud] PowerSync Cloud instance ID (BSON ObjectID). When set, context is treated as cloud (exclusive with --api-url). Resolved: flag → cli.yaml → INSTANCE_ID.",
898
+ "description": "PowerSync Cloud instance ID. Manually passed if the current context has not been linked.",
930
899
  "helpGroup": "CLOUD_PROJECT",
931
900
  "name": "instance-id",
932
901
  "required": false,
@@ -938,7 +907,7 @@
938
907
  "deprecated": {
939
908
  "message": "--org-id is a no-op. Organization ID is resolved automatically."
940
909
  },
941
- "description": "[Cloud] [Deprecated] Organization ID. Automatically resolved from --instance-id.",
910
+ "description": "[Deprecated] Organization ID. Automatically resolved from --instance-id.",
942
911
  "helpGroup": "CLOUD_PROJECT",
943
912
  "hidden": true,
944
913
  "name": "org-id",
@@ -951,7 +920,7 @@
951
920
  "deprecated": {
952
921
  "message": "--project-id is a no-op. Project ID is resolved automatically."
953
922
  },
954
- "description": "[Cloud] [Deprecated] Project ID. Automatically resolved from --instance-id.",
923
+ "description": "[Deprecated] Project ID. Automatically resolved from --instance-id.",
955
924
  "helpGroup": "CLOUD_PROJECT",
956
925
  "hidden": true,
957
926
  "name": "project-id",
@@ -960,46 +929,104 @@
960
929
  "multiple": false,
961
930
  "type": "option"
962
931
  },
963
- "directory": {
964
- "description": "Directory containing PowerSync config. Defaults to \"powersync\". This is required if multiple powersync config files are present in subdirectories of the current working directory.",
965
- "helpGroup": "PROJECT",
966
- "name": "directory",
967
- "default": "powersync",
932
+ "output": {
933
+ "description": "Output format: yaml or json.",
934
+ "name": "output",
935
+ "default": "yaml",
968
936
  "hasDynamicHelp": false,
969
937
  "multiple": false,
938
+ "options": [
939
+ "json",
940
+ "yaml"
941
+ ],
970
942
  "type": "option"
971
- },
972
- "sync-config-file-path": {
973
- "description": "[Optional] Override the path to a sync config file. When set, this file is used instead of sync-config.yaml in the project directory.",
974
- "helpGroup": "PROJECT",
975
- "name": "sync-config-file-path",
943
+ }
944
+ },
945
+ "hasDynamicHelp": false,
946
+ "hiddenAliases": [],
947
+ "id": "fetch:config",
948
+ "pluginAlias": "powersync",
949
+ "pluginName": "powersync",
950
+ "pluginType": "core",
951
+ "strict": true,
952
+ "summary": "[Cloud only] Print linked Cloud instance config (YAML or JSON).",
953
+ "enableJsonFlag": false,
954
+ "commandHelpGroup": "CLOUD",
955
+ "isESM": true,
956
+ "relativePath": [
957
+ "dist",
958
+ "commands",
959
+ "fetch",
960
+ "config.js"
961
+ ]
962
+ },
963
+ "fetch": {
964
+ "aliases": [],
965
+ "args": {},
966
+ "description": "Subcommands: list Cloud instances in org/project (fetch instances), print instance config as YAML/JSON (fetch config), or show instance diagnostics (fetch status).",
967
+ "examples": [
968
+ "<%= config.bin %> <%= command.id %>"
969
+ ],
970
+ "flags": {},
971
+ "hasDynamicHelp": false,
972
+ "hidden": true,
973
+ "hiddenAliases": [],
974
+ "id": "fetch",
975
+ "pluginAlias": "powersync",
976
+ "pluginName": "powersync",
977
+ "pluginType": "core",
978
+ "strict": true,
979
+ "summary": "List instances, fetch config, or fetch instance diagnostics.",
980
+ "enableJsonFlag": false,
981
+ "isESM": true,
982
+ "relativePath": [
983
+ "dist",
984
+ "commands",
985
+ "fetch",
986
+ "index.js"
987
+ ]
988
+ },
989
+ "fetch:instances": {
990
+ "aliases": [],
991
+ "args": {},
992
+ "description": "List PowerSync Cloud and linked instances, Cloud instances are grouped by organization and project.",
993
+ "examples": [
994
+ "<%= config.bin %> <%= command.id %>",
995
+ "<%= config.bin %> <%= command.id %> --project-id=<id> --output=json"
996
+ ],
997
+ "flags": {
998
+ "org-id": {
999
+ "description": "Optional Organization ID. Defaults to all organizations.",
1000
+ "name": "org-id",
1001
+ "required": false,
976
1002
  "hasDynamicHelp": false,
977
1003
  "multiple": false,
978
1004
  "type": "option"
979
1005
  },
980
1006
  "output": {
981
- "description": "Output type: dart, dotNet, dotNetClass, js, jsLegacy, kotlin, swift, ts",
1007
+ "description": "Output format: human or json.",
982
1008
  "name": "output",
983
- "required": true,
984
- "default": "type",
1009
+ "default": "human",
985
1010
  "hasDynamicHelp": false,
986
1011
  "multiple": false,
987
1012
  "options": [
988
- "dart",
989
- "dotNet",
990
- "dotNetClass",
991
- "js",
992
- "jsLegacy",
993
- "kotlin",
994
- "swift",
995
- "ts"
1013
+ "human",
1014
+ "json"
996
1015
  ],
997
1016
  "type": "option"
998
1017
  },
999
- "output-path": {
1000
- "description": "Path to output the schema file.",
1001
- "name": "output-path",
1002
- "required": true,
1018
+ "output-file": {
1019
+ "description": "Optionally write instance information to a file.",
1020
+ "name": "output-file",
1021
+ "required": false,
1022
+ "hasDynamicHelp": false,
1023
+ "multiple": false,
1024
+ "type": "option"
1025
+ },
1026
+ "project-id": {
1027
+ "description": "Optional Project ID. Defaults to all projects in the org.",
1028
+ "name": "project-id",
1029
+ "required": false,
1003
1030
  "hasDynamicHelp": false,
1004
1031
  "multiple": false,
1005
1032
  "type": "option"
@@ -1007,29 +1034,30 @@
1007
1034
  },
1008
1035
  "hasDynamicHelp": false,
1009
1036
  "hiddenAliases": [],
1010
- "id": "generate:schema",
1037
+ "id": "fetch:instances",
1011
1038
  "pluginAlias": "powersync",
1012
1039
  "pluginName": "powersync",
1013
1040
  "pluginType": "core",
1014
1041
  "strict": true,
1015
- "summary": "Generate client schema file from instance schema and sync config.",
1042
+ "summary": "List Cloud and linked instances.",
1016
1043
  "enableJsonFlag": false,
1017
- "commandHelpGroup": "INSTANCE",
1044
+ "commandHelpGroup": "CLOUD",
1018
1045
  "isESM": true,
1019
1046
  "relativePath": [
1020
1047
  "dist",
1021
1048
  "commands",
1022
- "generate",
1023
- "schema.js"
1049
+ "fetch",
1050
+ "instances.js"
1024
1051
  ]
1025
1052
  },
1026
- "generate:token": {
1053
+ "fetch:status": {
1027
1054
  "aliases": [],
1028
1055
  "args": {},
1029
- "description": "Generate a JWT for development clients to connect to PowerSync. Cloud: uses instance dev-token API (allow_temporary_tokens must be enabled). Self-hosted: signs with shared secret from config. Requires --subject; optional --expires-in-seconds.",
1056
+ "description": "Fetch instance diagnostics: connection status, active and deploying sync config, replication state. Output as human-readable, JSON, or YAML. Cloud and self-hosted.",
1030
1057
  "examples": [
1031
- "<%= config.bin %> <%= command.id %> --subject=user-123",
1032
- "<%= config.bin %> <%= command.id %> --subject=user-123 --expires-in-seconds=3600"
1058
+ "<%= config.bin %> <%= command.id %>",
1059
+ "<%= config.bin %> <%= command.id %> --output=json",
1060
+ "<%= config.bin %> <%= command.id %> --instance-id=<id>"
1033
1061
  ],
1034
1062
  "flags": {
1035
1063
  "api-url": {
@@ -1090,170 +1118,88 @@
1090
1118
  "multiple": false,
1091
1119
  "type": "option"
1092
1120
  },
1093
- "expires-in-seconds": {
1094
- "description": "Expiration time in seconds. Default is 43,200 (12 hours).",
1095
- "name": "expires-in-seconds",
1096
- "required": false,
1097
- "default": 43200,
1098
- "hasDynamicHelp": false,
1099
- "multiple": false,
1100
- "type": "option"
1101
- },
1102
- "kid": {
1103
- "description": "[Self-hosted only] Key ID of the key to use for signing the token. If not provided, the first key will be used.",
1104
- "name": "kid",
1105
- "required": false,
1106
- "hasDynamicHelp": false,
1107
- "multiple": false,
1108
- "type": "option"
1109
- },
1110
- "subject": {
1111
- "description": "Subject of the token.",
1112
- "name": "subject",
1113
- "required": true,
1121
+ "output": {
1122
+ "description": "Output format: human-readable, json, or yaml.",
1123
+ "name": "output",
1124
+ "default": "human",
1114
1125
  "hasDynamicHelp": false,
1115
1126
  "multiple": false,
1127
+ "options": [
1128
+ "human",
1129
+ "json",
1130
+ "yaml"
1131
+ ],
1116
1132
  "type": "option"
1117
1133
  }
1118
1134
  },
1119
1135
  "hasDynamicHelp": false,
1120
1136
  "hiddenAliases": [],
1121
- "id": "generate:token",
1137
+ "id": "fetch:status",
1122
1138
  "pluginAlias": "powersync",
1123
1139
  "pluginName": "powersync",
1124
1140
  "pluginType": "core",
1125
1141
  "strict": true,
1126
- "summary": "Generate a development JWT for client connections.",
1142
+ "summary": "Show instance diagnostics (connections, sync config, replication).",
1127
1143
  "enableJsonFlag": false,
1128
1144
  "commandHelpGroup": "INSTANCE",
1129
1145
  "isESM": true,
1130
1146
  "relativePath": [
1131
1147
  "dist",
1132
1148
  "commands",
1133
- "generate",
1134
- "token.js"
1149
+ "status.js"
1135
1150
  ]
1136
1151
  },
1137
- "init:cloud": {
1152
+ "generate": {
1138
1153
  "aliases": [],
1139
1154
  "args": {},
1140
- "description": "Copy a Cloud template into a config directory (default powersync/). Edit service.yaml then run link cloud and deploy.",
1155
+ "description": "Generate client artifacts: schema (from instance schema + sync config) or a development token for connecting clients. Cloud and self-hosted where supported.",
1141
1156
  "examples": [
1142
- "<%= config.bin %> <%= command.id %>",
1143
- "<%= config.bin %> <%= command.id %> --directory=powersync"
1157
+ "<%= config.bin %> <%= command.id %>"
1144
1158
  ],
1145
- "flags": {
1146
- "directory": {
1147
- "description": "Directory containing PowerSync config. Defaults to \"powersync\". This is required if multiple powersync config files are present in subdirectories of the current working directory.",
1148
- "helpGroup": "PROJECT",
1149
- "name": "directory",
1150
- "default": "powersync",
1151
- "hasDynamicHelp": false,
1152
- "multiple": false,
1153
- "type": "option"
1154
- }
1155
- },
1159
+ "flags": {},
1156
1160
  "hasDynamicHelp": false,
1161
+ "hidden": true,
1157
1162
  "hiddenAliases": [],
1158
- "id": "init:cloud",
1163
+ "id": "generate",
1159
1164
  "pluginAlias": "powersync",
1160
1165
  "pluginName": "powersync",
1161
1166
  "pluginType": "core",
1162
1167
  "strict": true,
1163
- "summary": "Scaffold a PowerSync Cloud config directory from a template.",
1168
+ "summary": "Generate client schema or development token.",
1164
1169
  "enableJsonFlag": false,
1165
- "commandHelpGroup": "PROJECT SETUP",
1166
1170
  "isESM": true,
1167
1171
  "relativePath": [
1168
1172
  "dist",
1169
1173
  "commands",
1170
- "init",
1171
- "cloud.js"
1174
+ "generate",
1175
+ "index.js"
1172
1176
  ]
1173
1177
  },
1174
- "init": {
1178
+ "generate:schema": {
1175
1179
  "aliases": [],
1176
1180
  "args": {},
1177
- "description": "Scaffold a PowerSync config directory from a template. Use init cloud or init self-hosted. For Cloud, edit service.yaml then run link cloud and deploy.",
1181
+ "description": "Generate a client-side schema file from the instance database schema and sync config. Supports multiple output types (e.g. type, dart). Requires a linked instance. Cloud and self-hosted.",
1178
1182
  "examples": [
1179
- "<%= config.bin %> <%= command.id %>"
1180
- ],
1181
- "flags": {},
1182
- "hasDynamicHelp": false,
1183
- "hidden": true,
1184
- "hiddenAliases": [],
1185
- "id": "init",
1186
- "pluginAlias": "powersync",
1187
- "pluginName": "powersync",
1188
- "pluginType": "core",
1189
- "strict": true,
1190
- "summary": "Scaffold a PowerSync config directory from a template.",
1191
- "enableJsonFlag": false,
1192
- "isESM": true,
1193
- "relativePath": [
1194
- "dist",
1195
- "commands",
1196
- "init",
1197
- "index.js"
1198
- ]
1199
- },
1200
- "init:self-hosted": {
1201
- "aliases": [],
1202
- "args": {},
1203
- "description": "Copy a self-hosted template into a config directory (default powersync/). Configure service.yaml with your self-hosted instance details.",
1204
- "examples": [
1205
- "<%= config.bin %> <%= command.id %>",
1206
- "<%= config.bin %> <%= command.id %> --directory=powersync"
1183
+ "<%= config.bin %> <%= command.id %> --output=ts --output-path=schema.ts",
1184
+ "<%= config.bin %> <%= command.id %> --output=dart --output-path=lib/schema.dart --instance-id=<id>"
1207
1185
  ],
1208
1186
  "flags": {
1209
- "directory": {
1210
- "description": "Directory containing PowerSync config. Defaults to \"powersync\". This is required if multiple powersync config files are present in subdirectories of the current working directory.",
1211
- "helpGroup": "PROJECT",
1212
- "name": "directory",
1213
- "default": "powersync",
1214
- "hasDynamicHelp": false,
1215
- "multiple": false,
1216
- "type": "option"
1217
- }
1218
- },
1219
- "hasDynamicHelp": false,
1220
- "hiddenAliases": [],
1221
- "id": "init:self-hosted",
1222
- "pluginAlias": "powersync",
1223
- "pluginName": "powersync",
1224
- "pluginType": "core",
1225
- "strict": true,
1226
- "summary": "Scaffold a PowerSync self-hosted config directory from a template.",
1227
- "enableJsonFlag": false,
1228
- "commandHelpGroup": "PROJECT SETUP",
1229
- "isESM": true,
1230
- "relativePath": [
1231
- "dist",
1232
- "commands",
1233
- "init",
1234
- "self-hosted.js"
1235
- ]
1236
- },
1237
- "fetch:config": {
1238
- "aliases": [],
1239
- "args": {},
1240
- "description": "Retrieve the current instance config from PowerSync Cloud and print as YAML or JSON.",
1241
- "examples": [
1242
- "<%= config.bin %> <%= command.id %>",
1243
- "<%= config.bin %> <%= command.id %> --output=json"
1244
- ],
1245
- "flags": {
1246
- "directory": {
1247
- "description": "Directory containing PowerSync config. Defaults to \"powersync\". This is required if multiple powersync config files are present in subdirectories of the current working directory.",
1248
- "helpGroup": "PROJECT",
1249
- "name": "directory",
1250
- "default": "powersync",
1187
+ "api-url": {
1188
+ "description": "[Self-hosted] PowerSync API URL. When set, context is treated as self-hosted (exclusive with --instance-id). Resolved: flag → cli.yaml → API_URL.",
1189
+ "exclusive": [
1190
+ "instance-id",
1191
+ "org-id",
1192
+ "project-id"
1193
+ ],
1194
+ "helpGroup": "SELF_HOSTED_PROJECT",
1195
+ "name": "api-url",
1196
+ "required": false,
1251
1197
  "hasDynamicHelp": false,
1252
1198
  "multiple": false,
1253
1199
  "type": "option"
1254
1200
  },
1255
1201
  "instance-id": {
1256
- "description": "PowerSync Cloud instance ID. Manually passed if the current context has not been linked.",
1202
+ "description": "[Cloud] PowerSync Cloud instance ID (BSON ObjectID). When set, context is treated as cloud (exclusive with --api-url). Resolved: flag → cli.yaml → INSTANCE_ID.",
1257
1203
  "helpGroup": "CLOUD_PROJECT",
1258
1204
  "name": "instance-id",
1259
1205
  "required": false,
@@ -1265,7 +1211,7 @@
1265
1211
  "deprecated": {
1266
1212
  "message": "--org-id is a no-op. Organization ID is resolved automatically."
1267
1213
  },
1268
- "description": "[Deprecated] Organization ID. Automatically resolved from --instance-id.",
1214
+ "description": "[Cloud] [Deprecated] Organization ID. Automatically resolved from --instance-id.",
1269
1215
  "helpGroup": "CLOUD_PROJECT",
1270
1216
  "hidden": true,
1271
1217
  "name": "org-id",
@@ -1278,7 +1224,7 @@
1278
1224
  "deprecated": {
1279
1225
  "message": "--project-id is a no-op. Project ID is resolved automatically."
1280
1226
  },
1281
- "description": "[Deprecated] Project ID. Automatically resolved from --instance-id.",
1227
+ "description": "[Cloud] [Deprecated] Project ID. Automatically resolved from --instance-id.",
1282
1228
  "helpGroup": "CLOUD_PROJECT",
1283
1229
  "hidden": true,
1284
1230
  "name": "project-id",
@@ -1287,104 +1233,46 @@
1287
1233
  "multiple": false,
1288
1234
  "type": "option"
1289
1235
  },
1290
- "output": {
1291
- "description": "Output format: yaml or json.",
1292
- "name": "output",
1293
- "default": "yaml",
1236
+ "directory": {
1237
+ "description": "Directory containing PowerSync config. Defaults to \"powersync\". This is required if multiple powersync config files are present in subdirectories of the current working directory.",
1238
+ "helpGroup": "PROJECT",
1239
+ "name": "directory",
1240
+ "default": "powersync",
1294
1241
  "hasDynamicHelp": false,
1295
1242
  "multiple": false,
1296
- "options": [
1297
- "json",
1298
- "yaml"
1299
- ],
1300
1243
  "type": "option"
1301
- }
1302
- },
1303
- "hasDynamicHelp": false,
1304
- "hiddenAliases": [],
1305
- "id": "fetch:config",
1306
- "pluginAlias": "powersync",
1307
- "pluginName": "powersync",
1308
- "pluginType": "core",
1309
- "strict": true,
1310
- "summary": "[Cloud only] Print linked Cloud instance config (YAML or JSON).",
1311
- "enableJsonFlag": false,
1312
- "commandHelpGroup": "CLOUD",
1313
- "isESM": true,
1314
- "relativePath": [
1315
- "dist",
1316
- "commands",
1317
- "fetch",
1318
- "config.js"
1319
- ]
1320
- },
1321
- "fetch": {
1322
- "aliases": [],
1323
- "args": {},
1324
- "description": "Subcommands: list Cloud instances in org/project (fetch instances), print instance config as YAML/JSON (fetch config), or show instance diagnostics (fetch status).",
1325
- "examples": [
1326
- "<%= config.bin %> <%= command.id %>"
1327
- ],
1328
- "flags": {},
1329
- "hasDynamicHelp": false,
1330
- "hidden": true,
1331
- "hiddenAliases": [],
1332
- "id": "fetch",
1333
- "pluginAlias": "powersync",
1334
- "pluginName": "powersync",
1335
- "pluginType": "core",
1336
- "strict": true,
1337
- "summary": "List instances, fetch config, or fetch instance diagnostics.",
1338
- "enableJsonFlag": false,
1339
- "isESM": true,
1340
- "relativePath": [
1341
- "dist",
1342
- "commands",
1343
- "fetch",
1344
- "index.js"
1345
- ]
1346
- },
1347
- "fetch:instances": {
1348
- "aliases": [],
1349
- "args": {},
1350
- "description": "List PowerSync Cloud and linked instances, Cloud instances are grouped by organization and project.",
1351
- "examples": [
1352
- "<%= config.bin %> <%= command.id %>",
1353
- "<%= config.bin %> <%= command.id %> --project-id=<id> --output=json"
1354
- ],
1355
- "flags": {
1356
- "org-id": {
1357
- "description": "Optional Organization ID. Defaults to all organizations.",
1358
- "name": "org-id",
1359
- "required": false,
1244
+ },
1245
+ "sync-config-file-path": {
1246
+ "description": "[Optional] Override the path to a sync config file. When set, this file is used instead of sync-config.yaml in the project directory.",
1247
+ "helpGroup": "PROJECT",
1248
+ "name": "sync-config-file-path",
1360
1249
  "hasDynamicHelp": false,
1361
1250
  "multiple": false,
1362
1251
  "type": "option"
1363
1252
  },
1364
1253
  "output": {
1365
- "description": "Output format: human or json.",
1254
+ "description": "Output type: dart, dotNet, dotNetClass, js, jsLegacy, kotlin, swift, ts",
1366
1255
  "name": "output",
1367
- "default": "human",
1256
+ "required": true,
1257
+ "default": "type",
1368
1258
  "hasDynamicHelp": false,
1369
1259
  "multiple": false,
1370
1260
  "options": [
1371
- "human",
1372
- "json"
1261
+ "dart",
1262
+ "dotNet",
1263
+ "dotNetClass",
1264
+ "js",
1265
+ "jsLegacy",
1266
+ "kotlin",
1267
+ "swift",
1268
+ "ts"
1373
1269
  ],
1374
1270
  "type": "option"
1375
1271
  },
1376
- "output-file": {
1377
- "description": "Optionally write instance information to a file.",
1378
- "name": "output-file",
1379
- "required": false,
1380
- "hasDynamicHelp": false,
1381
- "multiple": false,
1382
- "type": "option"
1383
- },
1384
- "project-id": {
1385
- "description": "Optional Project ID. Defaults to all projects in the org.",
1386
- "name": "project-id",
1387
- "required": false,
1272
+ "output-path": {
1273
+ "description": "Path to output the schema file.",
1274
+ "name": "output-path",
1275
+ "required": true,
1388
1276
  "hasDynamicHelp": false,
1389
1277
  "multiple": false,
1390
1278
  "type": "option"
@@ -1392,30 +1280,29 @@
1392
1280
  },
1393
1281
  "hasDynamicHelp": false,
1394
1282
  "hiddenAliases": [],
1395
- "id": "fetch:instances",
1283
+ "id": "generate:schema",
1396
1284
  "pluginAlias": "powersync",
1397
1285
  "pluginName": "powersync",
1398
1286
  "pluginType": "core",
1399
1287
  "strict": true,
1400
- "summary": "List Cloud and linked instances.",
1288
+ "summary": "Generate client schema file from instance schema and sync config.",
1401
1289
  "enableJsonFlag": false,
1402
- "commandHelpGroup": "CLOUD",
1290
+ "commandHelpGroup": "INSTANCE",
1403
1291
  "isESM": true,
1404
1292
  "relativePath": [
1405
1293
  "dist",
1406
1294
  "commands",
1407
- "fetch",
1408
- "instances.js"
1295
+ "generate",
1296
+ "schema.js"
1409
1297
  ]
1410
1298
  },
1411
- "fetch:status": {
1299
+ "generate:token": {
1412
1300
  "aliases": [],
1413
1301
  "args": {},
1414
- "description": "Fetch instance diagnostics: connection status, active and deploying sync config, replication state. Output as human-readable, JSON, or YAML. Cloud and self-hosted.",
1302
+ "description": "Generate a JWT for development clients to connect to PowerSync. Cloud: uses instance dev-token API (allow_temporary_tokens must be enabled). Self-hosted: signs with shared secret from config. Requires --subject; optional --expires-in-seconds.",
1415
1303
  "examples": [
1416
- "<%= config.bin %> <%= command.id %>",
1417
- "<%= config.bin %> <%= command.id %> --output=json",
1418
- "<%= config.bin %> <%= command.id %> --instance-id=<id>"
1304
+ "<%= config.bin %> <%= command.id %> --subject=user-123",
1305
+ "<%= config.bin %> <%= command.id %> --subject=user-123 --expires-in-seconds=3600"
1419
1306
  ],
1420
1307
  "flags": {
1421
1308
  "api-url": {
@@ -1476,35 +1363,148 @@
1476
1363
  "multiple": false,
1477
1364
  "type": "option"
1478
1365
  },
1479
- "output": {
1480
- "description": "Output format: human-readable, json, or yaml.",
1481
- "name": "output",
1482
- "default": "human",
1366
+ "expires-in-seconds": {
1367
+ "description": "Expiration time in seconds. Default is 43,200 (12 hours).",
1368
+ "name": "expires-in-seconds",
1369
+ "required": false,
1370
+ "default": 43200,
1371
+ "hasDynamicHelp": false,
1372
+ "multiple": false,
1373
+ "type": "option"
1374
+ },
1375
+ "kid": {
1376
+ "description": "[Self-hosted only] Key ID of the key to use for signing the token. If not provided, the first key will be used.",
1377
+ "name": "kid",
1378
+ "required": false,
1379
+ "hasDynamicHelp": false,
1380
+ "multiple": false,
1381
+ "type": "option"
1382
+ },
1383
+ "subject": {
1384
+ "description": "Subject of the token.",
1385
+ "name": "subject",
1386
+ "required": true,
1483
1387
  "hasDynamicHelp": false,
1484
1388
  "multiple": false,
1485
- "options": [
1486
- "human",
1487
- "json",
1488
- "yaml"
1489
- ],
1490
1389
  "type": "option"
1491
1390
  }
1492
1391
  },
1493
1392
  "hasDynamicHelp": false,
1494
1393
  "hiddenAliases": [],
1495
- "id": "fetch:status",
1394
+ "id": "generate:token",
1496
1395
  "pluginAlias": "powersync",
1497
1396
  "pluginName": "powersync",
1498
1397
  "pluginType": "core",
1499
1398
  "strict": true,
1500
- "summary": "Show instance diagnostics (connections, sync config, replication).",
1399
+ "summary": "Generate a development JWT for client connections.",
1501
1400
  "enableJsonFlag": false,
1502
1401
  "commandHelpGroup": "INSTANCE",
1503
1402
  "isESM": true,
1504
1403
  "relativePath": [
1505
1404
  "dist",
1506
1405
  "commands",
1507
- "status.js"
1406
+ "generate",
1407
+ "token.js"
1408
+ ]
1409
+ },
1410
+ "init:cloud": {
1411
+ "aliases": [],
1412
+ "args": {},
1413
+ "description": "Copy a Cloud template into a config directory (default powersync/). Edit service.yaml then run link cloud and deploy.",
1414
+ "examples": [
1415
+ "<%= config.bin %> <%= command.id %>",
1416
+ "<%= config.bin %> <%= command.id %> --directory=powersync"
1417
+ ],
1418
+ "flags": {
1419
+ "directory": {
1420
+ "description": "Directory containing PowerSync config. Defaults to \"powersync\". This is required if multiple powersync config files are present in subdirectories of the current working directory.",
1421
+ "helpGroup": "PROJECT",
1422
+ "name": "directory",
1423
+ "default": "powersync",
1424
+ "hasDynamicHelp": false,
1425
+ "multiple": false,
1426
+ "type": "option"
1427
+ }
1428
+ },
1429
+ "hasDynamicHelp": false,
1430
+ "hiddenAliases": [],
1431
+ "id": "init:cloud",
1432
+ "pluginAlias": "powersync",
1433
+ "pluginName": "powersync",
1434
+ "pluginType": "core",
1435
+ "strict": true,
1436
+ "summary": "Scaffold a PowerSync Cloud config directory from a template.",
1437
+ "enableJsonFlag": false,
1438
+ "commandHelpGroup": "PROJECT SETUP",
1439
+ "isESM": true,
1440
+ "relativePath": [
1441
+ "dist",
1442
+ "commands",
1443
+ "init",
1444
+ "cloud.js"
1445
+ ]
1446
+ },
1447
+ "init": {
1448
+ "aliases": [],
1449
+ "args": {},
1450
+ "description": "Scaffold a PowerSync config directory from a template. Use init cloud or init self-hosted. For Cloud, edit service.yaml then run link cloud and deploy.",
1451
+ "examples": [
1452
+ "<%= config.bin %> <%= command.id %>"
1453
+ ],
1454
+ "flags": {},
1455
+ "hasDynamicHelp": false,
1456
+ "hidden": true,
1457
+ "hiddenAliases": [],
1458
+ "id": "init",
1459
+ "pluginAlias": "powersync",
1460
+ "pluginName": "powersync",
1461
+ "pluginType": "core",
1462
+ "strict": true,
1463
+ "summary": "Scaffold a PowerSync config directory from a template.",
1464
+ "enableJsonFlag": false,
1465
+ "isESM": true,
1466
+ "relativePath": [
1467
+ "dist",
1468
+ "commands",
1469
+ "init",
1470
+ "index.js"
1471
+ ]
1472
+ },
1473
+ "init:self-hosted": {
1474
+ "aliases": [],
1475
+ "args": {},
1476
+ "description": "Copy a self-hosted template into a config directory (default powersync/). Configure service.yaml with your self-hosted instance details.",
1477
+ "examples": [
1478
+ "<%= config.bin %> <%= command.id %>",
1479
+ "<%= config.bin %> <%= command.id %> --directory=powersync"
1480
+ ],
1481
+ "flags": {
1482
+ "directory": {
1483
+ "description": "Directory containing PowerSync config. Defaults to \"powersync\". This is required if multiple powersync config files are present in subdirectories of the current working directory.",
1484
+ "helpGroup": "PROJECT",
1485
+ "name": "directory",
1486
+ "default": "powersync",
1487
+ "hasDynamicHelp": false,
1488
+ "multiple": false,
1489
+ "type": "option"
1490
+ }
1491
+ },
1492
+ "hasDynamicHelp": false,
1493
+ "hiddenAliases": [],
1494
+ "id": "init:self-hosted",
1495
+ "pluginAlias": "powersync",
1496
+ "pluginName": "powersync",
1497
+ "pluginType": "core",
1498
+ "strict": true,
1499
+ "summary": "Scaffold a PowerSync self-hosted config directory from a template.",
1500
+ "enableJsonFlag": false,
1501
+ "commandHelpGroup": "PROJECT SETUP",
1502
+ "isESM": true,
1503
+ "relativePath": [
1504
+ "dist",
1505
+ "commands",
1506
+ "init",
1507
+ "self-hosted.js"
1508
1508
  ]
1509
1509
  },
1510
1510
  "link:cloud": {
@@ -1871,5 +1871,5 @@
1871
1871
  ]
1872
1872
  }
1873
1873
  },
1874
- "version": "0.10.0"
1874
+ "version": "0.10.1"
1875
1875
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "powersync",
3
3
  "description": "A CLI for managing PowerSync instances",
4
- "version": "0.10.0",
4
+ "version": "0.10.1",
5
5
  "author": "POWERSYNC",
6
6
  "bin": {
7
7
  "powersync": "./bin/run.js"
@@ -29,10 +29,10 @@
29
29
  "ora": "^9.4.0",
30
30
  "ts-codec": "^1.3.0",
31
31
  "yaml": "^2.8.3",
32
- "@powersync/cli-plugin-config-edit": "0.10.0",
33
- "@powersync/cli-core": "0.10.0",
34
- "@powersync/cli-plugin-docker": "0.10.0",
35
- "@powersync/cli-schemas": "0.10.0"
32
+ "@powersync/cli-plugin-docker": "0.10.1",
33
+ "@powersync/cli-schemas": "0.10.1",
34
+ "@powersync/cli-plugin-config-edit": "0.10.1",
35
+ "@powersync/cli-core": "0.10.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@oclif/prettier-config": "^0.2.1",