@saltcorn/cli 0.9.4-beta.8 → 0.9.4-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -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.4-beta.8 linux-x64 node-v18.7.0
23
+ @saltcorn/cli/0.9.4-beta.9 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.4-beta.8/src/commands/add-schema.js)_
92
+ _See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/backup.js)_
109
+ _See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/build-app.js)_
157
+ _See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/build-cordova-builder.js)_
171
+ _See code: [src/commands/build-cordova-builder.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/configuration-check.js)_
185
+ _See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/configuration-check-backups.js)_
202
+ _See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/create-tenant.js)_
221
+ _See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/create-user.js)_
239
+ _See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/delete-tenants.js)_
250
+ _See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/delete-user.js)_
271
+ _See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/dev/localize-plugin.js)_
290
+ _See code: [src/commands/dev/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/dev/make-migration.js)_
306
+ _See code: [src/commands/dev/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/dev/plugin-test.js)_
327
+ _See code: [src/commands/dev/plugin-test.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/dev/post-release.js)_
341
+ _See code: [src/commands/dev/post-release.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/dev/release.js)_
355
+ _See code: [src/commands/dev/release.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/dev/test-plugin.js)_
373
+ _See code: [src/commands/dev/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/fixtures.js)_
392
+ _See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/get-cfg.js)_
410
+ _See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/info.js)_
448
+ _See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/inspect.js)_
466
+ _See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/install-pack.js)_
482
+ _See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/install-plugin.js)_
498
+ _See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/list-tenants.js)_
514
+ _See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/list-triggers.js)_
530
+ _See code: [src/commands/list-triggers.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/list-users.js)_
545
+ _See code: [src/commands/list-users.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/migrate.js)_
567
+ _See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/modify-user.js)_
596
+ _See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/plugins.js)_
623
+ _See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/reset-schema.js)_
642
+ _See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/restore.js)_
659
+ _See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/rm-tenant.js)_
678
+ _See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/run-benchmark.js)_
697
+ _See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/run-js.js)_
713
+ _See code: [src/commands/run-js.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/run-sql.js)_
729
+ _See code: [src/commands/run-sql.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/run-tests.js)_
753
+ _See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/run-trigger.js)_
770
+ _See code: [src/commands/run-trigger.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/scheduler.js)_
784
+ _See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/serve.js)_
805
+ _See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/set-cfg.js)_
826
+ _See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/setup.js)_
845
+ _See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/setup-benchmark.js)_
859
+ _See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/sync-upload-data.js)_
876
+ _See code: [src/commands/sync-upload-data.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/take-snapshot.js)_
891
+ _See code: [src/commands/take-snapshot.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/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.4-beta.8/src/commands/transform-field.js)_
908
+ _See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.9.4-beta.9/src/commands/transform-field.js)_
909
909
  <!-- commandsstop -->
@@ -1 +1 @@
1
- {"version":"0.9.4-beta.8","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.4-beta.9","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.4-beta.8",
5
+ "version": "0.9.4-beta.9",
6
6
  "author": "Tom Nielsen @glutamate",
7
7
  "bin": {
8
8
  "saltcorn": "./bin/saltcorn"
@@ -13,11 +13,12 @@
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.4-beta.8",
17
- "@saltcorn/data": "0.9.4-beta.8",
18
- "@saltcorn/mobile-app": "0.9.4-beta.8",
19
- "@saltcorn/mobile-builder": "0.9.4-beta.8",
20
- "@saltcorn/server": "0.9.4-beta.8",
16
+ "@saltcorn/admin-models": "0.9.4-beta.9",
17
+ "@saltcorn/common-code": "0.9.4-beta.8",
18
+ "@saltcorn/data": "0.9.4-beta.9",
19
+ "@saltcorn/mobile-app": "0.9.4-beta.9",
20
+ "@saltcorn/mobile-builder": "0.9.4-beta.9",
21
+ "@saltcorn/server": "0.9.4-beta.9",
21
22
  "cli-ux": "^5.6.7",
22
23
  "contractis": "^0.1.0",
23
24
  "dateformat": "^3.0.3",
@@ -101,16 +101,19 @@ class RunTestsCommand extends Command {
101
101
  }
102
102
  }
103
103
 
104
- async copySchemaIntoBuilder() {
104
+ async copySchemaIntoPck(pckNames) {
105
105
  const schemaData = await build_schema_data();
106
- const schemaFile = path.join(
107
- process.cwd(),
108
- "packages",
109
- "saltcorn-builder",
110
- "tests",
111
- "schema_data.json"
112
- );
113
- fs.writeFileSync(schemaFile, JSON.stringify(schemaData));
106
+ const copy = (name) => {
107
+ const schemaFile = path.join(
108
+ process.cwd(),
109
+ "packages",
110
+ name,
111
+ "tests",
112
+ "schema_data.json"
113
+ );
114
+ fs.writeFileSync(schemaFile, JSON.stringify(schemaData));
115
+ };
116
+ for (const name of pckNames) copy(name);
114
117
  }
115
118
 
116
119
  /**
@@ -140,8 +143,10 @@ class RunTestsCommand extends Command {
140
143
  const reset = require("@saltcorn/data/db/reset_schema");
141
144
  await reset();
142
145
  await fixtures();
143
- if (args.package === "saltcorn-builder" || !args.package)
144
- await this.copySchemaIntoBuilder();
146
+ if (!args.package)
147
+ await this.copySchemaIntoPck(["saltcorn-builder", "common-code"]);
148
+ else if (["saltcorn-builder", "common-code"].includes(args.package))
149
+ await this.copySchemaIntoPck([args.package]);
145
150
  await db.close();
146
151
  let jestParams = ["--"];
147
152
  // toddo add --logHeapUsage