@saltcorn/cli 0.9.1 → 0.9.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 +45 -45
- package/npm-shrinkwrap.json +162 -162
- package/oclif.manifest.json +1 -1
- package/package.json +6 -6
- package/src/commands/run-sql.js +29 -23
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g @saltcorn/cli
|
|
|
20
20
|
$ saltcorn COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ saltcorn (-v|--version|version)
|
|
23
|
-
@saltcorn/cli/0.9.
|
|
23
|
+
@saltcorn/cli/0.9.2 linux-x64 node-v18.7.0
|
|
24
24
|
$ saltcorn --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ saltcorn COMMAND
|
|
@@ -89,7 +89,7 @@ OPTIONS
|
|
|
89
89
|
-f, --force force command execution
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
92
|
+
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/add-schema.js)_
|
|
93
93
|
|
|
94
94
|
## `saltcorn backup`
|
|
95
95
|
|
|
@@ -106,7 +106,7 @@ OPTIONS
|
|
|
106
106
|
-z, --zip Backup public in saltcorn zip format
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
-
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
109
|
+
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/backup.js)_
|
|
110
110
|
|
|
111
111
|
## `saltcorn build-app`
|
|
112
112
|
|
|
@@ -154,7 +154,7 @@ OPTIONS
|
|
|
154
154
|
tenant
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
-
_See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
157
|
+
_See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/build-app.js)_
|
|
158
158
|
|
|
159
159
|
## `saltcorn build-cordova-builder`
|
|
160
160
|
|
|
@@ -168,7 +168,7 @@ OPTIONS
|
|
|
168
168
|
--buildClean run a clean build with --no-cache
|
|
169
169
|
```
|
|
170
170
|
|
|
171
|
-
_See code: [src/commands/build-cordova-builder.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
171
|
+
_See code: [src/commands/build-cordova-builder.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/build-cordova-builder.js)_
|
|
172
172
|
|
|
173
173
|
## `saltcorn configuration-check`
|
|
174
174
|
|
|
@@ -182,7 +182,7 @@ OPTIONS
|
|
|
182
182
|
-t, --tenant=tenant tenant
|
|
183
183
|
```
|
|
184
184
|
|
|
185
|
-
_See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
185
|
+
_See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/configuration-check.js)_
|
|
186
186
|
|
|
187
187
|
## `saltcorn configuration-check-backups FILES`
|
|
188
188
|
|
|
@@ -199,7 +199,7 @@ OPTIONS
|
|
|
199
199
|
-d, --destructive destructive
|
|
200
200
|
```
|
|
201
201
|
|
|
202
|
-
_See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
202
|
+
_See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/configuration-check-backups.js)_
|
|
203
203
|
|
|
204
204
|
## `saltcorn create-tenant TENANT`
|
|
205
205
|
|
|
@@ -218,7 +218,7 @@ OPTIONS
|
|
|
218
218
|
--url=url Url of tenant
|
|
219
219
|
```
|
|
220
220
|
|
|
221
|
-
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
221
|
+
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/create-tenant.js)_
|
|
222
222
|
|
|
223
223
|
## `saltcorn create-user`
|
|
224
224
|
|
|
@@ -236,7 +236,7 @@ OPTIONS
|
|
|
236
236
|
-t, --tenant=tenant tenant
|
|
237
237
|
```
|
|
238
238
|
|
|
239
|
-
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
239
|
+
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/create-user.js)_
|
|
240
240
|
|
|
241
241
|
## `saltcorn delete-tenants`
|
|
242
242
|
|
|
@@ -247,7 +247,7 @@ USAGE
|
|
|
247
247
|
$ saltcorn delete-tenants
|
|
248
248
|
```
|
|
249
249
|
|
|
250
|
-
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
250
|
+
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/delete-tenants.js)_
|
|
251
251
|
|
|
252
252
|
## `saltcorn delete-user USER_EMAIL`
|
|
253
253
|
|
|
@@ -268,7 +268,7 @@ DESCRIPTION
|
|
|
268
268
|
Command deletes the user specified by USER_EMAIL.
|
|
269
269
|
```
|
|
270
270
|
|
|
271
|
-
_See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
271
|
+
_See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/delete-user.js)_
|
|
272
272
|
|
|
273
273
|
## `saltcorn dev:localize-plugin PLUGIN [PATH]`
|
|
274
274
|
|
|
@@ -287,7 +287,7 @@ OPTIONS
|
|
|
287
287
|
-u, --unlocalize Unlocalize plugin (local to npm)
|
|
288
288
|
```
|
|
289
289
|
|
|
290
|
-
_See code: [src/commands/dev/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
290
|
+
_See code: [src/commands/dev/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/dev/localize-plugin.js)_
|
|
291
291
|
|
|
292
292
|
## `saltcorn make-migration`
|
|
293
293
|
|
|
@@ -303,7 +303,7 @@ DESCRIPTION
|
|
|
303
303
|
unless you are a developer.
|
|
304
304
|
```
|
|
305
305
|
|
|
306
|
-
_See code: [src/commands/dev/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
306
|
+
_See code: [src/commands/dev/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/dev/make-migration.js)_
|
|
307
307
|
|
|
308
308
|
## `saltcorn saltcorn dev:plugin-test -d [PATH_TO_LOCAL_PLUGIN]/statistics -f test-backup.zip`
|
|
309
309
|
|
|
@@ -324,7 +324,7 @@ OPTIONS
|
|
|
324
324
|
--database=database Run on specified database. Default is 'saltcorn_test''
|
|
325
325
|
```
|
|
326
326
|
|
|
327
|
-
_See code: [src/commands/dev/plugin-test.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
327
|
+
_See code: [src/commands/dev/plugin-test.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/dev/plugin-test.js)_
|
|
328
328
|
|
|
329
329
|
## `saltcorn dev:post-release [TASK]`
|
|
330
330
|
|
|
@@ -338,7 +338,7 @@ ARGUMENTS
|
|
|
338
338
|
TASK (docker|vagrant|all|none) What to do
|
|
339
339
|
```
|
|
340
340
|
|
|
341
|
-
_See code: [src/commands/dev/post-release.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
341
|
+
_See code: [src/commands/dev/post-release.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/dev/post-release.js)_
|
|
342
342
|
|
|
343
343
|
## `saltcorn dev:release VERSION`
|
|
344
344
|
|
|
@@ -352,7 +352,7 @@ ARGUMENTS
|
|
|
352
352
|
VERSION New version number
|
|
353
353
|
```
|
|
354
354
|
|
|
355
|
-
_See code: [src/commands/dev/release.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
355
|
+
_See code: [src/commands/dev/release.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/dev/release.js)_
|
|
356
356
|
|
|
357
357
|
## `saltcorn dev:test-plugin PATH`
|
|
358
358
|
|
|
@@ -370,7 +370,7 @@ DESCRIPTION
|
|
|
370
370
|
Extra documentation goes here
|
|
371
371
|
```
|
|
372
372
|
|
|
373
|
-
_See code: [src/commands/dev/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
373
|
+
_See code: [src/commands/dev/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/dev/test-plugin.js)_
|
|
374
374
|
|
|
375
375
|
## `saltcorn fixtures`
|
|
376
376
|
|
|
@@ -389,7 +389,7 @@ DESCRIPTION
|
|
|
389
389
|
This manual step it is never required for users and rarely required for developers
|
|
390
390
|
```
|
|
391
391
|
|
|
392
|
-
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
392
|
+
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/fixtures.js)_
|
|
393
393
|
|
|
394
394
|
## `saltcorn get-cfg [KEY]`
|
|
395
395
|
|
|
@@ -407,7 +407,7 @@ OPTIONS
|
|
|
407
407
|
-t, --tenant=tenant tenant
|
|
408
408
|
```
|
|
409
409
|
|
|
410
|
-
_See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
410
|
+
_See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/get-cfg.js)_
|
|
411
411
|
|
|
412
412
|
## `saltcorn help [COMMAND]`
|
|
413
413
|
|
|
@@ -445,7 +445,7 @@ ALIASES
|
|
|
445
445
|
$ saltcorn paths
|
|
446
446
|
```
|
|
447
447
|
|
|
448
|
-
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
448
|
+
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/info.js)_
|
|
449
449
|
|
|
450
450
|
## `saltcorn inspect TYPE [NAME]`
|
|
451
451
|
|
|
@@ -463,7 +463,7 @@ OPTIONS
|
|
|
463
463
|
-t, --tenant=tenant tenant
|
|
464
464
|
```
|
|
465
465
|
|
|
466
|
-
_See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
466
|
+
_See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/inspect.js)_
|
|
467
467
|
|
|
468
468
|
## `saltcorn install-pack`
|
|
469
469
|
|
|
@@ -479,7 +479,7 @@ OPTIONS
|
|
|
479
479
|
-t, --tenant=tenant tenant
|
|
480
480
|
```
|
|
481
481
|
|
|
482
|
-
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
482
|
+
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/install-pack.js)_
|
|
483
483
|
|
|
484
484
|
## `saltcorn install-plugin`
|
|
485
485
|
|
|
@@ -495,7 +495,7 @@ OPTIONS
|
|
|
495
495
|
-t, --tenant=tenant tenant
|
|
496
496
|
```
|
|
497
497
|
|
|
498
|
-
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
498
|
+
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/install-plugin.js)_
|
|
499
499
|
|
|
500
500
|
## `saltcorn list-tenants`
|
|
501
501
|
|
|
@@ -511,7 +511,7 @@ OPTIONS
|
|
|
511
511
|
-v, --verbose verbose output
|
|
512
512
|
```
|
|
513
513
|
|
|
514
|
-
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
514
|
+
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/list-tenants.js)_
|
|
515
515
|
|
|
516
516
|
## `saltcorn list-triggers`
|
|
517
517
|
|
|
@@ -527,7 +527,7 @@ OPTIONS
|
|
|
527
527
|
-v, --verbose verbose output
|
|
528
528
|
```
|
|
529
529
|
|
|
530
|
-
_See code: [src/commands/list-triggers.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
530
|
+
_See code: [src/commands/list-triggers.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/list-triggers.js)_
|
|
531
531
|
|
|
532
532
|
## `saltcorn list-users`
|
|
533
533
|
|
|
@@ -542,7 +542,7 @@ OPTIONS
|
|
|
542
542
|
-v, --verbose verbose output
|
|
543
543
|
```
|
|
544
544
|
|
|
545
|
-
_See code: [src/commands/list-users.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
545
|
+
_See code: [src/commands/list-users.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/list-users.js)_
|
|
546
546
|
|
|
547
547
|
## `saltcorn saltcorn migrate`
|
|
548
548
|
|
|
@@ -564,7 +564,7 @@ DESCRIPTION
|
|
|
564
564
|
servers and need to control when the migrations are run.
|
|
565
565
|
```
|
|
566
566
|
|
|
567
|
-
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
567
|
+
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/migrate.js)_
|
|
568
568
|
|
|
569
569
|
## `saltcorn modify-user USER_EMAIL`
|
|
570
570
|
|
|
@@ -593,7 +593,7 @@ DESCRIPTION
|
|
|
593
593
|
NOTE that -a and -r role (--role=role) can give conflict.
|
|
594
594
|
```
|
|
595
595
|
|
|
596
|
-
_See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
596
|
+
_See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/modify-user.js)_
|
|
597
597
|
|
|
598
598
|
## `saltcorn plugins`
|
|
599
599
|
|
|
@@ -620,7 +620,7 @@ EXAMPLES
|
|
|
620
620
|
plugins -u -f - force plugin update
|
|
621
621
|
```
|
|
622
622
|
|
|
623
|
-
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
623
|
+
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/plugins.js)_
|
|
624
624
|
|
|
625
625
|
## `saltcorn reset-schema`
|
|
626
626
|
|
|
@@ -639,7 +639,7 @@ DESCRIPTION
|
|
|
639
639
|
This will delete all existing information
|
|
640
640
|
```
|
|
641
641
|
|
|
642
|
-
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
642
|
+
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/reset-schema.js)_
|
|
643
643
|
|
|
644
644
|
## `saltcorn restore FILE`
|
|
645
645
|
|
|
@@ -656,7 +656,7 @@ OPTIONS
|
|
|
656
656
|
-t, --tenant=tenant tenant
|
|
657
657
|
```
|
|
658
658
|
|
|
659
|
-
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
659
|
+
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/restore.js)_
|
|
660
660
|
|
|
661
661
|
## `saltcorn rm-tenant`
|
|
662
662
|
|
|
@@ -675,7 +675,7 @@ DESCRIPTION
|
|
|
675
675
|
It recommended to make backup of tenant before perform this command.
|
|
676
676
|
```
|
|
677
677
|
|
|
678
|
-
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
678
|
+
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/rm-tenant.js)_
|
|
679
679
|
|
|
680
680
|
## `saltcorn run-benchmark [BASEURL]`
|
|
681
681
|
|
|
@@ -694,7 +694,7 @@ OPTIONS
|
|
|
694
694
|
-t, --token=token API Token for reporting results
|
|
695
695
|
```
|
|
696
696
|
|
|
697
|
-
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
697
|
+
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/run-benchmark.js)_
|
|
698
698
|
|
|
699
699
|
## `saltcorn run-js`
|
|
700
700
|
|
|
@@ -710,7 +710,7 @@ OPTIONS
|
|
|
710
710
|
-t, --tenant=tenant tenant name
|
|
711
711
|
```
|
|
712
712
|
|
|
713
|
-
_See code: [src/commands/run-js.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
713
|
+
_See code: [src/commands/run-js.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/run-js.js)_
|
|
714
714
|
|
|
715
715
|
## `saltcorn run-sql`
|
|
716
716
|
|
|
@@ -726,7 +726,7 @@ OPTIONS
|
|
|
726
726
|
-t, --tenant=tenant tenant name
|
|
727
727
|
```
|
|
728
728
|
|
|
729
|
-
_See code: [src/commands/run-sql.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
729
|
+
_See code: [src/commands/run-sql.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/run-sql.js)_
|
|
730
730
|
|
|
731
731
|
## `saltcorn run-tests [PACKAGE]`
|
|
732
732
|
|
|
@@ -750,7 +750,7 @@ OPTIONS
|
|
|
750
750
|
--watchAll Watch files for changes and rerun all tests.
|
|
751
751
|
```
|
|
752
752
|
|
|
753
|
-
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
753
|
+
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/run-tests.js)_
|
|
754
754
|
|
|
755
755
|
## `saltcorn run-trigger TRIGGER`
|
|
756
756
|
|
|
@@ -767,7 +767,7 @@ OPTIONS
|
|
|
767
767
|
-t, --tenant=tenant tenant
|
|
768
768
|
```
|
|
769
769
|
|
|
770
|
-
_See code: [src/commands/run-trigger.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
770
|
+
_See code: [src/commands/run-trigger.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/run-trigger.js)_
|
|
771
771
|
|
|
772
772
|
## `saltcorn scheduler`
|
|
773
773
|
|
|
@@ -781,7 +781,7 @@ OPTIONS
|
|
|
781
781
|
-v, --verbose Verbose
|
|
782
782
|
```
|
|
783
783
|
|
|
784
|
-
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
784
|
+
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/scheduler.js)_
|
|
785
785
|
|
|
786
786
|
## `saltcorn serve`
|
|
787
787
|
|
|
@@ -802,7 +802,7 @@ OPTIONS
|
|
|
802
802
|
--subdomain_offset=subdomain_offset Number of parts to remove to access subdomain in 'multi_tenant' mode
|
|
803
803
|
```
|
|
804
804
|
|
|
805
|
-
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
805
|
+
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/serve.js)_
|
|
806
806
|
|
|
807
807
|
## `saltcorn set-cfg [KEY] [VALUE]`
|
|
808
808
|
|
|
@@ -823,7 +823,7 @@ OPTIONS
|
|
|
823
823
|
-t, --tenant=tenant tenant
|
|
824
824
|
```
|
|
825
825
|
|
|
826
|
-
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
826
|
+
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/set-cfg.js)_
|
|
827
827
|
|
|
828
828
|
## `saltcorn setup`
|
|
829
829
|
|
|
@@ -842,7 +842,7 @@ DESCRIPTION
|
|
|
842
842
|
configuration file
|
|
843
843
|
```
|
|
844
844
|
|
|
845
|
-
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
845
|
+
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/setup.js)_
|
|
846
846
|
|
|
847
847
|
## `saltcorn setup-benchmark`
|
|
848
848
|
|
|
@@ -856,7 +856,7 @@ OPTIONS
|
|
|
856
856
|
-t, --tenant=tenant tenant
|
|
857
857
|
```
|
|
858
858
|
|
|
859
|
-
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
859
|
+
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/setup-benchmark.js)_
|
|
860
860
|
|
|
861
861
|
## `saltcorn sync-upload-data`
|
|
862
862
|
|
|
@@ -873,7 +873,7 @@ OPTIONS
|
|
|
873
873
|
--userEmail=userEmail email of the user running the sync
|
|
874
874
|
```
|
|
875
875
|
|
|
876
|
-
_See code: [src/commands/sync-upload-data.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
876
|
+
_See code: [src/commands/sync-upload-data.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/sync-upload-data.js)_
|
|
877
877
|
|
|
878
878
|
## `saltcorn take-snapshot`
|
|
879
879
|
|
|
@@ -888,7 +888,7 @@ OPTIONS
|
|
|
888
888
|
-t, --tenant=tenant tenant
|
|
889
889
|
```
|
|
890
890
|
|
|
891
|
-
_See code: [src/commands/take-snapshot.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
891
|
+
_See code: [src/commands/take-snapshot.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/take-snapshot.js)_
|
|
892
892
|
|
|
893
893
|
## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
|
|
894
894
|
|
|
@@ -905,5 +905,5 @@ ARGUMENTS
|
|
|
905
905
|
TENANT tenant name
|
|
906
906
|
```
|
|
907
907
|
|
|
908
|
-
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.9.
|
|
908
|
+
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.9.2/src/commands/transform-field.js)_
|
|
909
909
|
<!-- commandsstop -->
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@saltcorn/cli",
|
|
9
|
-
"version": "0.9.
|
|
9
|
+
"version": "0.9.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@oclif/command": "^1.8.16",
|
|
13
13
|
"@oclif/config": "^1.18.3",
|
|
14
14
|
"@oclif/plugin-help": "^3.3.1",
|
|
15
15
|
"@oclif/plugin-plugins": "^2.1.0",
|
|
16
|
-
"@saltcorn/admin-models": "0.9.
|
|
17
|
-
"@saltcorn/data": "0.9.
|
|
18
|
-
"@saltcorn/mobile-app": "0.9.
|
|
19
|
-
"@saltcorn/mobile-builder": "0.9.
|
|
20
|
-
"@saltcorn/server": "0.9.
|
|
16
|
+
"@saltcorn/admin-models": "0.9.2",
|
|
17
|
+
"@saltcorn/data": "0.9.2",
|
|
18
|
+
"@saltcorn/mobile-app": "0.9.2",
|
|
19
|
+
"@saltcorn/mobile-builder": "0.9.2",
|
|
20
|
+
"@saltcorn/server": "0.9.2",
|
|
21
21
|
"cli-ux": "^5.6.7",
|
|
22
22
|
"contractis": "^0.1.0",
|
|
23
23
|
"dateformat": "^3.0.3",
|
|
@@ -3427,14 +3427,14 @@
|
|
|
3427
3427
|
}
|
|
3428
3428
|
},
|
|
3429
3429
|
"node_modules/@saltcorn/admin-models": {
|
|
3430
|
-
"version": "0.9.
|
|
3431
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/admin-models/-/admin-models-0.9.
|
|
3432
|
-
"integrity": "sha512-
|
|
3433
|
-
"dependencies": {
|
|
3434
|
-
"@saltcorn/data": "0.9.
|
|
3435
|
-
"@saltcorn/db-common": "0.9.
|
|
3436
|
-
"@saltcorn/markup": "0.9.
|
|
3437
|
-
"@saltcorn/types": "0.9.
|
|
3430
|
+
"version": "0.9.2",
|
|
3431
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/admin-models/-/admin-models-0.9.2.tgz",
|
|
3432
|
+
"integrity": "sha512-oxQPk8aovRYrka4fOPCMZw8lDsBt+eliJSdLGb0Wgnosp//48p60vrUChazKmaA3dHu5Vwmo6t8Ya7TFw6HafA==",
|
|
3433
|
+
"dependencies": {
|
|
3434
|
+
"@saltcorn/data": "0.9.2",
|
|
3435
|
+
"@saltcorn/db-common": "0.9.2",
|
|
3436
|
+
"@saltcorn/markup": "0.9.2",
|
|
3437
|
+
"@saltcorn/types": "0.9.2",
|
|
3438
3438
|
"@types/lodash": "^4.14.182",
|
|
3439
3439
|
"adm-zip": "0.5.5",
|
|
3440
3440
|
"chaos-guinea-pig": "^0.1.4",
|
|
@@ -3447,30 +3447,30 @@
|
|
|
3447
3447
|
}
|
|
3448
3448
|
},
|
|
3449
3449
|
"node_modules/@saltcorn/base-plugin": {
|
|
3450
|
-
"version": "0.9.
|
|
3451
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.9.
|
|
3452
|
-
"integrity": "sha512-
|
|
3450
|
+
"version": "0.9.2",
|
|
3451
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.9.2.tgz",
|
|
3452
|
+
"integrity": "sha512-kcCwuuuK1AmvqaQ2db8yiq9aNhYilW2UJJ5N6f3gGXWtaTLkSrEaDWfBwXAS1ztKHTxB4nEF2LxQKuFDqfcWdA==",
|
|
3453
3453
|
"dependencies": {
|
|
3454
|
-
"@saltcorn/data": "0.9.
|
|
3454
|
+
"@saltcorn/data": "0.9.2"
|
|
3455
3455
|
}
|
|
3456
3456
|
},
|
|
3457
3457
|
"node_modules/@saltcorn/builder": {
|
|
3458
|
-
"version": "0.9.
|
|
3459
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.9.
|
|
3460
|
-
"integrity": "sha512-
|
|
3458
|
+
"version": "0.9.2",
|
|
3459
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.9.2.tgz",
|
|
3460
|
+
"integrity": "sha512-hH9+OPNuWXIirqgt171gdeB4UYrwpZnH1cpTPX9h0J+Hi7sZA9oWOj2g4qOzBv9kRgWzACMNZeFniKg+CLKjrw==",
|
|
3461
3461
|
"dependencies": {
|
|
3462
3462
|
"styled-components": "4.4.1"
|
|
3463
3463
|
}
|
|
3464
3464
|
},
|
|
3465
3465
|
"node_modules/@saltcorn/data": {
|
|
3466
|
-
"version": "0.9.
|
|
3467
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.9.
|
|
3468
|
-
"integrity": "sha512-
|
|
3469
|
-
"dependencies": {
|
|
3470
|
-
"@saltcorn/db-common": "0.9.
|
|
3471
|
-
"@saltcorn/markup": "0.9.
|
|
3472
|
-
"@saltcorn/sqlite-mobile": "0.9.
|
|
3473
|
-
"@saltcorn/types": "0.9.
|
|
3466
|
+
"version": "0.9.2",
|
|
3467
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.9.2.tgz",
|
|
3468
|
+
"integrity": "sha512-VC+iedeQg/1jU48BVM0cAoX9F7PSE2fZifD/R9Ng4guB1m/D+POihwlDqNUpXf8FItGrVL3RLQ+1+4Eix4xT5Q==",
|
|
3469
|
+
"dependencies": {
|
|
3470
|
+
"@saltcorn/db-common": "0.9.2",
|
|
3471
|
+
"@saltcorn/markup": "0.9.2",
|
|
3472
|
+
"@saltcorn/sqlite-mobile": "0.9.2",
|
|
3473
|
+
"@saltcorn/types": "0.9.2",
|
|
3474
3474
|
"acorn": "^8.0.3",
|
|
3475
3475
|
"assert": "^2.0.0",
|
|
3476
3476
|
"astring": "^1.4.3",
|
|
@@ -3513,27 +3513,27 @@
|
|
|
3513
3513
|
"vm-browserify": "^1.1.2"
|
|
3514
3514
|
},
|
|
3515
3515
|
"optionalDependencies": {
|
|
3516
|
-
"@saltcorn/postgres": "0.9.
|
|
3517
|
-
"@saltcorn/sqlite": "0.9.
|
|
3516
|
+
"@saltcorn/postgres": "0.9.2",
|
|
3517
|
+
"@saltcorn/sqlite": "0.9.2"
|
|
3518
3518
|
}
|
|
3519
3519
|
},
|
|
3520
3520
|
"node_modules/@saltcorn/db-common": {
|
|
3521
|
-
"version": "0.9.
|
|
3522
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/db-common/-/db-common-0.9.
|
|
3523
|
-
"integrity": "sha512
|
|
3521
|
+
"version": "0.9.2",
|
|
3522
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/db-common/-/db-common-0.9.2.tgz",
|
|
3523
|
+
"integrity": "sha512-+WJntKGpuTJvpoPGV9L5lyJfQ1Yq9Zrf9tcbvCbfoFPub8weqe8IxsAmSpfQBDniFKA0azW6NVBs65gNOUCl5A=="
|
|
3524
3524
|
},
|
|
3525
3525
|
"node_modules/@saltcorn/filemanager": {
|
|
3526
|
-
"version": "0.9.
|
|
3527
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/filemanager/-/filemanager-0.9.
|
|
3528
|
-
"integrity": "sha512-
|
|
3526
|
+
"version": "0.9.2",
|
|
3527
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/filemanager/-/filemanager-0.9.2.tgz",
|
|
3528
|
+
"integrity": "sha512-Ok4BKkIauEJXVPbYR1OTEgytw8AP2FeNbFTKl+n240b/QA2kffzSWlz+et1sIxZt/age7DY7SH9YM0gV2Gc0oA==",
|
|
3529
3529
|
"dependencies": {
|
|
3530
3530
|
"sirv-cli": "^2.0.0"
|
|
3531
3531
|
}
|
|
3532
3532
|
},
|
|
3533
3533
|
"node_modules/@saltcorn/markup": {
|
|
3534
|
-
"version": "0.9.
|
|
3535
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.9.
|
|
3536
|
-
"integrity": "sha512
|
|
3534
|
+
"version": "0.9.2",
|
|
3535
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.9.2.tgz",
|
|
3536
|
+
"integrity": "sha512-/x8xjorvWPxeF1ToMs/cG6k+E8jGSgQkcHC7e6GF15I0r8qv8Q8H1aLTjA2UFkP0BbNJLRNqW/R3X64DdkHCRw==",
|
|
3537
3537
|
"dependencies": {
|
|
3538
3538
|
"escape-html": "^1.0.3",
|
|
3539
3539
|
"html-tags": "3.1.0",
|
|
@@ -3541,27 +3541,27 @@
|
|
|
3541
3541
|
}
|
|
3542
3542
|
},
|
|
3543
3543
|
"node_modules/@saltcorn/mobile-app": {
|
|
3544
|
-
"version": "0.9.
|
|
3545
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/mobile-app/-/mobile-app-0.9.
|
|
3546
|
-
"integrity": "sha512-
|
|
3544
|
+
"version": "0.9.2",
|
|
3545
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/mobile-app/-/mobile-app-0.9.2.tgz",
|
|
3546
|
+
"integrity": "sha512-rEotJ7NRRertLoWJxcm39zefB+NN75aj9AKbyqMSYeHdg3dGU1s/F9RqYerA1ko2bCS9h/f8x1+bExszvlm9Mg==",
|
|
3547
3547
|
"dependencies": {
|
|
3548
3548
|
"cordova": "^11.0.0",
|
|
3549
3549
|
"cordova-sqlite-ext": "^6.0.0"
|
|
3550
3550
|
}
|
|
3551
3551
|
},
|
|
3552
3552
|
"node_modules/@saltcorn/mobile-builder": {
|
|
3553
|
-
"version": "0.9.
|
|
3554
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/mobile-builder/-/mobile-builder-0.9.
|
|
3555
|
-
"integrity": "sha512-
|
|
3553
|
+
"version": "0.9.2",
|
|
3554
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/mobile-builder/-/mobile-builder-0.9.2.tgz",
|
|
3555
|
+
"integrity": "sha512-z2ddDupb3WHe7hyQUAuoZO1RKsHIdfRWvR3YEt7qzWarSF9y0uJtyP1QfRlzLBBZCIDj00/eJrw1CngAacr7aQ==",
|
|
3556
3556
|
"hasInstallScript": true,
|
|
3557
3557
|
"dependencies": {
|
|
3558
|
-
"@saltcorn/base-plugin": "0.9.
|
|
3559
|
-
"@saltcorn/data": "0.9.
|
|
3560
|
-
"@saltcorn/db-common": "0.9.
|
|
3561
|
-
"@saltcorn/markup": "0.9.
|
|
3562
|
-
"@saltcorn/mobile-app": "0.9.
|
|
3563
|
-
"@saltcorn/sbadmin2": "0.9.
|
|
3564
|
-
"@saltcorn/server": "0.9.
|
|
3558
|
+
"@saltcorn/base-plugin": "0.9.2",
|
|
3559
|
+
"@saltcorn/data": "0.9.2",
|
|
3560
|
+
"@saltcorn/db-common": "0.9.2",
|
|
3561
|
+
"@saltcorn/markup": "0.9.2",
|
|
3562
|
+
"@saltcorn/mobile-app": "0.9.2",
|
|
3563
|
+
"@saltcorn/sbadmin2": "0.9.2",
|
|
3564
|
+
"@saltcorn/server": "0.9.2",
|
|
3565
3565
|
"fs-extra": "^10.0.1",
|
|
3566
3566
|
"live-plugin-manager": "^0.17.1",
|
|
3567
3567
|
"webpack": "5.68.0",
|
|
@@ -3603,40 +3603,40 @@
|
|
|
3603
3603
|
}
|
|
3604
3604
|
},
|
|
3605
3605
|
"node_modules/@saltcorn/postgres": {
|
|
3606
|
-
"version": "0.9.
|
|
3607
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/postgres/-/postgres-0.9.
|
|
3608
|
-
"integrity": "sha512-
|
|
3606
|
+
"version": "0.9.2",
|
|
3607
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/postgres/-/postgres-0.9.2.tgz",
|
|
3608
|
+
"integrity": "sha512-iyIZVX4ZQNk/Kc6awUHWOdw4+to3Sh1tRjKxumGdnd1+9ZxbXzNC1upCq/C/FwVoxahOtwWAQLR2CprOZSDW2g==",
|
|
3609
3609
|
"optional": true,
|
|
3610
3610
|
"dependencies": {
|
|
3611
|
-
"@saltcorn/db-common": "0.9.
|
|
3611
|
+
"@saltcorn/db-common": "0.9.2",
|
|
3612
3612
|
"pg": "^8.2.1",
|
|
3613
3613
|
"pg-copy-streams": "^5.1.1"
|
|
3614
3614
|
}
|
|
3615
3615
|
},
|
|
3616
3616
|
"node_modules/@saltcorn/sbadmin2": {
|
|
3617
|
-
"version": "0.9.
|
|
3618
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.9.
|
|
3619
|
-
"integrity": "sha512-
|
|
3617
|
+
"version": "0.9.2",
|
|
3618
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.9.2.tgz",
|
|
3619
|
+
"integrity": "sha512-HKh9MN9L37c1r4DUUcvmxYci+KbvBzDPfaTh+Jmg8EN3ioPZqCtsXkKVSodZLr3O+mqMQ0ATfRark3fepbrDPA==",
|
|
3620
3620
|
"dependencies": {
|
|
3621
|
-
"@saltcorn/data": "0.9.
|
|
3622
|
-
"@saltcorn/markup": "0.9.
|
|
3621
|
+
"@saltcorn/data": "0.9.2",
|
|
3622
|
+
"@saltcorn/markup": "0.9.2",
|
|
3623
3623
|
"nunito-fontface": "0.7.3",
|
|
3624
3624
|
"startbootstrap-sb-admin-2-bs5": "^4.1.5-beta.8"
|
|
3625
3625
|
}
|
|
3626
3626
|
},
|
|
3627
3627
|
"node_modules/@saltcorn/server": {
|
|
3628
|
-
"version": "0.9.
|
|
3629
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.9.
|
|
3630
|
-
"integrity": "sha512-
|
|
3628
|
+
"version": "0.9.2",
|
|
3629
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.9.2.tgz",
|
|
3630
|
+
"integrity": "sha512-dG4qVAOPHjLgsKtl9VaItjLHk3/lo0SssO9O2NhGbSxQRdOR70sbg5gY86Nth4wgPLKcwjWOXADRgF/Iu/HHQw==",
|
|
3631
3631
|
"dependencies": {
|
|
3632
3632
|
"@aws-sdk/client-s3": "^3.451.0",
|
|
3633
|
-
"@saltcorn/admin-models": "0.9.
|
|
3634
|
-
"@saltcorn/base-plugin": "0.9.
|
|
3635
|
-
"@saltcorn/builder": "0.9.
|
|
3636
|
-
"@saltcorn/data": "0.9.
|
|
3637
|
-
"@saltcorn/filemanager": "0.9.
|
|
3638
|
-
"@saltcorn/markup": "0.9.
|
|
3639
|
-
"@saltcorn/sbadmin2": "0.9.
|
|
3633
|
+
"@saltcorn/admin-models": "0.9.2",
|
|
3634
|
+
"@saltcorn/base-plugin": "0.9.2",
|
|
3635
|
+
"@saltcorn/builder": "0.9.2",
|
|
3636
|
+
"@saltcorn/data": "0.9.2",
|
|
3637
|
+
"@saltcorn/filemanager": "0.9.2",
|
|
3638
|
+
"@saltcorn/markup": "0.9.2",
|
|
3639
|
+
"@saltcorn/sbadmin2": "0.9.2",
|
|
3640
3640
|
"@socket.io/cluster-adapter": "^0.2.1",
|
|
3641
3641
|
"@socket.io/sticky": "^1.0.1",
|
|
3642
3642
|
"adm-zip": "0.5.10",
|
|
@@ -3699,29 +3699,29 @@
|
|
|
3699
3699
|
}
|
|
3700
3700
|
},
|
|
3701
3701
|
"node_modules/@saltcorn/sqlite": {
|
|
3702
|
-
"version": "0.9.
|
|
3703
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite/-/sqlite-0.9.
|
|
3704
|
-
"integrity": "sha512-
|
|
3702
|
+
"version": "0.9.2",
|
|
3703
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite/-/sqlite-0.9.2.tgz",
|
|
3704
|
+
"integrity": "sha512-e+sQwu2kiyHMritHKcDYg4Wwk9IQGOlpyYy/QWDvJggQoE6bOR9LgRXUzY7bqapkIf/GubunS+XnmVS935dv/w==",
|
|
3705
3705
|
"optional": true,
|
|
3706
3706
|
"dependencies": {
|
|
3707
|
-
"@saltcorn/db-common": "0.9.
|
|
3707
|
+
"@saltcorn/db-common": "0.9.2"
|
|
3708
3708
|
},
|
|
3709
3709
|
"optionalDependencies": {
|
|
3710
3710
|
"sqlite3": "^5.0.8"
|
|
3711
3711
|
}
|
|
3712
3712
|
},
|
|
3713
3713
|
"node_modules/@saltcorn/sqlite-mobile": {
|
|
3714
|
-
"version": "0.9.
|
|
3715
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite-mobile/-/sqlite-mobile-0.9.
|
|
3716
|
-
"integrity": "sha512-
|
|
3714
|
+
"version": "0.9.2",
|
|
3715
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite-mobile/-/sqlite-mobile-0.9.2.tgz",
|
|
3716
|
+
"integrity": "sha512-8tVXcwyjENFJJAqmDcPaLgmBiDSuWd1rv+jl6ypbdzdzJwYFDv5KLQhALkc8vdP8O8VYO7bmkpqBkiNQFPbiAg==",
|
|
3717
3717
|
"dependencies": {
|
|
3718
|
-
"@saltcorn/db-common": "0.9.
|
|
3718
|
+
"@saltcorn/db-common": "0.9.2"
|
|
3719
3719
|
}
|
|
3720
3720
|
},
|
|
3721
3721
|
"node_modules/@saltcorn/types": {
|
|
3722
|
-
"version": "0.9.
|
|
3723
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/types/-/types-0.9.
|
|
3724
|
-
"integrity": "sha512-
|
|
3722
|
+
"version": "0.9.2",
|
|
3723
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/types/-/types-0.9.2.tgz",
|
|
3724
|
+
"integrity": "sha512-DyDKxg5f+mxNaUl/CIq4cis4HyeIpAXFnE3EFVETIYU0z/rXdg+NvIWUtS8sgtnijziyFyklT4WG1zXmqdHU0Q=="
|
|
3725
3725
|
},
|
|
3726
3726
|
"node_modules/@sindresorhus/is": {
|
|
3727
3727
|
"version": "0.14.0",
|
|
@@ -22274,14 +22274,14 @@
|
|
|
22274
22274
|
}
|
|
22275
22275
|
},
|
|
22276
22276
|
"@saltcorn/admin-models": {
|
|
22277
|
-
"version": "0.9.
|
|
22278
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/admin-models/-/admin-models-0.9.
|
|
22279
|
-
"integrity": "sha512-
|
|
22280
|
-
"requires": {
|
|
22281
|
-
"@saltcorn/data": "0.9.
|
|
22282
|
-
"@saltcorn/db-common": "0.9.
|
|
22283
|
-
"@saltcorn/markup": "0.9.
|
|
22284
|
-
"@saltcorn/types": "0.9.
|
|
22277
|
+
"version": "0.9.2",
|
|
22278
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/admin-models/-/admin-models-0.9.2.tgz",
|
|
22279
|
+
"integrity": "sha512-oxQPk8aovRYrka4fOPCMZw8lDsBt+eliJSdLGb0Wgnosp//48p60vrUChazKmaA3dHu5Vwmo6t8Ya7TFw6HafA==",
|
|
22280
|
+
"requires": {
|
|
22281
|
+
"@saltcorn/data": "0.9.2",
|
|
22282
|
+
"@saltcorn/db-common": "0.9.2",
|
|
22283
|
+
"@saltcorn/markup": "0.9.2",
|
|
22284
|
+
"@saltcorn/types": "0.9.2",
|
|
22285
22285
|
"@types/lodash": "^4.14.182",
|
|
22286
22286
|
"adm-zip": "0.5.5",
|
|
22287
22287
|
"chaos-guinea-pig": "^0.1.4",
|
|
@@ -22294,32 +22294,32 @@
|
|
|
22294
22294
|
}
|
|
22295
22295
|
},
|
|
22296
22296
|
"@saltcorn/base-plugin": {
|
|
22297
|
-
"version": "0.9.
|
|
22298
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.9.
|
|
22299
|
-
"integrity": "sha512-
|
|
22297
|
+
"version": "0.9.2",
|
|
22298
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.9.2.tgz",
|
|
22299
|
+
"integrity": "sha512-kcCwuuuK1AmvqaQ2db8yiq9aNhYilW2UJJ5N6f3gGXWtaTLkSrEaDWfBwXAS1ztKHTxB4nEF2LxQKuFDqfcWdA==",
|
|
22300
22300
|
"requires": {
|
|
22301
|
-
"@saltcorn/data": "0.9.
|
|
22301
|
+
"@saltcorn/data": "0.9.2"
|
|
22302
22302
|
}
|
|
22303
22303
|
},
|
|
22304
22304
|
"@saltcorn/builder": {
|
|
22305
|
-
"version": "0.9.
|
|
22306
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.9.
|
|
22307
|
-
"integrity": "sha512-
|
|
22305
|
+
"version": "0.9.2",
|
|
22306
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.9.2.tgz",
|
|
22307
|
+
"integrity": "sha512-hH9+OPNuWXIirqgt171gdeB4UYrwpZnH1cpTPX9h0J+Hi7sZA9oWOj2g4qOzBv9kRgWzACMNZeFniKg+CLKjrw==",
|
|
22308
22308
|
"requires": {
|
|
22309
22309
|
"styled-components": "4.4.1"
|
|
22310
22310
|
}
|
|
22311
22311
|
},
|
|
22312
22312
|
"@saltcorn/data": {
|
|
22313
|
-
"version": "0.9.
|
|
22314
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.9.
|
|
22315
|
-
"integrity": "sha512-
|
|
22316
|
-
"requires": {
|
|
22317
|
-
"@saltcorn/db-common": "0.9.
|
|
22318
|
-
"@saltcorn/markup": "0.9.
|
|
22319
|
-
"@saltcorn/postgres": "0.9.
|
|
22320
|
-
"@saltcorn/sqlite": "0.9.
|
|
22321
|
-
"@saltcorn/sqlite-mobile": "0.9.
|
|
22322
|
-
"@saltcorn/types": "0.9.
|
|
22313
|
+
"version": "0.9.2",
|
|
22314
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.9.2.tgz",
|
|
22315
|
+
"integrity": "sha512-VC+iedeQg/1jU48BVM0cAoX9F7PSE2fZifD/R9Ng4guB1m/D+POihwlDqNUpXf8FItGrVL3RLQ+1+4Eix4xT5Q==",
|
|
22316
|
+
"requires": {
|
|
22317
|
+
"@saltcorn/db-common": "0.9.2",
|
|
22318
|
+
"@saltcorn/markup": "0.9.2",
|
|
22319
|
+
"@saltcorn/postgres": "0.9.2",
|
|
22320
|
+
"@saltcorn/sqlite": "0.9.2",
|
|
22321
|
+
"@saltcorn/sqlite-mobile": "0.9.2",
|
|
22322
|
+
"@saltcorn/types": "0.9.2",
|
|
22323
22323
|
"acorn": "^8.0.3",
|
|
22324
22324
|
"assert": "^2.0.0",
|
|
22325
22325
|
"astring": "^1.4.3",
|
|
@@ -22363,22 +22363,22 @@
|
|
|
22363
22363
|
}
|
|
22364
22364
|
},
|
|
22365
22365
|
"@saltcorn/db-common": {
|
|
22366
|
-
"version": "0.9.
|
|
22367
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/db-common/-/db-common-0.9.
|
|
22368
|
-
"integrity": "sha512
|
|
22366
|
+
"version": "0.9.2",
|
|
22367
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/db-common/-/db-common-0.9.2.tgz",
|
|
22368
|
+
"integrity": "sha512-+WJntKGpuTJvpoPGV9L5lyJfQ1Yq9Zrf9tcbvCbfoFPub8weqe8IxsAmSpfQBDniFKA0azW6NVBs65gNOUCl5A=="
|
|
22369
22369
|
},
|
|
22370
22370
|
"@saltcorn/filemanager": {
|
|
22371
|
-
"version": "0.9.
|
|
22372
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/filemanager/-/filemanager-0.9.
|
|
22373
|
-
"integrity": "sha512-
|
|
22371
|
+
"version": "0.9.2",
|
|
22372
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/filemanager/-/filemanager-0.9.2.tgz",
|
|
22373
|
+
"integrity": "sha512-Ok4BKkIauEJXVPbYR1OTEgytw8AP2FeNbFTKl+n240b/QA2kffzSWlz+et1sIxZt/age7DY7SH9YM0gV2Gc0oA==",
|
|
22374
22374
|
"requires": {
|
|
22375
22375
|
"sirv-cli": "^2.0.0"
|
|
22376
22376
|
}
|
|
22377
22377
|
},
|
|
22378
22378
|
"@saltcorn/markup": {
|
|
22379
|
-
"version": "0.9.
|
|
22380
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.9.
|
|
22381
|
-
"integrity": "sha512
|
|
22379
|
+
"version": "0.9.2",
|
|
22380
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.9.2.tgz",
|
|
22381
|
+
"integrity": "sha512-/x8xjorvWPxeF1ToMs/cG6k+E8jGSgQkcHC7e6GF15I0r8qv8Q8H1aLTjA2UFkP0BbNJLRNqW/R3X64DdkHCRw==",
|
|
22382
22382
|
"requires": {
|
|
22383
22383
|
"escape-html": "^1.0.3",
|
|
22384
22384
|
"html-tags": "3.1.0",
|
|
@@ -22386,26 +22386,26 @@
|
|
|
22386
22386
|
}
|
|
22387
22387
|
},
|
|
22388
22388
|
"@saltcorn/mobile-app": {
|
|
22389
|
-
"version": "0.9.
|
|
22390
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/mobile-app/-/mobile-app-0.9.
|
|
22391
|
-
"integrity": "sha512-
|
|
22389
|
+
"version": "0.9.2",
|
|
22390
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/mobile-app/-/mobile-app-0.9.2.tgz",
|
|
22391
|
+
"integrity": "sha512-rEotJ7NRRertLoWJxcm39zefB+NN75aj9AKbyqMSYeHdg3dGU1s/F9RqYerA1ko2bCS9h/f8x1+bExszvlm9Mg==",
|
|
22392
22392
|
"requires": {
|
|
22393
22393
|
"cordova": "^11.0.0",
|
|
22394
22394
|
"cordova-sqlite-ext": "^6.0.0"
|
|
22395
22395
|
}
|
|
22396
22396
|
},
|
|
22397
22397
|
"@saltcorn/mobile-builder": {
|
|
22398
|
-
"version": "0.9.
|
|
22399
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/mobile-builder/-/mobile-builder-0.9.
|
|
22400
|
-
"integrity": "sha512-
|
|
22401
|
-
"requires": {
|
|
22402
|
-
"@saltcorn/base-plugin": "0.9.
|
|
22403
|
-
"@saltcorn/data": "0.9.
|
|
22404
|
-
"@saltcorn/db-common": "0.9.
|
|
22405
|
-
"@saltcorn/markup": "0.9.
|
|
22406
|
-
"@saltcorn/mobile-app": "0.9.
|
|
22407
|
-
"@saltcorn/sbadmin2": "0.9.
|
|
22408
|
-
"@saltcorn/server": "0.9.
|
|
22398
|
+
"version": "0.9.2",
|
|
22399
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/mobile-builder/-/mobile-builder-0.9.2.tgz",
|
|
22400
|
+
"integrity": "sha512-z2ddDupb3WHe7hyQUAuoZO1RKsHIdfRWvR3YEt7qzWarSF9y0uJtyP1QfRlzLBBZCIDj00/eJrw1CngAacr7aQ==",
|
|
22401
|
+
"requires": {
|
|
22402
|
+
"@saltcorn/base-plugin": "0.9.2",
|
|
22403
|
+
"@saltcorn/data": "0.9.2",
|
|
22404
|
+
"@saltcorn/db-common": "0.9.2",
|
|
22405
|
+
"@saltcorn/markup": "0.9.2",
|
|
22406
|
+
"@saltcorn/mobile-app": "0.9.2",
|
|
22407
|
+
"@saltcorn/sbadmin2": "0.9.2",
|
|
22408
|
+
"@saltcorn/server": "0.9.2",
|
|
22409
22409
|
"fs-extra": "^10.0.1",
|
|
22410
22410
|
"live-plugin-manager": "^0.17.1",
|
|
22411
22411
|
"webpack": "5.68.0",
|
|
@@ -22441,40 +22441,40 @@
|
|
|
22441
22441
|
}
|
|
22442
22442
|
},
|
|
22443
22443
|
"@saltcorn/postgres": {
|
|
22444
|
-
"version": "0.9.
|
|
22445
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/postgres/-/postgres-0.9.
|
|
22446
|
-
"integrity": "sha512-
|
|
22444
|
+
"version": "0.9.2",
|
|
22445
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/postgres/-/postgres-0.9.2.tgz",
|
|
22446
|
+
"integrity": "sha512-iyIZVX4ZQNk/Kc6awUHWOdw4+to3Sh1tRjKxumGdnd1+9ZxbXzNC1upCq/C/FwVoxahOtwWAQLR2CprOZSDW2g==",
|
|
22447
22447
|
"optional": true,
|
|
22448
22448
|
"requires": {
|
|
22449
|
-
"@saltcorn/db-common": "0.9.
|
|
22449
|
+
"@saltcorn/db-common": "0.9.2",
|
|
22450
22450
|
"pg": "^8.2.1",
|
|
22451
22451
|
"pg-copy-streams": "^5.1.1"
|
|
22452
22452
|
}
|
|
22453
22453
|
},
|
|
22454
22454
|
"@saltcorn/sbadmin2": {
|
|
22455
|
-
"version": "0.9.
|
|
22456
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.9.
|
|
22457
|
-
"integrity": "sha512-
|
|
22455
|
+
"version": "0.9.2",
|
|
22456
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.9.2.tgz",
|
|
22457
|
+
"integrity": "sha512-HKh9MN9L37c1r4DUUcvmxYci+KbvBzDPfaTh+Jmg8EN3ioPZqCtsXkKVSodZLr3O+mqMQ0ATfRark3fepbrDPA==",
|
|
22458
22458
|
"requires": {
|
|
22459
|
-
"@saltcorn/data": "0.9.
|
|
22460
|
-
"@saltcorn/markup": "0.9.
|
|
22459
|
+
"@saltcorn/data": "0.9.2",
|
|
22460
|
+
"@saltcorn/markup": "0.9.2",
|
|
22461
22461
|
"nunito-fontface": "0.7.3",
|
|
22462
22462
|
"startbootstrap-sb-admin-2-bs5": "^4.1.5-beta.8"
|
|
22463
22463
|
}
|
|
22464
22464
|
},
|
|
22465
22465
|
"@saltcorn/server": {
|
|
22466
|
-
"version": "0.9.
|
|
22467
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.9.
|
|
22468
|
-
"integrity": "sha512-
|
|
22466
|
+
"version": "0.9.2",
|
|
22467
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.9.2.tgz",
|
|
22468
|
+
"integrity": "sha512-dG4qVAOPHjLgsKtl9VaItjLHk3/lo0SssO9O2NhGbSxQRdOR70sbg5gY86Nth4wgPLKcwjWOXADRgF/Iu/HHQw==",
|
|
22469
22469
|
"requires": {
|
|
22470
22470
|
"@aws-sdk/client-s3": "^3.451.0",
|
|
22471
|
-
"@saltcorn/admin-models": "0.9.
|
|
22472
|
-
"@saltcorn/base-plugin": "0.9.
|
|
22473
|
-
"@saltcorn/builder": "0.9.
|
|
22474
|
-
"@saltcorn/data": "0.9.
|
|
22475
|
-
"@saltcorn/filemanager": "0.9.
|
|
22476
|
-
"@saltcorn/markup": "0.9.
|
|
22477
|
-
"@saltcorn/sbadmin2": "0.9.
|
|
22471
|
+
"@saltcorn/admin-models": "0.9.2",
|
|
22472
|
+
"@saltcorn/base-plugin": "0.9.2",
|
|
22473
|
+
"@saltcorn/builder": "0.9.2",
|
|
22474
|
+
"@saltcorn/data": "0.9.2",
|
|
22475
|
+
"@saltcorn/filemanager": "0.9.2",
|
|
22476
|
+
"@saltcorn/markup": "0.9.2",
|
|
22477
|
+
"@saltcorn/sbadmin2": "0.9.2",
|
|
22478
22478
|
"@socket.io/cluster-adapter": "^0.2.1",
|
|
22479
22479
|
"@socket.io/sticky": "^1.0.1",
|
|
22480
22480
|
"adm-zip": "0.5.10",
|
|
@@ -22534,27 +22534,27 @@
|
|
|
22534
22534
|
}
|
|
22535
22535
|
},
|
|
22536
22536
|
"@saltcorn/sqlite": {
|
|
22537
|
-
"version": "0.9.
|
|
22538
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite/-/sqlite-0.9.
|
|
22539
|
-
"integrity": "sha512-
|
|
22537
|
+
"version": "0.9.2",
|
|
22538
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite/-/sqlite-0.9.2.tgz",
|
|
22539
|
+
"integrity": "sha512-e+sQwu2kiyHMritHKcDYg4Wwk9IQGOlpyYy/QWDvJggQoE6bOR9LgRXUzY7bqapkIf/GubunS+XnmVS935dv/w==",
|
|
22540
22540
|
"optional": true,
|
|
22541
22541
|
"requires": {
|
|
22542
|
-
"@saltcorn/db-common": "0.9.
|
|
22542
|
+
"@saltcorn/db-common": "0.9.2",
|
|
22543
22543
|
"sqlite3": "^5.0.8"
|
|
22544
22544
|
}
|
|
22545
22545
|
},
|
|
22546
22546
|
"@saltcorn/sqlite-mobile": {
|
|
22547
|
-
"version": "0.9.
|
|
22548
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite-mobile/-/sqlite-mobile-0.9.
|
|
22549
|
-
"integrity": "sha512-
|
|
22547
|
+
"version": "0.9.2",
|
|
22548
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite-mobile/-/sqlite-mobile-0.9.2.tgz",
|
|
22549
|
+
"integrity": "sha512-8tVXcwyjENFJJAqmDcPaLgmBiDSuWd1rv+jl6ypbdzdzJwYFDv5KLQhALkc8vdP8O8VYO7bmkpqBkiNQFPbiAg==",
|
|
22550
22550
|
"requires": {
|
|
22551
|
-
"@saltcorn/db-common": "0.9.
|
|
22551
|
+
"@saltcorn/db-common": "0.9.2"
|
|
22552
22552
|
}
|
|
22553
22553
|
},
|
|
22554
22554
|
"@saltcorn/types": {
|
|
22555
|
-
"version": "0.9.
|
|
22556
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/types/-/types-0.9.
|
|
22557
|
-
"integrity": "sha512-
|
|
22555
|
+
"version": "0.9.2",
|
|
22556
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/types/-/types-0.9.2.tgz",
|
|
22557
|
+
"integrity": "sha512-DyDKxg5f+mxNaUl/CIq4cis4HyeIpAXFnE3EFVETIYU0z/rXdg+NvIWUtS8sgtnijziyFyklT4WG1zXmqdHU0Q=="
|
|
22558
22558
|
},
|
|
22559
22559
|
"@sindresorhus/is": {
|
|
22560
22560
|
"version": "0.14.0",
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.9.1","commands":{"add-schema":{"id":"add-schema","description":"Add Saltcorn schema to existing database","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force command execution","allowNo":false}},"args":[]},"backup":{"id":"backup","description":"Backup the PostgreSQL database to a file with pg_dump or saltcorn backup zip","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false},"output":{"name":"output","type":"option","char":"o","description":"output filename"},"tenant":{"name":"tenant","type":"option","char":"t","description":"Backup tenant in saltcorn zip format"},"zip":{"name":"zip","type":"boolean","char":"z","description":"Backup public in saltcorn zip format","allowNo":false}},"args":[]},"build-app":{"id":"build-app","description":"Build mobile app","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenantAppName":{"name":"tenantAppName","type":"option","description":"Optional name of a tenant application, if set, the app will be build for this tenant"},"platforms":{"name":"platforms","type":"option","char":"p","description":"Platforms to build for, space separated list"},"entryPoint":{"name":"entryPoint","type":"option","char":"e","description":"This is the first view or page (see -t) after the login."},"entryPointType":{"name":"entryPointType","type":"option","char":"t","description":"Type of the entry point ('view' or 'page'). The default is 'view'."},"localUserTables":{"name":"localUserTables","type":"option","char":"l","description":"user defined tables that should be replicated into the app"},"synchedTables":{"name":"synchedTables","type":"option","description":"Table names for which the offline should be synchronized with the saltcorn server"},"includedPlugins":{"name":"includedPlugins","type":"option","description":"Names of plugins that should be bundled into the app.If empty, no modules are used."},"useDocker":{"name":"useDocker","type":"boolean","char":"d","description":"Use a docker container to build the app.","allowNo":false},"buildDirectory":{"name":"buildDirectory","type":"option","char":"b","description":"A directory where the app should be build"},"copyAppDirectory":{"name":"copyAppDirectory","type":"option","char":"c","description":"If set, the app file will be copied here, please set 'user email', too"},"userEmail":{"name":"userEmail","type":"option","char":"u","description":"Email of the user building the app"},"appName":{"name":"appName","type":"option","description":"Name of the mobile app (default SaltcornMobileApp)"},"appVersion":{"name":"appVersion","type":"option","description":"Version of the mobile app (default 1.0.0)"},"appIcon":{"name":"appIcon","type":"option","description":"A png that will be used as launcher icon. The default is a png of a saltcorn symbol."},"serverURL":{"name":"serverURL","type":"option","char":"s","description":"URL to a saltcorn server"},"splashPage":{"name":"splashPage","type":"option","description":"Name of a page that should be shown while the app is loading."},"autoPublicLogin":{"name":"autoPublicLogin","type":"boolean","description":"Show public entry points before the login as a public user.","allowNo":false},"allowOfflineMode":{"name":"allowOfflineMode","type":"boolean","description":"Switch to offline mode when there is no internet, sync the data when a connection is available again.","allowNo":false},"buildForEmulator":{"name":"buildForEmulator","type":"boolean","description":"build without '--device', generates no .ipa file so that iOS apps can be build without developer accounts","allowNo":false}},"args":[]},"build-cordova-builder":{"id":"build-cordova-builder","description":"Build the 'saltcorn/cordova-builder' docker image","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"buildClean":{"name":"buildClean","type":"boolean","description":"run a clean build with --no-cache","allowNo":false}},"args":[]},"configuration-check-backups":{"id":"configuration-check-backups","description":"Check configuration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"destructive":{"name":"destructive","type":"boolean","char":"d","description":"destructive","allowNo":false}},"args":[{"name":"files","description":"backup file to check. can be repeated, e.g. with *","required":true}]},"configuration-check":{"id":"configuration-check","description":"Check configuration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"create-tenant":{"id":"create-tenant","description":"Create a tenant","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"url":{"name":"url","type":"option","description":"Url of tenant"},"email":{"name":"email","type":"option","char":"e","description":"Email of owner of tenant"},"description":{"name":"description","type":"option","char":"d","description":"Description of tenant"}},"args":[{"name":"tenant","description":"Tenant subdomain to create","required":true}]},"create-user":{"id":"create-user","description":"Create a new user","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"admin":{"name":"admin","type":"boolean","char":"a","description":"Admin user","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"email":{"name":"email","type":"option","char":"e","description":"email"},"role":{"name":"role","type":"option","char":"r","description":"role"},"password":{"name":"password","type":"option","char":"p","description":"password"}},"args":[]},"delete-tenants":{"id":"delete-tenants","description":"Delete inactive tenants","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"delete-user":{"id":"delete-user","description":"Delete user.\n\nCommand deletes the user specified by USER_EMAIL.\n\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force command execution","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"user_email","description":"User to delete","required":true}]},"fixtures":{"id":"fixtures","description":"Load fixtures for testing\n...\nThis manual step it is never required for users and rarely required for developers\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"reset":{"name":"reset","type":"boolean","char":"r","description":"Also reset schema","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"get-cfg":{"id":"get-cfg","description":"Get a configuration value. The value is printed to stdout as a JSON value","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"plugin":{"name":"plugin","type":"option","char":"p","description":"plugin"}},"args":[{"name":"key","description":"Configuration key","required":false}]},"info":{"id":"info","description":"Show paths\n...\nShow configuration and file store paths\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":["paths"],"flags":{"json":{"name":"json","type":"boolean","char":"j","description":"json format","allowNo":false}},"args":[]},"inspect":{"id":"inspect","description":"Inspect an entity's JSON representation, or list entities","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"type","description":"Entity type","required":true,"options":["view","page","trigger","table"]},{"name":"name","description":"Entity name. If not supplied, list all names"}]},"install-pack":{"id":"install-pack","description":"Install a pack or restore a snapshot","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"name":{"name":"name","type":"option","char":"n","description":"Pack name in store"},"file":{"name":"file","type":"option","char":"f","description":"File with pack JSON"}},"args":[]},"install-plugin":{"id":"install-plugin","description":"Install a plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"name":{"name":"name","type":"option","char":"n","description":"Plugin name in store"},"directory":{"name":"directory","type":"option","char":"d","description":"Directory with local plugin"}},"args":[]},"list-tenants":{"id":"list-tenants","description":"List tenants in CSV format","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant","required":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose output","required":false,"allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"json format","allowNo":false}},"args":[]},"list-triggers":{"id":"list-triggers","description":"List triggers","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant","required":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose output","required":false,"allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"json format","allowNo":false}},"args":[]},"list-users":{"id":"list-users","description":"List users","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant","required":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose output","required":false,"allowNo":false}},"args":[]},"migrate":{"id":"migrate","description":"Run Database structure migrations\n...\nNOTE!\n- Please stop Saltcorn before run DB migrations.\n- Please make db backup before migration.\n- There are no way to rollback migration if you doesn't make backup.\n\nThis is not normally required as migrations will be run when the server starts.\nHowever, this command may be useful if you are running multiple application\nservers and need to control when the migrations are run.\n","usage":"saltcorn migrate","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"modify-user":{"id":"modify-user","description":"Modify (update) user.\n\nCommand changes the user specified by USER_EMAIL.\n\nYou can change the user group, password and email.\n\nNOTE that -a and -r role (--role=role) can give conflict.\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"admin":{"name":"admin","type":"boolean","char":"a","description":"make user be Admin","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"email":{"name":"email","type":"option","char":"e","description":"new email"},"role":{"name":"role","type":"option","char":"r","description":"new role (can conflict with -a option)"},"password":{"name":"password","type":"option","char":"p","description":"new password"},"imode":{"name":"imode","type":"boolean","char":"i","description":"interactive mode","allowNo":false}},"args":[{"name":"user_email","description":"User to modify","required":true}]},"plugins":{"id":"plugins","description":"List and upgrade plugins for tenants\n...\nExtra documentation goes here\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"examples":["plugins -v - verbose output of commands","plugins -u -d - dry-run for plugin update","plugins -u -f - force plugin update"],"flags":{"upgrade":{"name":"upgrade","type":"boolean","char":"u","description":"Upgrade","allowNo":false},"dryRun":{"name":"dryRun","type":"boolean","char":"d","description":"Upgrade dry-run","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Force update","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"Plugin name"}},"args":[]},"reset-schema":{"id":"reset-schema","description":"Reset the database\n...\nThis will delete all existing information\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force command execution","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"restore":{"id":"restore","description":"Restore a previously backed up database (zip or sqlc format)","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"file","description":"backup file to restore","required":true}]},"rm-tenant":{"id":"rm-tenant","description":"Remove a tenant.\nAttention! All tenant data will be lost!\nIt recommended to make backup of tenant before perform this command.\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force command execution","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant","required":true}},"args":[]},"run-benchmark":{"id":"run-benchmark","description":"Run benchmark","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"token":{"name":"token","type":"option","char":"t","description":"API Token for reporting results"},"benchmark":{"name":"benchmark","type":"option","char":"b","description":"Which benchmark to run"},"delay":{"name":"delay","type":"option","char":"d","description":"delay between runs (s)","default":30}},"args":[{"name":"baseurl","description":"Base URL","required":false}]},"run-js":{"id":"run-js","description":"Run javascript code","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant name"},"code":{"name":"code","type":"option","char":"c","description":"js code"},"file":{"name":"file","type":"option","char":"f","description":"path to script file"}},"args":[]},"run-sql":{"id":"run-sql","description":"Run sql expression","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant name"},"sql":{"name":"sql","type":"option","char":"s","description":"sql statement"},"file":{"name":"file","type":"option","char":"f","description":"path to sql file name"}},"args":[]},"run-tests":{"id":"run-tests","description":"Run test suites","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"coverage":{"name":"coverage","type":"boolean","char":"c","description":"Coverage","allowNo":false},"listTests":{"name":"listTests","type":"boolean","char":"l","description":"List tests","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false},"detectOpenHandles":{"name":"detectOpenHandles","type":"boolean","char":"d","description":"Detect Open Handles","allowNo":false},"testFilter":{"name":"testFilter","type":"option","char":"t","description":"Filter tests by suite or test name"},"watch":{"name":"watch","type":"boolean","description":"Watch files for changes and rerun tests related to changed files.","allowNo":false},"watchAll":{"name":"watchAll","type":"boolean","description":"Watch files for changes and rerun all tests.","allowNo":false},"database":{"name":"database","type":"option","description":"Run on specified database. Default is saltcorn_test"}},"args":[{"name":"package","description":"which package to run tests for"}]},"run-trigger":{"id":"run-trigger","description":"Run a trigger","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant","required":false}},"args":[{"name":"trigger","description":"trigger name","required":true}]},"scheduler":{"id":"scheduler","description":"Run the Saltcorn scheduler","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false}},"args":[]},"serve":{"id":"serve","description":"Start the Saltcorn server","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"port":{"name":"port","type":"option","char":"p","description":"port","default":3000},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false},"watchReaper":{"name":"watchReaper","type":"boolean","char":"r","description":"Watch reaper","allowNo":false},"dev":{"name":"dev","type":"boolean","char":"d","description":"Run in dev mode and re-start on file changes","allowNo":false},"addschema":{"name":"addschema","type":"boolean","char":"a","description":"Add schema if missing","allowNo":false},"nomigrate":{"name":"nomigrate","type":"boolean","char":"n","description":"No migrations","allowNo":false},"noscheduler":{"name":"noscheduler","type":"boolean","char":"s","description":"No scheduler","allowNo":false},"subdomain_offset":{"name":"subdomain_offset","type":"option","description":"Number of parts to remove to access subdomain in 'multi_tenant' mode"}},"args":[]},"set-cfg":{"id":"set-cfg","description":"Set a configuration value. The supplied value (argument, or file stdin) will be parsed as JSON. If this fails, it is stored as a string.","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"plugin":{"name":"plugin","type":"option","char":"p","description":"plugin"},"file":{"name":"file","type":"option","char":"f","description":"file"},"stdin":{"name":"stdin","type":"boolean","char":"i","description":"read value from stdin","allowNo":false}},"args":[{"name":"key","description":"Configuration key","required":false},{"name":"value","description":"Configuration value (JSON or string)"}]},"setup-benchmark":{"id":"setup-benchmark","description":"Setup an instance for benchmarking","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"setup":{"id":"setup","description":"Set up a new system\n...\nThis will attempt to install or connect a database, and set up a\nconfiguration file\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"coverage":{"name":"coverage","type":"boolean","char":"c","description":"Coverage","allowNo":false}},"args":[]},"sync-upload-data":{"id":"sync-upload-data","description":"Runs a sync for data supplied by the mobile app","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenantAppName":{"name":"tenantAppName","type":"option","description":"Optional name of a tenant application"},"userEmail":{"name":"userEmail","type":"option","description":"email of the user running the sync"},"directory":{"name":"directory","type":"option","description":"directory name for input output data"},"syncTimestamp":{"name":"syncTimestamp","type":"option","description":"new timestamp for the sync_info rows"}},"args":[]},"take-snapshot":{"id":"take-snapshot","description":"Print a current snapshout to stdout","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"fresh":{"name":"fresh","type":"boolean","char":"f","description":"fresh","allowNo":false}},"args":[]},"transform-field":{"id":"transform-field","description":"transform an existing field by applying a calculated expression","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"expression","description":"expression to calculate field","required":true},{"name":"field","description":"field name","required":true},{"name":"table","description":"table name","required":true},{"name":"tenant","description":"tenant name","required":false}]},"dev:localize-plugin":{"id":"dev:localize-plugin","description":"Convert plugin to local plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"unlocalize":{"name":"unlocalize","type":"boolean","char":"u","description":"Unlocalize plugin (local to npm)","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"plugin","description":"Current plugin name","required":true},{"name":"path","description":"Absolute path to local plugin"}]},"dev:make-migration":{"id":"dev:make-migration","description":"Create a new blank Database structure migration file.\nThese migrations update database structure.\nYou should not normally need to run this\nunless you are a developer.\n","usage":"make-migration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"dev:plugin-test":{"id":"dev:plugin-test","description":"Install a plugin, spawn 'npm run test' in the install directory and check the return code.","usage":"saltcorn dev:plugin-test -d [PATH_TO_LOCAL_PLUGIN]/statistics -f test-backup.zip","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"directory":{"name":"directory","type":"option","char":"d","description":"Directory of local plugin"},"name":{"name":"name","type":"option","char":"n","description":"Plugin name in store of a released plugin"},"backupFile":{"name":"backupFile","type":"option","char":"f","description":"Optional name of a backup file in the tests folder. If you ommit this, then the test has to create its own data."},"database":{"name":"database","type":"option","description":"Run on specified database. Default is 'saltcorn_test''"}},"args":[]},"dev:post-release":{"id":"dev:post-release","description":"Post-release tasks: docker and vagrant builds","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"task","description":"What to do","options":["docker","vagrant","all","none"]}]},"dev:release":{"id":"dev:release","description":"Release a new saltcorn version","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"version","description":"New version number","required":true}]},"dev:test-plugin":{"id":"dev:test-plugin","description":"Test a plugin\n...\nExtra documentation goes here\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"path to plugin package","required":true}]}}}
|
|
1
|
+
{"version":"0.9.2","commands":{"add-schema":{"id":"add-schema","description":"Add Saltcorn schema to existing database","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force command execution","allowNo":false}},"args":[]},"backup":{"id":"backup","description":"Backup the PostgreSQL database to a file with pg_dump or saltcorn backup zip","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false},"output":{"name":"output","type":"option","char":"o","description":"output filename"},"tenant":{"name":"tenant","type":"option","char":"t","description":"Backup tenant in saltcorn zip format"},"zip":{"name":"zip","type":"boolean","char":"z","description":"Backup public in saltcorn zip format","allowNo":false}},"args":[]},"build-app":{"id":"build-app","description":"Build mobile app","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenantAppName":{"name":"tenantAppName","type":"option","description":"Optional name of a tenant application, if set, the app will be build for this tenant"},"platforms":{"name":"platforms","type":"option","char":"p","description":"Platforms to build for, space separated list"},"entryPoint":{"name":"entryPoint","type":"option","char":"e","description":"This is the first view or page (see -t) after the login."},"entryPointType":{"name":"entryPointType","type":"option","char":"t","description":"Type of the entry point ('view' or 'page'). The default is 'view'."},"localUserTables":{"name":"localUserTables","type":"option","char":"l","description":"user defined tables that should be replicated into the app"},"synchedTables":{"name":"synchedTables","type":"option","description":"Table names for which the offline should be synchronized with the saltcorn server"},"includedPlugins":{"name":"includedPlugins","type":"option","description":"Names of plugins that should be bundled into the app.If empty, no modules are used."},"useDocker":{"name":"useDocker","type":"boolean","char":"d","description":"Use a docker container to build the app.","allowNo":false},"buildDirectory":{"name":"buildDirectory","type":"option","char":"b","description":"A directory where the app should be build"},"copyAppDirectory":{"name":"copyAppDirectory","type":"option","char":"c","description":"If set, the app file will be copied here, please set 'user email', too"},"userEmail":{"name":"userEmail","type":"option","char":"u","description":"Email of the user building the app"},"appName":{"name":"appName","type":"option","description":"Name of the mobile app (default SaltcornMobileApp)"},"appVersion":{"name":"appVersion","type":"option","description":"Version of the mobile app (default 1.0.0)"},"appIcon":{"name":"appIcon","type":"option","description":"A png that will be used as launcher icon. The default is a png of a saltcorn symbol."},"serverURL":{"name":"serverURL","type":"option","char":"s","description":"URL to a saltcorn server"},"splashPage":{"name":"splashPage","type":"option","description":"Name of a page that should be shown while the app is loading."},"autoPublicLogin":{"name":"autoPublicLogin","type":"boolean","description":"Show public entry points before the login as a public user.","allowNo":false},"allowOfflineMode":{"name":"allowOfflineMode","type":"boolean","description":"Switch to offline mode when there is no internet, sync the data when a connection is available again.","allowNo":false},"buildForEmulator":{"name":"buildForEmulator","type":"boolean","description":"build without '--device', generates no .ipa file so that iOS apps can be build without developer accounts","allowNo":false}},"args":[]},"build-cordova-builder":{"id":"build-cordova-builder","description":"Build the 'saltcorn/cordova-builder' docker image","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"buildClean":{"name":"buildClean","type":"boolean","description":"run a clean build with --no-cache","allowNo":false}},"args":[]},"configuration-check-backups":{"id":"configuration-check-backups","description":"Check configuration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"destructive":{"name":"destructive","type":"boolean","char":"d","description":"destructive","allowNo":false}},"args":[{"name":"files","description":"backup file to check. can be repeated, e.g. with *","required":true}]},"configuration-check":{"id":"configuration-check","description":"Check configuration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"create-tenant":{"id":"create-tenant","description":"Create a tenant","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"url":{"name":"url","type":"option","description":"Url of tenant"},"email":{"name":"email","type":"option","char":"e","description":"Email of owner of tenant"},"description":{"name":"description","type":"option","char":"d","description":"Description of tenant"}},"args":[{"name":"tenant","description":"Tenant subdomain to create","required":true}]},"create-user":{"id":"create-user","description":"Create a new user","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"admin":{"name":"admin","type":"boolean","char":"a","description":"Admin user","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"email":{"name":"email","type":"option","char":"e","description":"email"},"role":{"name":"role","type":"option","char":"r","description":"role"},"password":{"name":"password","type":"option","char":"p","description":"password"}},"args":[]},"delete-tenants":{"id":"delete-tenants","description":"Delete inactive tenants","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"delete-user":{"id":"delete-user","description":"Delete user.\n\nCommand deletes the user specified by USER_EMAIL.\n\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force command execution","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"user_email","description":"User to delete","required":true}]},"fixtures":{"id":"fixtures","description":"Load fixtures for testing\n...\nThis manual step it is never required for users and rarely required for developers\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"reset":{"name":"reset","type":"boolean","char":"r","description":"Also reset schema","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"get-cfg":{"id":"get-cfg","description":"Get a configuration value. The value is printed to stdout as a JSON value","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"plugin":{"name":"plugin","type":"option","char":"p","description":"plugin"}},"args":[{"name":"key","description":"Configuration key","required":false}]},"info":{"id":"info","description":"Show paths\n...\nShow configuration and file store paths\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":["paths"],"flags":{"json":{"name":"json","type":"boolean","char":"j","description":"json format","allowNo":false}},"args":[]},"inspect":{"id":"inspect","description":"Inspect an entity's JSON representation, or list entities","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"type","description":"Entity type","required":true,"options":["view","page","trigger","table"]},{"name":"name","description":"Entity name. If not supplied, list all names"}]},"install-pack":{"id":"install-pack","description":"Install a pack or restore a snapshot","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"name":{"name":"name","type":"option","char":"n","description":"Pack name in store"},"file":{"name":"file","type":"option","char":"f","description":"File with pack JSON"}},"args":[]},"install-plugin":{"id":"install-plugin","description":"Install a plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"name":{"name":"name","type":"option","char":"n","description":"Plugin name in store"},"directory":{"name":"directory","type":"option","char":"d","description":"Directory with local plugin"}},"args":[]},"list-tenants":{"id":"list-tenants","description":"List tenants in CSV format","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant","required":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose output","required":false,"allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"json format","allowNo":false}},"args":[]},"list-triggers":{"id":"list-triggers","description":"List triggers","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant","required":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose output","required":false,"allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"json format","allowNo":false}},"args":[]},"list-users":{"id":"list-users","description":"List users","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant","required":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"verbose output","required":false,"allowNo":false}},"args":[]},"migrate":{"id":"migrate","description":"Run Database structure migrations\n...\nNOTE!\n- Please stop Saltcorn before run DB migrations.\n- Please make db backup before migration.\n- There are no way to rollback migration if you doesn't make backup.\n\nThis is not normally required as migrations will be run when the server starts.\nHowever, this command may be useful if you are running multiple application\nservers and need to control when the migrations are run.\n","usage":"saltcorn migrate","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"modify-user":{"id":"modify-user","description":"Modify (update) user.\n\nCommand changes the user specified by USER_EMAIL.\n\nYou can change the user group, password and email.\n\nNOTE that -a and -r role (--role=role) can give conflict.\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"admin":{"name":"admin","type":"boolean","char":"a","description":"make user be Admin","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"email":{"name":"email","type":"option","char":"e","description":"new email"},"role":{"name":"role","type":"option","char":"r","description":"new role (can conflict with -a option)"},"password":{"name":"password","type":"option","char":"p","description":"new password"},"imode":{"name":"imode","type":"boolean","char":"i","description":"interactive mode","allowNo":false}},"args":[{"name":"user_email","description":"User to modify","required":true}]},"plugins":{"id":"plugins","description":"List and upgrade plugins for tenants\n...\nExtra documentation goes here\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"examples":["plugins -v - verbose output of commands","plugins -u -d - dry-run for plugin update","plugins -u -f - force plugin update"],"flags":{"upgrade":{"name":"upgrade","type":"boolean","char":"u","description":"Upgrade","allowNo":false},"dryRun":{"name":"dryRun","type":"boolean","char":"d","description":"Upgrade dry-run","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Force update","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"Plugin name"}},"args":[]},"reset-schema":{"id":"reset-schema","description":"Reset the database\n...\nThis will delete all existing information\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force command execution","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"restore":{"id":"restore","description":"Restore a previously backed up database (zip or sqlc format)","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"file","description":"backup file to restore","required":true}]},"rm-tenant":{"id":"rm-tenant","description":"Remove a tenant.\nAttention! All tenant data will be lost!\nIt recommended to make backup of tenant before perform this command.\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force command execution","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant","required":true}},"args":[]},"run-benchmark":{"id":"run-benchmark","description":"Run benchmark","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"token":{"name":"token","type":"option","char":"t","description":"API Token for reporting results"},"benchmark":{"name":"benchmark","type":"option","char":"b","description":"Which benchmark to run"},"delay":{"name":"delay","type":"option","char":"d","description":"delay between runs (s)","default":30}},"args":[{"name":"baseurl","description":"Base URL","required":false}]},"run-js":{"id":"run-js","description":"Run javascript code","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant name"},"code":{"name":"code","type":"option","char":"c","description":"js code"},"file":{"name":"file","type":"option","char":"f","description":"path to script file"}},"args":[]},"run-sql":{"id":"run-sql","description":"Run sql expression","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant name"},"sql":{"name":"sql","type":"option","char":"s","description":"sql statement"},"file":{"name":"file","type":"option","char":"f","description":"path to sql file name"}},"args":[]},"run-tests":{"id":"run-tests","description":"Run test suites","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"coverage":{"name":"coverage","type":"boolean","char":"c","description":"Coverage","allowNo":false},"listTests":{"name":"listTests","type":"boolean","char":"l","description":"List tests","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false},"detectOpenHandles":{"name":"detectOpenHandles","type":"boolean","char":"d","description":"Detect Open Handles","allowNo":false},"testFilter":{"name":"testFilter","type":"option","char":"t","description":"Filter tests by suite or test name"},"watch":{"name":"watch","type":"boolean","description":"Watch files for changes and rerun tests related to changed files.","allowNo":false},"watchAll":{"name":"watchAll","type":"boolean","description":"Watch files for changes and rerun all tests.","allowNo":false},"database":{"name":"database","type":"option","description":"Run on specified database. Default is saltcorn_test"}},"args":[{"name":"package","description":"which package to run tests for"}]},"run-trigger":{"id":"run-trigger","description":"Run a trigger","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant","required":false}},"args":[{"name":"trigger","description":"trigger name","required":true}]},"scheduler":{"id":"scheduler","description":"Run the Saltcorn scheduler","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false}},"args":[]},"serve":{"id":"serve","description":"Start the Saltcorn server","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"port":{"name":"port","type":"option","char":"p","description":"port","default":3000},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false},"watchReaper":{"name":"watchReaper","type":"boolean","char":"r","description":"Watch reaper","allowNo":false},"dev":{"name":"dev","type":"boolean","char":"d","description":"Run in dev mode and re-start on file changes","allowNo":false},"addschema":{"name":"addschema","type":"boolean","char":"a","description":"Add schema if missing","allowNo":false},"nomigrate":{"name":"nomigrate","type":"boolean","char":"n","description":"No migrations","allowNo":false},"noscheduler":{"name":"noscheduler","type":"boolean","char":"s","description":"No scheduler","allowNo":false},"subdomain_offset":{"name":"subdomain_offset","type":"option","description":"Number of parts to remove to access subdomain in 'multi_tenant' mode"}},"args":[]},"set-cfg":{"id":"set-cfg","description":"Set a configuration value. The supplied value (argument, or file stdin) will be parsed as JSON. If this fails, it is stored as a string.","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"plugin":{"name":"plugin","type":"option","char":"p","description":"plugin"},"file":{"name":"file","type":"option","char":"f","description":"file"},"stdin":{"name":"stdin","type":"boolean","char":"i","description":"read value from stdin","allowNo":false}},"args":[{"name":"key","description":"Configuration key","required":false},{"name":"value","description":"Configuration value (JSON or string)"}]},"setup-benchmark":{"id":"setup-benchmark","description":"Setup an instance for benchmarking","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"setup":{"id":"setup","description":"Set up a new system\n...\nThis will attempt to install or connect a database, and set up a\nconfiguration file\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"coverage":{"name":"coverage","type":"boolean","char":"c","description":"Coverage","allowNo":false}},"args":[]},"sync-upload-data":{"id":"sync-upload-data","description":"Runs a sync for data supplied by the mobile app","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenantAppName":{"name":"tenantAppName","type":"option","description":"Optional name of a tenant application"},"userEmail":{"name":"userEmail","type":"option","description":"email of the user running the sync"},"directory":{"name":"directory","type":"option","description":"directory name for input output data"},"syncTimestamp":{"name":"syncTimestamp","type":"option","description":"new timestamp for the sync_info rows"}},"args":[]},"take-snapshot":{"id":"take-snapshot","description":"Print a current snapshout to stdout","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"fresh":{"name":"fresh","type":"boolean","char":"f","description":"fresh","allowNo":false}},"args":[]},"transform-field":{"id":"transform-field","description":"transform an existing field by applying a calculated expression","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"expression","description":"expression to calculate field","required":true},{"name":"field","description":"field name","required":true},{"name":"table","description":"table name","required":true},{"name":"tenant","description":"tenant name","required":false}]},"dev:localize-plugin":{"id":"dev:localize-plugin","description":"Convert plugin to local plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"unlocalize":{"name":"unlocalize","type":"boolean","char":"u","description":"Unlocalize plugin (local to npm)","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"plugin","description":"Current plugin name","required":true},{"name":"path","description":"Absolute path to local plugin"}]},"dev:make-migration":{"id":"dev:make-migration","description":"Create a new blank Database structure migration file.\nThese migrations update database structure.\nYou should not normally need to run this\nunless you are a developer.\n","usage":"make-migration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"dev:plugin-test":{"id":"dev:plugin-test","description":"Install a plugin, spawn 'npm run test' in the install directory and check the return code.","usage":"saltcorn dev:plugin-test -d [PATH_TO_LOCAL_PLUGIN]/statistics -f test-backup.zip","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"directory":{"name":"directory","type":"option","char":"d","description":"Directory of local plugin"},"name":{"name":"name","type":"option","char":"n","description":"Plugin name in store of a released plugin"},"backupFile":{"name":"backupFile","type":"option","char":"f","description":"Optional name of a backup file in the tests folder. If you ommit this, then the test has to create its own data."},"database":{"name":"database","type":"option","description":"Run on specified database. Default is 'saltcorn_test''"}},"args":[]},"dev:post-release":{"id":"dev:post-release","description":"Post-release tasks: docker and vagrant builds","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"task","description":"What to do","options":["docker","vagrant","all","none"]}]},"dev:release":{"id":"dev:release","description":"Release a new saltcorn version","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"version","description":"New version number","required":true}]},"dev:test-plugin":{"id":"dev:test-plugin","description":"Test a plugin\n...\nExtra documentation goes here\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"path to plugin package","required":true}]}}}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@saltcorn/cli",
|
|
3
3
|
"description": "Command-line interface for Saltcorn, open-source no-code platform",
|
|
4
4
|
"homepage": "https://saltcorn.com",
|
|
5
|
-
"version": "0.9.
|
|
5
|
+
"version": "0.9.2",
|
|
6
6
|
"author": "Tom Nielsen @glutamate",
|
|
7
7
|
"bin": {
|
|
8
8
|
"saltcorn": "./bin/saltcorn"
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"@oclif/config": "^1.18.3",
|
|
14
14
|
"@oclif/plugin-plugins": "^2.1.0",
|
|
15
15
|
"@oclif/plugin-help": "^3.3.1",
|
|
16
|
-
"@saltcorn/admin-models": "0.9.
|
|
17
|
-
"@saltcorn/data": "0.9.
|
|
18
|
-
"@saltcorn/mobile-app": "0.9.
|
|
19
|
-
"@saltcorn/mobile-builder": "0.9.
|
|
20
|
-
"@saltcorn/server": "0.9.
|
|
16
|
+
"@saltcorn/admin-models": "0.9.2",
|
|
17
|
+
"@saltcorn/data": "0.9.2",
|
|
18
|
+
"@saltcorn/mobile-app": "0.9.2",
|
|
19
|
+
"@saltcorn/mobile-builder": "0.9.2",
|
|
20
|
+
"@saltcorn/server": "0.9.2",
|
|
21
21
|
"cli-ux": "^5.6.7",
|
|
22
22
|
"contractis": "^0.1.0",
|
|
23
23
|
"dateformat": "^3.0.3",
|
package/src/commands/run-sql.js
CHANGED
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
const { Command, flags } = require("@oclif/command");
|
|
6
6
|
const { cli } = require("cli-ux");
|
|
7
|
-
const {
|
|
7
|
+
const {
|
|
8
|
+
maybe_as_tenant,
|
|
9
|
+
init_some_tenants,
|
|
10
|
+
readFileSync,
|
|
11
|
+
} = require("../common");
|
|
8
12
|
const db = require("@saltcorn/data/db");
|
|
9
13
|
|
|
10
14
|
/**
|
|
@@ -13,53 +17,55 @@ const db = require("@saltcorn/data/db");
|
|
|
13
17
|
* @category saltcorn-cli
|
|
14
18
|
*/
|
|
15
19
|
class RunSQLCommand extends Command {
|
|
16
|
-
|
|
17
20
|
/**
|
|
18
21
|
* @returns {Promise<void>}
|
|
19
22
|
*/
|
|
20
23
|
async run() {
|
|
21
24
|
const { flags, args } = this.parse(RunSQLCommand);
|
|
22
25
|
|
|
23
|
-
if(!flags.sql
|
|
24
|
-
console.log(
|
|
26
|
+
if (!flags.sql && !flags.file) {
|
|
27
|
+
console.log(
|
|
28
|
+
"One of arguments is required: --sql or --file.\nRun with --help to get more info"
|
|
29
|
+
);
|
|
25
30
|
this.exit(1);
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
await init_some_tenants(flags.tenant);
|
|
29
34
|
|
|
30
|
-
|
|
31
35
|
//const { mockReqRes } = require("@saltcorn/data/tests/mocks");
|
|
32
36
|
|
|
33
37
|
const that = this;
|
|
34
38
|
await maybe_as_tenant(flags.tenant, async () => {
|
|
35
|
-
|
|
36
39
|
const schema = db.getTenantSchema();
|
|
37
|
-
if(flags.tenant)
|
|
38
|
-
if(db.isSQLite) {
|
|
39
|
-
console.warn("SQLite is used as datasource. Tenants are unsupported")
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
await db.query("SET SEARCH_PATH='"+schema+"'");
|
|
40
|
+
if (flags.tenant)
|
|
41
|
+
if (db.isSQLite) {
|
|
42
|
+
console.warn("SQLite is used as datasource. Tenants are unsupported");
|
|
43
|
+
} else {
|
|
44
|
+
// https://www.commandprompt.com/education/how-do-i-setchange-the-default-schema-in-postgresql/
|
|
45
|
+
// life hack to set default schema for tables in PG
|
|
46
|
+
await db.query("SET SEARCH_PATH='" + schema + "'");
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
console.log("current tenant:", schema);
|
|
48
50
|
//if(flags.sql){
|
|
49
|
-
const sql_str = flags.sql? flags.sql
|
|
51
|
+
const sql_str = flags.sql ? flags.sql : readFileSync(flags.file);
|
|
50
52
|
// check that file not find (not directly)
|
|
51
|
-
if (sql_str === null
|
|
53
|
+
if (sql_str === null) {
|
|
52
54
|
this.exit(1);
|
|
53
55
|
}
|
|
54
|
-
|
|
56
|
+
try {
|
|
57
|
+
const query = await db.query(sql_str);
|
|
55
58
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
if (!query) {
|
|
60
|
+
console.error(`Cannot execute Query ${flags.sql}`);
|
|
61
|
+
this.exit(1);
|
|
62
|
+
}
|
|
63
|
+
// print sql statement
|
|
64
|
+
console.log(sql_str);
|
|
65
|
+
console.table(query.rows);
|
|
66
|
+
} catch (e) {
|
|
67
|
+
console.error(e);
|
|
59
68
|
}
|
|
60
|
-
// print sql statement
|
|
61
|
-
console.log(sql_str);
|
|
62
|
-
console.table (query.rows);
|
|
63
69
|
});
|
|
64
70
|
this.exit(0);
|
|
65
71
|
}
|