@saltcorn/cli 0.9.5-beta.17 → 0.9.5-beta.19

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.5-beta.17 linux-x64 node-v18.7.0
23
+ @saltcorn/cli/0.9.5-beta.19 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.5-beta.17/src/commands/add-schema.js)_
92
+ _See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/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.5-beta.17/src/commands/backup.js)_
109
+ _See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/backup.js)_
110
110
 
111
111
  ## `saltcorn build-app`
112
112
 
@@ -137,6 +137,8 @@ OPTIONS
137
137
 
138
138
  --appVersion=appVersion Version of the mobile app (default 1.0.0)
139
139
 
140
+ --appleTeamId=appleTeamId Apple team id for iOS builds
141
+
140
142
  --autoPublicLogin Show public entry points before the login as a public user.
141
143
 
142
144
  --buildForEmulator build without '--device', generates no .ipa file so that iOS apps can be
@@ -154,7 +156,7 @@ OPTIONS
154
156
  tenant
155
157
  ```
156
158
 
157
- _See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/build-app.js)_
159
+ _See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/build-app.js)_
158
160
 
159
161
  ## `saltcorn build-cordova-builder`
160
162
 
@@ -168,7 +170,7 @@ OPTIONS
168
170
  --buildClean run a clean build with --no-cache
169
171
  ```
170
172
 
171
- _See code: [src/commands/build-cordova-builder.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/build-cordova-builder.js)_
173
+ _See code: [src/commands/build-cordova-builder.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/build-cordova-builder.js)_
172
174
 
173
175
  ## `saltcorn configuration-check`
174
176
 
@@ -182,7 +184,7 @@ OPTIONS
182
184
  -t, --tenant=tenant tenant
183
185
  ```
184
186
 
185
- _See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/configuration-check.js)_
187
+ _See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/configuration-check.js)_
186
188
 
187
189
  ## `saltcorn configuration-check-backups FILES`
188
190
 
@@ -199,7 +201,7 @@ OPTIONS
199
201
  -d, --destructive destructive
200
202
  ```
201
203
 
202
- _See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/configuration-check-backups.js)_
204
+ _See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/configuration-check-backups.js)_
203
205
 
204
206
  ## `saltcorn create-tenant TENANT`
205
207
 
@@ -218,7 +220,7 @@ OPTIONS
218
220
  --url=url Url of tenant
219
221
  ```
220
222
 
221
- _See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/create-tenant.js)_
223
+ _See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/create-tenant.js)_
222
224
 
223
225
  ## `saltcorn create-user`
224
226
 
@@ -236,7 +238,7 @@ OPTIONS
236
238
  -t, --tenant=tenant tenant
237
239
  ```
238
240
 
239
- _See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/create-user.js)_
241
+ _See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/create-user.js)_
240
242
 
241
243
  ## `saltcorn delete-tenants`
242
244
 
@@ -247,7 +249,7 @@ USAGE
247
249
  $ saltcorn delete-tenants
248
250
  ```
249
251
 
250
- _See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/delete-tenants.js)_
252
+ _See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/delete-tenants.js)_
251
253
 
252
254
  ## `saltcorn delete-user USER_EMAIL`
253
255
 
@@ -268,7 +270,7 @@ DESCRIPTION
268
270
  Command deletes the user specified by USER_EMAIL.
269
271
  ```
270
272
 
271
- _See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/delete-user.js)_
273
+ _See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/delete-user.js)_
272
274
 
273
275
  ## `saltcorn dev:localize-plugin PLUGIN [PATH]`
274
276
 
@@ -287,7 +289,7 @@ OPTIONS
287
289
  -u, --unlocalize Unlocalize plugin (local to npm)
288
290
  ```
289
291
 
290
- _See code: [src/commands/dev/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/dev/localize-plugin.js)_
292
+ _See code: [src/commands/dev/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/dev/localize-plugin.js)_
291
293
 
292
294
  ## `saltcorn make-migration`
293
295
 
@@ -303,7 +305,7 @@ DESCRIPTION
303
305
  unless you are a developer.
304
306
  ```
305
307
 
306
- _See code: [src/commands/dev/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/dev/make-migration.js)_
308
+ _See code: [src/commands/dev/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/dev/make-migration.js)_
307
309
 
308
310
  ## `saltcorn saltcorn dev:plugin-test -d [PATH_TO_LOCAL_PLUGIN]/statistics -f test-backup.zip`
309
311
 
@@ -324,7 +326,7 @@ OPTIONS
324
326
  --database=database Run on specified database. Default is 'saltcorn_test''
325
327
  ```
326
328
 
327
- _See code: [src/commands/dev/plugin-test.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/dev/plugin-test.js)_
329
+ _See code: [src/commands/dev/plugin-test.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/dev/plugin-test.js)_
328
330
 
329
331
  ## `saltcorn dev:post-release [TASK]`
330
332
 
@@ -338,7 +340,7 @@ ARGUMENTS
338
340
  TASK (docker|vagrant|all|none) What to do
339
341
  ```
340
342
 
341
- _See code: [src/commands/dev/post-release.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/dev/post-release.js)_
343
+ _See code: [src/commands/dev/post-release.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/dev/post-release.js)_
342
344
 
343
345
  ## `saltcorn dev:release VERSION`
344
346
 
@@ -355,7 +357,7 @@ OPTIONS
355
357
  -t, --tag=tag NPM tag
356
358
  ```
357
359
 
358
- _See code: [src/commands/dev/release.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/dev/release.js)_
360
+ _See code: [src/commands/dev/release.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/dev/release.js)_
359
361
 
360
362
  ## `saltcorn dev:test-plugin PATH`
361
363
 
@@ -373,7 +375,7 @@ DESCRIPTION
373
375
  Extra documentation goes here
374
376
  ```
375
377
 
376
- _See code: [src/commands/dev/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/dev/test-plugin.js)_
378
+ _See code: [src/commands/dev/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/dev/test-plugin.js)_
377
379
 
378
380
  ## `saltcorn fixtures`
379
381
 
@@ -392,7 +394,7 @@ DESCRIPTION
392
394
  This manual step it is never required for users and rarely required for developers
393
395
  ```
394
396
 
395
- _See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/fixtures.js)_
397
+ _See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/fixtures.js)_
396
398
 
397
399
  ## `saltcorn get-cfg [KEY]`
398
400
 
@@ -410,7 +412,7 @@ OPTIONS
410
412
  -t, --tenant=tenant tenant
411
413
  ```
412
414
 
413
- _See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/get-cfg.js)_
415
+ _See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/get-cfg.js)_
414
416
 
415
417
  ## `saltcorn help [COMMAND]`
416
418
 
@@ -448,7 +450,7 @@ ALIASES
448
450
  $ saltcorn paths
449
451
  ```
450
452
 
451
- _See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/info.js)_
453
+ _See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/info.js)_
452
454
 
453
455
  ## `saltcorn inspect TYPE [NAME]`
454
456
 
@@ -466,7 +468,7 @@ OPTIONS
466
468
  -t, --tenant=tenant tenant
467
469
  ```
468
470
 
469
- _See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/inspect.js)_
471
+ _See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/inspect.js)_
470
472
 
471
473
  ## `saltcorn install-pack`
472
474
 
@@ -482,7 +484,7 @@ OPTIONS
482
484
  -t, --tenant=tenant tenant
483
485
  ```
484
486
 
485
- _See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/install-pack.js)_
487
+ _See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/install-pack.js)_
486
488
 
487
489
  ## `saltcorn install-plugin`
488
490
 
@@ -498,7 +500,7 @@ OPTIONS
498
500
  -t, --tenant=tenant tenant
499
501
  ```
500
502
 
501
- _See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/install-plugin.js)_
503
+ _See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/install-plugin.js)_
502
504
 
503
505
  ## `saltcorn list-tenants`
504
506
 
@@ -514,7 +516,7 @@ OPTIONS
514
516
  -v, --verbose verbose output
515
517
  ```
516
518
 
517
- _See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/list-tenants.js)_
519
+ _See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/list-tenants.js)_
518
520
 
519
521
  ## `saltcorn list-triggers`
520
522
 
@@ -530,7 +532,7 @@ OPTIONS
530
532
  -v, --verbose verbose output
531
533
  ```
532
534
 
533
- _See code: [src/commands/list-triggers.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/list-triggers.js)_
535
+ _See code: [src/commands/list-triggers.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/list-triggers.js)_
534
536
 
535
537
  ## `saltcorn list-users`
536
538
 
@@ -545,7 +547,7 @@ OPTIONS
545
547
  -v, --verbose verbose output
546
548
  ```
547
549
 
548
- _See code: [src/commands/list-users.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/list-users.js)_
550
+ _See code: [src/commands/list-users.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/list-users.js)_
549
551
 
550
552
  ## `saltcorn saltcorn migrate`
551
553
 
@@ -567,7 +569,7 @@ DESCRIPTION
567
569
  servers and need to control when the migrations are run.
568
570
  ```
569
571
 
570
- _See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/migrate.js)_
572
+ _See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/migrate.js)_
571
573
 
572
574
  ## `saltcorn modify-user USER_EMAIL`
573
575
 
@@ -596,7 +598,7 @@ DESCRIPTION
596
598
  NOTE that -a and -r role (--role=role) can give conflict.
597
599
  ```
598
600
 
599
- _See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/modify-user.js)_
601
+ _See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/modify-user.js)_
600
602
 
601
603
  ## `saltcorn plugins`
602
604
 
@@ -623,7 +625,7 @@ EXAMPLES
623
625
  plugins -u -f - force plugin update
624
626
  ```
625
627
 
626
- _See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/plugins.js)_
628
+ _See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/plugins.js)_
627
629
 
628
630
  ## `saltcorn reset-schema`
629
631
 
@@ -642,7 +644,7 @@ DESCRIPTION
642
644
  This will delete all existing information
643
645
  ```
644
646
 
645
- _See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/reset-schema.js)_
647
+ _See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/reset-schema.js)_
646
648
 
647
649
  ## `saltcorn restore FILE`
648
650
 
@@ -659,7 +661,7 @@ OPTIONS
659
661
  -t, --tenant=tenant tenant
660
662
  ```
661
663
 
662
- _See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/restore.js)_
664
+ _See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/restore.js)_
663
665
 
664
666
  ## `saltcorn rm-tenant`
665
667
 
@@ -678,7 +680,7 @@ DESCRIPTION
678
680
  It recommended to make backup of tenant before perform this command.
679
681
  ```
680
682
 
681
- _See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/rm-tenant.js)_
683
+ _See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/rm-tenant.js)_
682
684
 
683
685
  ## `saltcorn run-benchmark [BASEURL]`
684
686
 
@@ -697,7 +699,7 @@ OPTIONS
697
699
  -t, --token=token API Token for reporting results
698
700
  ```
699
701
 
700
- _See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/run-benchmark.js)_
702
+ _See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/run-benchmark.js)_
701
703
 
702
704
  ## `saltcorn run-js`
703
705
 
@@ -713,7 +715,7 @@ OPTIONS
713
715
  -t, --tenant=tenant tenant name
714
716
  ```
715
717
 
716
- _See code: [src/commands/run-js.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/run-js.js)_
718
+ _See code: [src/commands/run-js.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/run-js.js)_
717
719
 
718
720
  ## `saltcorn run-sql`
719
721
 
@@ -729,7 +731,7 @@ OPTIONS
729
731
  -t, --tenant=tenant tenant name
730
732
  ```
731
733
 
732
- _See code: [src/commands/run-sql.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/run-sql.js)_
734
+ _See code: [src/commands/run-sql.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/run-sql.js)_
733
735
 
734
736
  ## `saltcorn run-tests [PACKAGE]`
735
737
 
@@ -753,7 +755,7 @@ OPTIONS
753
755
  --watchAll Watch files for changes and rerun all tests.
754
756
  ```
755
757
 
756
- _See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/run-tests.js)_
758
+ _See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/run-tests.js)_
757
759
 
758
760
  ## `saltcorn run-trigger TRIGGER`
759
761
 
@@ -770,7 +772,7 @@ OPTIONS
770
772
  -t, --tenant=tenant tenant
771
773
  ```
772
774
 
773
- _See code: [src/commands/run-trigger.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/run-trigger.js)_
775
+ _See code: [src/commands/run-trigger.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/run-trigger.js)_
774
776
 
775
777
  ## `saltcorn scheduler`
776
778
 
@@ -784,7 +786,7 @@ OPTIONS
784
786
  -v, --verbose Verbose
785
787
  ```
786
788
 
787
- _See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/scheduler.js)_
789
+ _See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/scheduler.js)_
788
790
 
789
791
  ## `saltcorn serve`
790
792
 
@@ -805,7 +807,7 @@ OPTIONS
805
807
  --subdomain_offset=subdomain_offset Number of parts to remove to access subdomain in 'multi_tenant' mode
806
808
  ```
807
809
 
808
- _See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/serve.js)_
810
+ _See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/serve.js)_
809
811
 
810
812
  ## `saltcorn set-cfg [KEY] [VALUE]`
811
813
 
@@ -826,7 +828,7 @@ OPTIONS
826
828
  -t, --tenant=tenant tenant
827
829
  ```
828
830
 
829
- _See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/set-cfg.js)_
831
+ _See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/set-cfg.js)_
830
832
 
831
833
  ## `saltcorn setup`
832
834
 
@@ -845,7 +847,7 @@ DESCRIPTION
845
847
  configuration file
846
848
  ```
847
849
 
848
- _See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/setup.js)_
850
+ _See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/setup.js)_
849
851
 
850
852
  ## `saltcorn setup-benchmark`
851
853
 
@@ -859,7 +861,7 @@ OPTIONS
859
861
  -t, --tenant=tenant tenant
860
862
  ```
861
863
 
862
- _See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/setup-benchmark.js)_
864
+ _See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/setup-benchmark.js)_
863
865
 
864
866
  ## `saltcorn sync-upload-data`
865
867
 
@@ -876,7 +878,7 @@ OPTIONS
876
878
  --userEmail=userEmail email of the user running the sync
877
879
  ```
878
880
 
879
- _See code: [src/commands/sync-upload-data.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/sync-upload-data.js)_
881
+ _See code: [src/commands/sync-upload-data.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/sync-upload-data.js)_
880
882
 
881
883
  ## `saltcorn take-snapshot`
882
884
 
@@ -891,7 +893,7 @@ OPTIONS
891
893
  -t, --tenant=tenant tenant
892
894
  ```
893
895
 
894
- _See code: [src/commands/take-snapshot.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/take-snapshot.js)_
896
+ _See code: [src/commands/take-snapshot.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/take-snapshot.js)_
895
897
 
896
898
  ## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
897
899
 
@@ -908,5 +910,5 @@ ARGUMENTS
908
910
  TENANT tenant name
909
911
  ```
910
912
 
911
- _See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.17/src/commands/transform-field.js)_
913
+ _See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.9.5-beta.19/src/commands/transform-field.js)_
912
914
  <!-- commandsstop -->
@@ -1 +1 @@
1
- {"version":"0.9.5-beta.17","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":{"tag":{"name":"tag","type":"option","char":"t","description":"NPM tag"}},"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.5-beta.19","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},"appleTeamId":{"name":"appleTeamId","type":"option","description":"Apple team id for iOS builds"}},"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":{"tag":{"name":"tag","type":"option","char":"t","description":"NPM tag"}},"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-beta.17",
5
+ "version": "0.9.5-beta.19",
6
6
  "author": "Tom Nielsen @glutamate",
7
7
  "bin": {
8
8
  "saltcorn": "./bin/saltcorn"
@@ -13,13 +13,13 @@
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.5-beta.17",
17
- "@saltcorn/common-code": "0.9.5-beta.17",
18
- "@saltcorn/data": "0.9.5-beta.17",
19
- "@saltcorn/mobile-app": "0.9.5-beta.17",
20
- "@saltcorn/mobile-builder": "0.9.5-beta.17",
21
- "@saltcorn/plugins-loader": "0.9.5-beta.17",
22
- "@saltcorn/server": "0.9.5-beta.17",
16
+ "@saltcorn/admin-models": "0.9.5-beta.19",
17
+ "@saltcorn/common-code": "0.9.5-beta.19",
18
+ "@saltcorn/data": "0.9.5-beta.19",
19
+ "@saltcorn/mobile-app": "0.9.5-beta.19",
20
+ "@saltcorn/mobile-builder": "0.9.5-beta.19",
21
+ "@saltcorn/plugins-loader": "0.9.5-beta.19",
22
+ "@saltcorn/server": "0.9.5-beta.19",
23
23
  "cli-ux": "^5.6.7",
24
24
  "contractis": "^0.1.0",
25
25
  "dateformat": "^3.0.3",
@@ -95,6 +95,7 @@ class BuildAppCommand extends Command {
95
95
  copyTargetDir: flags.copyAppDirectory,
96
96
  user,
97
97
  buildForEmulator: flags.buildForEmulator,
98
+ appleTeamId: flags.appleTeamId,
98
99
  tenantAppName: flags.tenantAppName,
99
100
  });
100
101
  process.exit(await builder.build());
@@ -221,6 +222,11 @@ BuildAppCommand.flags = {
221
222
  description:
222
223
  "build without '--device', generates no .ipa file so that iOS apps can be build without developer accounts",
223
224
  }),
225
+ appleTeamId: flags.string({
226
+ name: "apple team id",
227
+ string: "appleTeamId",
228
+ description: "Apple team id for iOS builds",
229
+ }),
224
230
  };
225
231
 
226
232
  module.exports = BuildAppCommand;