@saltcorn/cli 0.8.0-beta.0 → 0.8.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -35
- package/oclif.manifest.json +1 -1
- package/package.json +6 -6
- package/src/commands/release.js +1 -0
- package/src/commands/run-tests.js +23 -4
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.8.0-beta.
|
|
23
|
+
@saltcorn/cli/0.8.0-beta.1 darwin-arm64 node-v16.18.1
|
|
24
24
|
$ saltcorn --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ saltcorn COMMAND
|
|
@@ -79,7 +79,7 @@ OPTIONS
|
|
|
79
79
|
-f, --force force command execution
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
82
|
+
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/add-schema.js)_
|
|
83
83
|
|
|
84
84
|
## `saltcorn backup`
|
|
85
85
|
|
|
@@ -95,7 +95,7 @@ OPTIONS
|
|
|
95
95
|
-z, --zip zip format
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
98
|
+
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/backup.js)_
|
|
99
99
|
|
|
100
100
|
## `saltcorn build-app`
|
|
101
101
|
|
|
@@ -123,7 +123,7 @@ OPTIONS
|
|
|
123
123
|
tenant
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
_See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
126
|
+
_See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/build-app.js)_
|
|
127
127
|
|
|
128
128
|
## `saltcorn configuration-check`
|
|
129
129
|
|
|
@@ -137,7 +137,7 @@ OPTIONS
|
|
|
137
137
|
-t, --tenant=tenant tenant
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
_See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
140
|
+
_See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/configuration-check.js)_
|
|
141
141
|
|
|
142
142
|
## `saltcorn configuration-check-backups FILES`
|
|
143
143
|
|
|
@@ -151,7 +151,7 @@ ARGUMENTS
|
|
|
151
151
|
FILES backup file to check. can be repeated, e.g. with *
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
_See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
154
|
+
_See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/configuration-check-backups.js)_
|
|
155
155
|
|
|
156
156
|
## `saltcorn create-tenant TENANT`
|
|
157
157
|
|
|
@@ -169,7 +169,7 @@ OPTIONS
|
|
|
169
169
|
-e, --email=email Email of owner of tenant
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
-
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
172
|
+
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/create-tenant.js)_
|
|
173
173
|
|
|
174
174
|
## `saltcorn create-user`
|
|
175
175
|
|
|
@@ -187,7 +187,7 @@ OPTIONS
|
|
|
187
187
|
-t, --tenant=tenant tenant
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
-
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
190
|
+
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/create-user.js)_
|
|
191
191
|
|
|
192
192
|
## `saltcorn delete-tenants`
|
|
193
193
|
|
|
@@ -198,7 +198,7 @@ USAGE
|
|
|
198
198
|
$ saltcorn delete-tenants
|
|
199
199
|
```
|
|
200
200
|
|
|
201
|
-
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
201
|
+
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/delete-tenants.js)_
|
|
202
202
|
|
|
203
203
|
## `saltcorn delete-user USER_EMAIL`
|
|
204
204
|
|
|
@@ -219,7 +219,7 @@ DESCRIPTION
|
|
|
219
219
|
Command deletes the user specified by USER_EMAIL.
|
|
220
220
|
```
|
|
221
221
|
|
|
222
|
-
_See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
222
|
+
_See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/delete-user.js)_
|
|
223
223
|
|
|
224
224
|
## `saltcorn fixtures`
|
|
225
225
|
|
|
@@ -238,7 +238,7 @@ DESCRIPTION
|
|
|
238
238
|
This manual step it is never required for users and rarely required for developers
|
|
239
239
|
```
|
|
240
240
|
|
|
241
|
-
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
241
|
+
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/fixtures.js)_
|
|
242
242
|
|
|
243
243
|
## `saltcorn get-cfg KEY`
|
|
244
244
|
|
|
@@ -256,7 +256,7 @@ OPTIONS
|
|
|
256
256
|
-t, --tenant=tenant tenant
|
|
257
257
|
```
|
|
258
258
|
|
|
259
|
-
_See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
259
|
+
_See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/get-cfg.js)_
|
|
260
260
|
|
|
261
261
|
## `saltcorn help [COMMAND]`
|
|
262
262
|
|
|
@@ -294,7 +294,7 @@ ALIASES
|
|
|
294
294
|
$ saltcorn paths
|
|
295
295
|
```
|
|
296
296
|
|
|
297
|
-
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
297
|
+
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/info.js)_
|
|
298
298
|
|
|
299
299
|
## `saltcorn inspect TYPE [NAME]`
|
|
300
300
|
|
|
@@ -312,7 +312,7 @@ OPTIONS
|
|
|
312
312
|
-t, --tenant=tenant tenant
|
|
313
313
|
```
|
|
314
314
|
|
|
315
|
-
_See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
315
|
+
_See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/inspect.js)_
|
|
316
316
|
|
|
317
317
|
## `saltcorn install-pack`
|
|
318
318
|
|
|
@@ -328,7 +328,7 @@ OPTIONS
|
|
|
328
328
|
-t, --tenant=tenant tenant
|
|
329
329
|
```
|
|
330
330
|
|
|
331
|
-
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
331
|
+
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/install-pack.js)_
|
|
332
332
|
|
|
333
333
|
## `saltcorn install-plugin`
|
|
334
334
|
|
|
@@ -344,7 +344,7 @@ OPTIONS
|
|
|
344
344
|
-t, --tenant=tenant tenant
|
|
345
345
|
```
|
|
346
346
|
|
|
347
|
-
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
347
|
+
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/install-plugin.js)_
|
|
348
348
|
|
|
349
349
|
## `saltcorn list-tenants`
|
|
350
350
|
|
|
@@ -355,7 +355,7 @@ USAGE
|
|
|
355
355
|
$ saltcorn list-tenants
|
|
356
356
|
```
|
|
357
357
|
|
|
358
|
-
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
358
|
+
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/list-tenants.js)_
|
|
359
359
|
|
|
360
360
|
## `saltcorn localize-plugin PLUGIN PATH`
|
|
361
361
|
|
|
@@ -373,7 +373,7 @@ OPTIONS
|
|
|
373
373
|
-t, --tenant=tenant tenant
|
|
374
374
|
```
|
|
375
375
|
|
|
376
|
-
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
376
|
+
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/localize-plugin.js)_
|
|
377
377
|
|
|
378
378
|
## `saltcorn make-migration`
|
|
379
379
|
|
|
@@ -389,7 +389,7 @@ DESCRIPTION
|
|
|
389
389
|
unless you are a developer.
|
|
390
390
|
```
|
|
391
391
|
|
|
392
|
-
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
392
|
+
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/make-migration.js)_
|
|
393
393
|
|
|
394
394
|
## `saltcorn saltcorn migrate`
|
|
395
395
|
|
|
@@ -411,7 +411,7 @@ DESCRIPTION
|
|
|
411
411
|
servers and need to control when the migrations are run.
|
|
412
412
|
```
|
|
413
413
|
|
|
414
|
-
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
414
|
+
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/migrate.js)_
|
|
415
415
|
|
|
416
416
|
## `saltcorn modify-user USER_EMAIL`
|
|
417
417
|
|
|
@@ -440,7 +440,7 @@ DESCRIPTION
|
|
|
440
440
|
NOTE that -a and -r role (--role=role) can give conflict.
|
|
441
441
|
```
|
|
442
442
|
|
|
443
|
-
_See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
443
|
+
_See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/modify-user.js)_
|
|
444
444
|
|
|
445
445
|
## `saltcorn plugins`
|
|
446
446
|
|
|
@@ -467,7 +467,7 @@ EXAMPLES
|
|
|
467
467
|
plugins -u -f - force plugin update
|
|
468
468
|
```
|
|
469
469
|
|
|
470
|
-
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
470
|
+
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/plugins.js)_
|
|
471
471
|
|
|
472
472
|
## `saltcorn release VERSION`
|
|
473
473
|
|
|
@@ -481,7 +481,7 @@ ARGUMENTS
|
|
|
481
481
|
VERSION New version number
|
|
482
482
|
```
|
|
483
483
|
|
|
484
|
-
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
484
|
+
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/release.js)_
|
|
485
485
|
|
|
486
486
|
## `saltcorn reset-schema`
|
|
487
487
|
|
|
@@ -500,7 +500,7 @@ DESCRIPTION
|
|
|
500
500
|
This will delete all existing information
|
|
501
501
|
```
|
|
502
502
|
|
|
503
|
-
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
503
|
+
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/reset-schema.js)_
|
|
504
504
|
|
|
505
505
|
## `saltcorn restore FILE`
|
|
506
506
|
|
|
@@ -517,7 +517,7 @@ OPTIONS
|
|
|
517
517
|
-t, --tenant=tenant tenant
|
|
518
518
|
```
|
|
519
519
|
|
|
520
|
-
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
520
|
+
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/restore.js)_
|
|
521
521
|
|
|
522
522
|
## `saltcorn rm-tenant`
|
|
523
523
|
|
|
@@ -536,7 +536,7 @@ DESCRIPTION
|
|
|
536
536
|
It recommended to make backup of tenant before perform this command.
|
|
537
537
|
```
|
|
538
538
|
|
|
539
|
-
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
539
|
+
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/rm-tenant.js)_
|
|
540
540
|
|
|
541
541
|
## `saltcorn run-benchmark [BASEURL]`
|
|
542
542
|
|
|
@@ -555,7 +555,7 @@ OPTIONS
|
|
|
555
555
|
-t, --token=token API Token for reporting results
|
|
556
556
|
```
|
|
557
557
|
|
|
558
|
-
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
558
|
+
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/run-benchmark.js)_
|
|
559
559
|
|
|
560
560
|
## `saltcorn run-tests [PACKAGE]`
|
|
561
561
|
|
|
@@ -570,12 +570,14 @@ ARGUMENTS
|
|
|
570
570
|
|
|
571
571
|
OPTIONS
|
|
572
572
|
-c, --coverage Coverage
|
|
573
|
+
-l, --listTests List tests
|
|
573
574
|
-t, --testFilter=testFilter Filter tests by suite or test name
|
|
575
|
+
-v, --verbose Verbose
|
|
574
576
|
--watch Watch files for changes and rerun tests related to changed files.
|
|
575
577
|
--watchAll Watch files for changes and rerun all tests.
|
|
576
578
|
```
|
|
577
579
|
|
|
578
|
-
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
580
|
+
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/run-tests.js)_
|
|
579
581
|
|
|
580
582
|
## `saltcorn scheduler`
|
|
581
583
|
|
|
@@ -589,7 +591,7 @@ OPTIONS
|
|
|
589
591
|
-v, --verbose Verbose
|
|
590
592
|
```
|
|
591
593
|
|
|
592
|
-
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
594
|
+
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/scheduler.js)_
|
|
593
595
|
|
|
594
596
|
## `saltcorn serve`
|
|
595
597
|
|
|
@@ -610,7 +612,7 @@ OPTIONS
|
|
|
610
612
|
--subdomain_offset=subdomain_offset Number of parts to remove to access subdomain in 'multi_tenant' mode
|
|
611
613
|
```
|
|
612
614
|
|
|
613
|
-
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
615
|
+
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/serve.js)_
|
|
614
616
|
|
|
615
617
|
## `saltcorn set-cfg KEY [VALUE]`
|
|
616
618
|
|
|
@@ -631,7 +633,7 @@ OPTIONS
|
|
|
631
633
|
-t, --tenant=tenant tenant
|
|
632
634
|
```
|
|
633
635
|
|
|
634
|
-
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
636
|
+
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/set-cfg.js)_
|
|
635
637
|
|
|
636
638
|
## `saltcorn setup`
|
|
637
639
|
|
|
@@ -650,7 +652,7 @@ DESCRIPTION
|
|
|
650
652
|
configuration file
|
|
651
653
|
```
|
|
652
654
|
|
|
653
|
-
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
655
|
+
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/setup.js)_
|
|
654
656
|
|
|
655
657
|
## `saltcorn setup-benchmark`
|
|
656
658
|
|
|
@@ -664,7 +666,7 @@ OPTIONS
|
|
|
664
666
|
-t, --tenant=tenant tenant
|
|
665
667
|
```
|
|
666
668
|
|
|
667
|
-
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
669
|
+
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/setup-benchmark.js)_
|
|
668
670
|
|
|
669
671
|
## `saltcorn test-plugin PATH`
|
|
670
672
|
|
|
@@ -682,7 +684,7 @@ DESCRIPTION
|
|
|
682
684
|
Extra documentation goes here
|
|
683
685
|
```
|
|
684
686
|
|
|
685
|
-
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
687
|
+
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/test-plugin.js)_
|
|
686
688
|
|
|
687
689
|
## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
|
|
688
690
|
|
|
@@ -699,5 +701,5 @@ ARGUMENTS
|
|
|
699
701
|
TENANT tenant name
|
|
700
702
|
```
|
|
701
703
|
|
|
702
|
-
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.
|
|
704
|
+
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0-beta.1/src/commands/transform-field.js)_
|
|
703
705
|
<!-- commandsstop -->
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.8.0-beta.0","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 zip","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"output":{"name":"output","type":"option","char":"o","description":"output filename"},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"zip":{"name":"zip","type":"boolean","char":"z","description":"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"},"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"},"appFileName":{"name":"appFileName","type":"option","char":"a","description":"If set, the copied app will get this name"},"serverURL":{"name":"serverURL","type":"option","char":"s","description":"URL to a saltcorn server"},"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":[]},"configuration-check-backups":{"id":"configuration-check-backups","description":"Check configuration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"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":{"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":true}]},"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","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":{},"args":[]},"localize-plugin":{"id":"localize-plugin","description":"Convert plugin to local plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"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","required":true}]},"make-migration":{"id":"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":[]},"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":[]},"release":{"id":"release","description":"Release a new saltcorn version","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"version","description":"New version number","required":true}]},"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-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},"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}},"args":[{"name":"package","description":"which package to run tests for"}]},"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":true},{"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":[]},"test-plugin":{"id":"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}]},"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}]}}}
|
|
1
|
+
{"version":"0.8.0-beta.1","commands":{"add-schema":{"id":"add-schema","description":"Add Saltcorn schema to existing database","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force command execution","allowNo":false}},"args":[]},"backup":{"id":"backup","description":"Backup the PostgreSQL database to a file with pg_dump or zip","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"output":{"name":"output","type":"option","char":"o","description":"output filename"},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"zip":{"name":"zip","type":"boolean","char":"z","description":"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"},"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"},"appFileName":{"name":"appFileName","type":"option","char":"a","description":"If set, the copied app will get this name"},"serverURL":{"name":"serverURL","type":"option","char":"s","description":"URL to a saltcorn server"},"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":[]},"configuration-check-backups":{"id":"configuration-check-backups","description":"Check configuration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"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":{"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":true}]},"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","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":{},"args":[]},"localize-plugin":{"id":"localize-plugin","description":"Convert plugin to local plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"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","required":true}]},"make-migration":{"id":"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":[]},"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":[]},"release":{"id":"release","description":"Release a new saltcorn version","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"version","description":"New version number","required":true}]},"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-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},"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}},"args":[{"name":"package","description":"which package to run tests for"}]},"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":true},{"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":[]},"test-plugin":{"id":"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}]},"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}]}}}
|
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.8.0-beta.
|
|
5
|
+
"version": "0.8.0-beta.1",
|
|
6
6
|
"author": "Tom Nielsen @glutamate",
|
|
7
7
|
"bin": {
|
|
8
8
|
"saltcorn": "./bin/saltcorn"
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"@oclif/config": "^1.18.3",
|
|
14
14
|
"@oclif/plugin-plugins": "^2.1.0",
|
|
15
15
|
"@oclif/plugin-help": "^3.3.1",
|
|
16
|
-
"@saltcorn/admin-models": "0.8.0-beta.
|
|
17
|
-
"@saltcorn/data": "0.8.0-beta.
|
|
18
|
-
"@saltcorn/mobile-app": "0.8.0-beta.
|
|
19
|
-
"@saltcorn/mobile-builder": "0.8.0-beta.
|
|
20
|
-
"@saltcorn/server": "0.8.0-beta.
|
|
16
|
+
"@saltcorn/admin-models": "0.8.0-beta.1",
|
|
17
|
+
"@saltcorn/data": "0.8.0-beta.1",
|
|
18
|
+
"@saltcorn/mobile-app": "0.8.0-beta.1",
|
|
19
|
+
"@saltcorn/mobile-builder": "0.8.0-beta.1",
|
|
20
|
+
"@saltcorn/server": "0.8.0-beta.1",
|
|
21
21
|
"cli-ux": "^5.6.7",
|
|
22
22
|
"contractis": "^0.1.0",
|
|
23
23
|
"dateformat": "^3.0.3",
|
package/src/commands/release.js
CHANGED
|
@@ -28,6 +28,7 @@ class ReleaseCommand extends Command {
|
|
|
28
28
|
"@saltcorn/postgres": { dir: "postgres", publish: true },
|
|
29
29
|
"@saltcorn/types": { dir: "saltcorn-types", publish: true },
|
|
30
30
|
"@saltcorn/builder": { dir: "saltcorn-builder", publish: true },
|
|
31
|
+
"@saltcorn/filemanager": { dir: "filemanager", publish: true },
|
|
31
32
|
"@saltcorn/data": { dir: "saltcorn-data", publish: true },
|
|
32
33
|
"@saltcorn/admin-models": {
|
|
33
34
|
dir: "saltcorn-admin-models",
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
// File: run-tests.js
|
|
1
2
|
/**
|
|
3
|
+
* run-tests
|
|
2
4
|
* @category saltcorn-cli
|
|
3
5
|
* @module commands/run-tests
|
|
4
6
|
*/
|
|
@@ -32,6 +34,12 @@ class RunTestsCommand extends Command {
|
|
|
32
34
|
return res;
|
|
33
35
|
}
|
|
34
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Prepare and start Test Instance of Saltcorn server
|
|
39
|
+
* @param env - environment variables
|
|
40
|
+
* @param port - ip port to start server
|
|
41
|
+
* @returns {Promise<ChildProcess>}
|
|
42
|
+
*/
|
|
35
43
|
async prepareTestServer(env, port) {
|
|
36
44
|
let serverEnv = JSON.parse(JSON.stringify(env));
|
|
37
45
|
serverEnv.SQLITE_FILEPATH = "/tmp/sctestdb_server";
|
|
@@ -53,7 +61,7 @@ class RunTestsCommand extends Command {
|
|
|
53
61
|
}
|
|
54
62
|
|
|
55
63
|
/**
|
|
56
|
-
*
|
|
64
|
+
* RUN End To End Text (E2E) using npm
|
|
57
65
|
* @param {*} env
|
|
58
66
|
* @returns {Promise<void>}
|
|
59
67
|
*/
|
|
@@ -72,8 +80,9 @@ class RunTestsCommand extends Command {
|
|
|
72
80
|
}
|
|
73
81
|
|
|
74
82
|
/**
|
|
75
|
-
*
|
|
83
|
+
* Remote Query tests run
|
|
76
84
|
* @param {*} env
|
|
85
|
+
* @param jestParams
|
|
77
86
|
*/
|
|
78
87
|
async remoteQueryTest(env, jestParams) {
|
|
79
88
|
const port = 3000;
|
|
@@ -89,7 +98,7 @@ class RunTestsCommand extends Command {
|
|
|
89
98
|
if (res.status !== 0) this.exit(res.status);
|
|
90
99
|
}
|
|
91
100
|
/**
|
|
92
|
-
*
|
|
101
|
+
* Validate CLI Call
|
|
93
102
|
* @param {object} args
|
|
94
103
|
* @param {object} flags
|
|
95
104
|
* @throws {Error}
|
|
@@ -109,12 +118,13 @@ class RunTestsCommand extends Command {
|
|
|
109
118
|
}
|
|
110
119
|
|
|
111
120
|
/**
|
|
121
|
+
* Run
|
|
112
122
|
* @returns {Promise<void>}
|
|
113
123
|
*/
|
|
114
124
|
async run() {
|
|
115
125
|
const { args, flags } = this.parse(RunTestsCommand);
|
|
116
126
|
this.validateCall(args, flags);
|
|
117
|
-
|
|
127
|
+
let env;
|
|
118
128
|
|
|
119
129
|
const db = require("@saltcorn/data/db");
|
|
120
130
|
if (db.isSQLite) {
|
|
@@ -134,10 +144,17 @@ class RunTestsCommand extends Command {
|
|
|
134
144
|
await fixtures();
|
|
135
145
|
await db.close();
|
|
136
146
|
let jestParams = ["--"];
|
|
147
|
+
// toddo add --logHeapUsage
|
|
137
148
|
if (flags.coverage) {
|
|
138
149
|
jestParams.push("--coverage");
|
|
139
150
|
jestParams.push("--coverageProvider", "v8");
|
|
140
151
|
}
|
|
152
|
+
if (flags.listTests) {
|
|
153
|
+
jestParams.push("--listTests");
|
|
154
|
+
}
|
|
155
|
+
if (flags.verbose) {
|
|
156
|
+
jestParams.push("--verbose");
|
|
157
|
+
}
|
|
141
158
|
if (flags.testFilter) {
|
|
142
159
|
jestParams.push("-t", flags.testFilter);
|
|
143
160
|
}
|
|
@@ -187,6 +204,8 @@ RunTestsCommand.description = `Run test suites`;
|
|
|
187
204
|
*/
|
|
188
205
|
RunTestsCommand.flags = {
|
|
189
206
|
coverage: flags.boolean({ char: "c", description: "Coverage" }),
|
|
207
|
+
listTests: flags.boolean({ char: "l", description: "List tests" }),
|
|
208
|
+
verbose: flags.boolean({ char: "v", description: "Verbose" }),
|
|
190
209
|
testFilter: flags.string({
|
|
191
210
|
char: "t",
|
|
192
211
|
description: "Filter tests by suite or test name",
|