powersync 0.5.0 → 0.5.2

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
@@ -90,7 +90,7 @@ EXAMPLES
90
90
  $ npx powersync init
91
91
  ```
92
92
 
93
- _See code: [src/commands/init.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/init.ts)_
93
+ _See code: [src/commands/init.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/init.ts)_
94
94
 
95
95
  ## `powersync instance config`
96
96
 
@@ -107,7 +107,7 @@ EXAMPLES
107
107
  $ npx powersync instance config
108
108
  ```
109
109
 
110
- _See code: [src/commands/instance/config.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instance/config.ts)_
110
+ _See code: [src/commands/instance/config.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instance/config.ts)_
111
111
 
112
112
  ## `powersync instance create`
113
113
 
@@ -115,19 +115,19 @@ Create a new instance.
115
115
 
116
116
  ```
117
117
  USAGE
118
- $ npx powersync instance create [-n <value>] [-h <value>] [-a <value>] [-w <value>] [-i <value>] [-o <value>] [-r
119
- <value>] [-s] [-a]
118
+ $ npx powersync instance create [-n <value>] [-h <value>] [-w <value>] [-a <value>] [-i <value>] [-o <value>] [-r
119
+ <value>] [-s] [-b]
120
120
 
121
121
  FLAGS
122
- -a, --jwksAudiences=<value> JWKS audiences (comma separated).
123
- -a, --[no-]useSupabaseAuth Use Supabase auth.
124
- -h, --hostname=<value> Hostname to connect to database.
125
- -i, --name=<value> Name of the instance.
126
- -n, --databaseName=<value> Name of the database.
127
- -o, --port=<value> Port number to connect to database.
128
- -r, --region=<value> Region to deploy instance to.
129
- -s, --skipInteraction Skip interactivity.
130
- -w, --jwksUri=<value> JWKS URL (must include https://).
122
+ -a, --jwtAudiences=<value> JWT audiences (comma separated).
123
+ -b, --[no-]useSupabaseAuth Use Supabase auth.
124
+ -h, --hostname=<value> Hostname to connect to database.
125
+ -i, --name=<value> Name of the instance.
126
+ -n, --databaseName=<value> Name of the database.
127
+ -o, --port=<value> Port number to connect to database.
128
+ -r, --region=<value> Region to deploy instance to.
129
+ -s, --skipInteraction Skip interactivity.
130
+ -w, --jwksUri=<value> JWKS URI (must include https://).
131
131
 
132
132
  DESCRIPTION
133
133
  Create a new instance.
@@ -136,7 +136,7 @@ EXAMPLES
136
136
  $ npx powersync instance create
137
137
  ```
138
138
 
139
- _See code: [src/commands/instance/create.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instance/create.ts)_
139
+ _See code: [src/commands/instance/create.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instance/create.ts)_
140
140
 
141
141
  ## `powersync instance deploy`
142
142
 
@@ -144,16 +144,16 @@ Deploy changes to an existing instance.
144
144
 
145
145
  ```
146
146
  USAGE
147
- $ npx powersync instance deploy [-n <value>] [-h <value>] [-a <value>] [-w <value>] [-o <value>] [-s] [-a]
147
+ $ npx powersync instance deploy [-n <value>] [-h <value>] [-w <value>] [-a <value>] [-o <value>] [-s] [-b]
148
148
 
149
149
  FLAGS
150
- -a, --jwksAudiences=<value> JWKS audiences (comma separated).
151
- -a, --[no-]useSupabaseAuth Use Supabase auth.
152
- -h, --hostname=<value> Hostname to connect to database.
153
- -n, --databaseName=<value> Name of the database.
154
- -o, --port=<value> Port number to connect to database.
155
- -s, --skipInteraction Skip interactivity.
156
- -w, --jwksUri=<value> JWKS URL (must include https://).
150
+ -a, --jwtAudiences=<value> JWT audiences (comma separated).
151
+ -b, --[no-]useSupabaseAuth Use Supabase auth.
152
+ -h, --hostname=<value> Hostname to connect to database.
153
+ -n, --databaseName=<value> Name of the database.
154
+ -o, --port=<value> Port number to connect to database.
155
+ -s, --skipInteraction Skip interactivity.
156
+ -w, --jwksUri=<value> JWKS URI (must include https://).
157
157
 
158
158
  DESCRIPTION
159
159
  Deploy changes to an existing instance.
@@ -162,7 +162,7 @@ EXAMPLES
162
162
  $ npx powersync instance deploy
163
163
  ```
164
164
 
165
- _See code: [src/commands/instance/deploy.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instance/deploy.ts)_
165
+ _See code: [src/commands/instance/deploy.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instance/deploy.ts)_
166
166
 
167
167
  ## `powersync instance destroy`
168
168
 
@@ -182,7 +182,7 @@ EXAMPLES
182
182
  $ npx powersync instance destroy
183
183
  ```
184
184
 
185
- _See code: [src/commands/instance/destroy.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instance/destroy.ts)_
185
+ _See code: [src/commands/instance/destroy.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instance/destroy.ts)_
186
186
 
187
187
  ## `powersync instance generate-dev-token`
188
188
 
@@ -203,7 +203,7 @@ EXAMPLES
203
203
  $ npx powersync instance generate-dev-token
204
204
  ```
205
205
 
206
- _See code: [src/commands/instance/generate-dev-token.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instance/generate-dev-token.ts)_
206
+ _See code: [src/commands/instance/generate-dev-token.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instance/generate-dev-token.ts)_
207
207
 
208
208
  ## `powersync instance schema`
209
209
 
@@ -220,7 +220,7 @@ EXAMPLES
220
220
  $ npx powersync instance schema
221
221
  ```
222
222
 
223
- _See code: [src/commands/instance/schema.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instance/schema.ts)_
223
+ _See code: [src/commands/instance/schema.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instance/schema.ts)_
224
224
 
225
225
  ## `powersync instance set`
226
226
 
@@ -242,7 +242,7 @@ EXAMPLES
242
242
  $ npx powersync instance set --instanceId=1234
243
243
  ```
244
244
 
245
- _See code: [src/commands/instance/set.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instance/set.ts)_
245
+ _See code: [src/commands/instance/set.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instance/set.ts)_
246
246
 
247
247
  ## `powersync instance status`
248
248
 
@@ -267,7 +267,7 @@ EXAMPLES
267
267
  $ npx powersync instance status --orgId=1234 --projectId=1234 --instanceId=1234 --authToken=1234
268
268
  ```
269
269
 
270
- _See code: [src/commands/instance/status.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instance/status.ts)_
270
+ _See code: [src/commands/instance/status.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instance/status.ts)_
271
271
 
272
272
  ## `powersync instance stop`
273
273
 
@@ -287,7 +287,7 @@ EXAMPLES
287
287
  $ npx powersync instance stop
288
288
  ```
289
289
 
290
- _See code: [src/commands/instance/stop.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instance/stop.ts)_
290
+ _See code: [src/commands/instance/stop.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instance/stop.ts)_
291
291
 
292
292
  ## `powersync instance sync-rules deploy`
293
293
 
@@ -312,7 +312,7 @@ EXAMPLES
312
312
  $ npx powersync instance sync-rules deploy -f path/to/file
313
313
  ```
314
314
 
315
- _See code: [src/commands/instance/sync-rules/deploy.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instance/sync-rules/deploy.ts)_
315
+ _See code: [src/commands/instance/sync-rules/deploy.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instance/sync-rules/deploy.ts)_
316
316
 
317
317
  ## `powersync instance sync-rules generate-schema`
318
318
 
@@ -338,7 +338,7 @@ EXAMPLES
338
338
  $ npx powersync instance sync-rules generate-schema -f path/to/file
339
339
  ```
340
340
 
341
- _See code: [src/commands/instance/sync-rules/generate-schema.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instance/sync-rules/generate-schema.ts)_
341
+ _See code: [src/commands/instance/sync-rules/generate-schema.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instance/sync-rules/generate-schema.ts)_
342
342
 
343
343
  ## `powersync instance sync-rules validate`
344
344
 
@@ -362,7 +362,7 @@ EXAMPLES
362
362
  $ npx powersync instance sync-rules validate -f path/to/file
363
363
  ```
364
364
 
365
- _See code: [src/commands/instance/sync-rules/validate.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instance/sync-rules/validate.ts)_
365
+ _See code: [src/commands/instance/sync-rules/validate.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instance/sync-rules/validate.ts)_
366
366
 
367
367
  ## `powersync instances`
368
368
 
@@ -379,5 +379,5 @@ EXAMPLES
379
379
  $ npx powersync instances
380
380
  ```
381
381
 
382
- _See code: [src/commands/instances.ts](https://github.com/powersync-ja/cli/blob/v0.5.0/src/commands/instances.ts)_
382
+ _See code: [src/commands/instances.ts](https://github.com/powersync-ja/cli/blob/v0.5.2/src/commands/instances.ts)_
383
383
  <!-- commandsstop -->
@@ -17,7 +17,7 @@ export default class Init extends Command {
17
17
  async run() {
18
18
  const authTokenQuestions = [
19
19
  {
20
- message: 'Enter your API token:',
20
+ message: 'Enter your API token (https://docs.powersync.com/usage/tools/cli#personal-access-token):',
21
21
  name: 'authToken',
22
22
  type: 'password',
23
23
  validate(value) {
@@ -7,8 +7,8 @@ export default class InstanceCreate extends Command {
7
7
  databasePassword: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
8
8
  databaseUsername: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
9
9
  hostname: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
10
- jwksAudiences: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
11
10
  jwksUri: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
11
+ jwtAudiences: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
12
12
  name: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
13
13
  port: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
14
14
  region: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
@@ -13,13 +13,13 @@ export default class InstanceCreate extends Command {
13
13
  databasePassword: Flags.string({ char: 'p', description: 'Password of the database.', hidden: true }),
14
14
  databaseUsername: Flags.string({ char: 'u', description: 'Username of the database.', hidden: true }),
15
15
  hostname: Flags.string({ char: 'h', description: 'Hostname to connect to database.' }),
16
- jwksAudiences: Flags.string({ char: 'a', default: '', description: 'JWKS audiences (comma separated).' }),
17
- jwksUri: Flags.string({ char: 'w', description: 'JWKS URL (must include https://).' }),
16
+ jwksUri: Flags.string({ char: 'w', description: 'JWKS URI (must include https://).' }),
17
+ jwtAudiences: Flags.string({ char: 'a', default: '', description: 'JWT audiences (comma separated).' }),
18
18
  name: Flags.string({ char: 'i', description: 'Name of the instance.' }),
19
19
  port: Flags.integer({ char: 'o', description: 'Port number to connect to database.' }),
20
20
  region: Flags.string({ char: 'r', description: 'Region to deploy instance to.' }),
21
21
  skipInteraction: Flags.boolean({ char: 's', description: 'Skip interactivity.' }),
22
- useSupabaseAuth: Flags.boolean({ allowNo: true, char: 'a', description: 'Use Supabase auth.' })
22
+ useSupabaseAuth: Flags.boolean({ allowNo: true, char: 'b', description: 'Use Supabase auth.' })
23
23
  };
24
24
  async run() {
25
25
  checkForValidEnvFile(this.config.bin);
@@ -7,8 +7,8 @@ export default class InstanceDeploy extends Command {
7
7
  databasePassword: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
8
8
  databaseUsername: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
9
9
  hostname: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
10
- jwksAudiences: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
11
10
  jwksUri: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
11
+ jwtAudiences: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
12
12
  port: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
13
13
  skipInteraction: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
14
14
  useSupabaseAuth: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
@@ -13,11 +13,11 @@ export default class InstanceDeploy extends Command {
13
13
  databasePassword: Flags.string({ char: 'p', description: 'Password of the database.', hidden: true }),
14
14
  databaseUsername: Flags.string({ char: 'u', description: 'Username of the database.', hidden: true }),
15
15
  hostname: Flags.string({ char: 'h', description: 'Hostname to connect to database.' }),
16
- jwksAudiences: Flags.string({ char: 'a', description: 'JWKS audiences (comma separated).' }),
17
- jwksUri: Flags.string({ char: 'w', description: 'JWKS URL (must include https://).' }),
16
+ jwksUri: Flags.string({ char: 'w', description: 'JWKS URI (must include https://).' }),
17
+ jwtAudiences: Flags.string({ char: 'a', description: 'JWT audiences (comma separated).' }),
18
18
  port: Flags.integer({ char: 'o', description: 'Port number to connect to database.' }),
19
19
  skipInteraction: Flags.boolean({ char: 's', description: 'Skip interactivity.' }),
20
- useSupabaseAuth: Flags.boolean({ allowNo: true, char: 'a', description: 'Use Supabase auth.' })
20
+ useSupabaseAuth: Flags.boolean({ allowNo: true, char: 'b', description: 'Use Supabase auth.' })
21
21
  };
22
22
  async run() {
23
23
  checkForValidEnvFile(this.config.bin, true);
@@ -61,7 +61,7 @@ export const generateCommonDeployQuestions = (flags) => [
61
61
  when: flags.useSupabaseAuth == null && !flags.jwksUri
62
62
  },
63
63
  {
64
- message: 'Enter your JWKS URL (must include https://)?',
64
+ message: 'Enter your JWKS URI (must include https://)?',
65
65
  name: 'jwksUri',
66
66
  type: 'input',
67
67
  validate(value) {
@@ -78,7 +78,7 @@ export const generateCommonDeployQuestions = (flags) => [
78
78
  when: !flags.jwksUri
79
79
  },
80
80
  {
81
- message: 'Enter your JWKS Audiences? (comma separated)',
81
+ message: 'Enter your JWT Audiences? (comma separated)',
82
82
  name: 'jwksAudiences',
83
83
  type: 'input',
84
84
  when: (answers) => answers.useAudiences
@@ -11157,7 +11157,7 @@ var files = [
11157
11157
  "/dist",
11158
11158
  "/oclif.manifest.json"
11159
11159
  ];
11160
- var version = "0.5.0";
11160
+ var version = "0.5.2";
11161
11161
  var bugs = "https://github.com/powersync-ja/cli/issues";
11162
11162
  var types = "dist/index.d.ts";
11163
11163
  var exports = "./lib/index.js";
@@ -17277,7 +17277,7 @@ var files = [
17277
17277
  "/dist",
17278
17278
  "/oclif.manifest.json"
17279
17279
  ];
17280
- var version = "0.5.0";
17280
+ var version = "0.5.2";
17281
17281
  var bugs = "https://github.com/powersync-ja/cli/issues";
17282
17282
  var types$2 = "dist/index.d.ts";
17283
17283
  var exports = "./lib/index.js";
@@ -18,7 +18,7 @@ var files = [
18
18
  "/dist",
19
19
  "/oclif.manifest.json"
20
20
  ];
21
- var version = "0.5.0";
21
+ var version = "0.5.2";
22
22
  var bugs = "https://github.com/powersync-ja/cli/issues";
23
23
  var types = "dist/index.d.ts";
24
24
  var exports = "./lib/index.js";
@@ -112,19 +112,19 @@
112
112
  "multiple": false,
113
113
  "type": "option"
114
114
  },
115
- "jwksAudiences": {
116
- "char": "a",
117
- "description": "JWKS audiences (comma separated).",
118
- "name": "jwksAudiences",
119
- "default": "",
115
+ "jwksUri": {
116
+ "char": "w",
117
+ "description": "JWKS URI (must include https://).",
118
+ "name": "jwksUri",
120
119
  "hasDynamicHelp": false,
121
120
  "multiple": false,
122
121
  "type": "option"
123
122
  },
124
- "jwksUri": {
125
- "char": "w",
126
- "description": "JWKS URL (must include https://).",
127
- "name": "jwksUri",
123
+ "jwtAudiences": {
124
+ "char": "a",
125
+ "description": "JWT audiences (comma separated).",
126
+ "name": "jwtAudiences",
127
+ "default": "",
128
128
  "hasDynamicHelp": false,
129
129
  "multiple": false,
130
130
  "type": "option"
@@ -161,7 +161,7 @@
161
161
  "type": "boolean"
162
162
  },
163
163
  "useSupabaseAuth": {
164
- "char": "a",
164
+ "char": "b",
165
165
  "description": "Use Supabase auth.",
166
166
  "name": "useSupabaseAuth",
167
167
  "allowNo": true,
@@ -226,18 +226,18 @@
226
226
  "multiple": false,
227
227
  "type": "option"
228
228
  },
229
- "jwksAudiences": {
230
- "char": "a",
231
- "description": "JWKS audiences (comma separated).",
232
- "name": "jwksAudiences",
229
+ "jwksUri": {
230
+ "char": "w",
231
+ "description": "JWKS URI (must include https://).",
232
+ "name": "jwksUri",
233
233
  "hasDynamicHelp": false,
234
234
  "multiple": false,
235
235
  "type": "option"
236
236
  },
237
- "jwksUri": {
238
- "char": "w",
239
- "description": "JWKS URL (must include https://).",
240
- "name": "jwksUri",
237
+ "jwtAudiences": {
238
+ "char": "a",
239
+ "description": "JWT audiences (comma separated).",
240
+ "name": "jwtAudiences",
241
241
  "hasDynamicHelp": false,
242
242
  "multiple": false,
243
243
  "type": "option"
@@ -258,7 +258,7 @@
258
258
  "type": "boolean"
259
259
  },
260
260
  "useSupabaseAuth": {
261
- "char": "a",
261
+ "char": "b",
262
262
  "description": "Use Supabase auth.",
263
263
  "name": "useSupabaseAuth",
264
264
  "allowNo": true,
@@ -633,5 +633,5 @@
633
633
  ]
634
634
  }
635
635
  },
636
- "version": "0.5.0"
636
+ "version": "0.5.2"
637
637
  }
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "/dist",
17
17
  "/oclif.manifest.json"
18
18
  ],
19
- "version": "0.5.0",
19
+ "version": "0.5.2",
20
20
  "bugs": "https://github.com/powersync-ja/cli/issues",
21
21
  "types": "dist/index.d.ts",
22
22
  "exports": "./lib/index.js",