@saltcorn/cli 0.8.0-beta.4 → 0.8.0
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/npm-shrinkwrap.json +244 -257
- package/oclif.manifest.json +1 -1
- package/package.json +6 -6
- package/src/commands/configuration-check.js +7 -3
- package/src/commands/create-tenant.js +10 -4
- package/src/commands/delete-user.js +29 -33
- package/src/commands/modify-user.js +28 -23
- package/src/commands/plugins.js +7 -5
- package/src/commands/release.js +6 -1
- package/src/commands/run-tests.js +4 -0
- package/src/commands/setup.js +2 -2
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
|
|
23
|
+
@saltcorn/cli/0.8.0 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
|
|
82
|
+
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/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
|
|
98
|
+
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/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
|
|
126
|
+
_See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/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
|
|
140
|
+
_See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/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
|
|
154
|
+
_See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/configuration-check-backups.js)_
|
|
155
155
|
|
|
156
156
|
## `saltcorn create-tenant TENANT`
|
|
157
157
|
|
|
@@ -167,9 +167,10 @@ ARGUMENTS
|
|
|
167
167
|
OPTIONS
|
|
168
168
|
-d, --description=description Description of tenant
|
|
169
169
|
-e, --email=email Email of owner of tenant
|
|
170
|
+
--url=url Url of tenant
|
|
170
171
|
```
|
|
171
172
|
|
|
172
|
-
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
173
|
+
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/create-tenant.js)_
|
|
173
174
|
|
|
174
175
|
## `saltcorn create-user`
|
|
175
176
|
|
|
@@ -187,7 +188,7 @@ OPTIONS
|
|
|
187
188
|
-t, --tenant=tenant tenant
|
|
188
189
|
```
|
|
189
190
|
|
|
190
|
-
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
191
|
+
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/create-user.js)_
|
|
191
192
|
|
|
192
193
|
## `saltcorn delete-tenants`
|
|
193
194
|
|
|
@@ -198,7 +199,7 @@ USAGE
|
|
|
198
199
|
$ saltcorn delete-tenants
|
|
199
200
|
```
|
|
200
201
|
|
|
201
|
-
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
202
|
+
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/delete-tenants.js)_
|
|
202
203
|
|
|
203
204
|
## `saltcorn delete-user USER_EMAIL`
|
|
204
205
|
|
|
@@ -219,7 +220,7 @@ DESCRIPTION
|
|
|
219
220
|
Command deletes the user specified by USER_EMAIL.
|
|
220
221
|
```
|
|
221
222
|
|
|
222
|
-
_See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
223
|
+
_See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/delete-user.js)_
|
|
223
224
|
|
|
224
225
|
## `saltcorn fixtures`
|
|
225
226
|
|
|
@@ -238,7 +239,7 @@ DESCRIPTION
|
|
|
238
239
|
This manual step it is never required for users and rarely required for developers
|
|
239
240
|
```
|
|
240
241
|
|
|
241
|
-
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
242
|
+
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/fixtures.js)_
|
|
242
243
|
|
|
243
244
|
## `saltcorn get-cfg KEY`
|
|
244
245
|
|
|
@@ -256,7 +257,7 @@ OPTIONS
|
|
|
256
257
|
-t, --tenant=tenant tenant
|
|
257
258
|
```
|
|
258
259
|
|
|
259
|
-
_See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
260
|
+
_See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/get-cfg.js)_
|
|
260
261
|
|
|
261
262
|
## `saltcorn help [COMMAND]`
|
|
262
263
|
|
|
@@ -294,7 +295,7 @@ ALIASES
|
|
|
294
295
|
$ saltcorn paths
|
|
295
296
|
```
|
|
296
297
|
|
|
297
|
-
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
298
|
+
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/info.js)_
|
|
298
299
|
|
|
299
300
|
## `saltcorn inspect TYPE [NAME]`
|
|
300
301
|
|
|
@@ -312,7 +313,7 @@ OPTIONS
|
|
|
312
313
|
-t, --tenant=tenant tenant
|
|
313
314
|
```
|
|
314
315
|
|
|
315
|
-
_See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
316
|
+
_See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/inspect.js)_
|
|
316
317
|
|
|
317
318
|
## `saltcorn install-pack`
|
|
318
319
|
|
|
@@ -328,7 +329,7 @@ OPTIONS
|
|
|
328
329
|
-t, --tenant=tenant tenant
|
|
329
330
|
```
|
|
330
331
|
|
|
331
|
-
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
332
|
+
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/install-pack.js)_
|
|
332
333
|
|
|
333
334
|
## `saltcorn install-plugin`
|
|
334
335
|
|
|
@@ -344,7 +345,7 @@ OPTIONS
|
|
|
344
345
|
-t, --tenant=tenant tenant
|
|
345
346
|
```
|
|
346
347
|
|
|
347
|
-
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
348
|
+
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/install-plugin.js)_
|
|
348
349
|
|
|
349
350
|
## `saltcorn list-tenants`
|
|
350
351
|
|
|
@@ -355,7 +356,7 @@ USAGE
|
|
|
355
356
|
$ saltcorn list-tenants
|
|
356
357
|
```
|
|
357
358
|
|
|
358
|
-
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
359
|
+
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/list-tenants.js)_
|
|
359
360
|
|
|
360
361
|
## `saltcorn localize-plugin PLUGIN PATH`
|
|
361
362
|
|
|
@@ -373,7 +374,7 @@ OPTIONS
|
|
|
373
374
|
-t, --tenant=tenant tenant
|
|
374
375
|
```
|
|
375
376
|
|
|
376
|
-
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
377
|
+
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/localize-plugin.js)_
|
|
377
378
|
|
|
378
379
|
## `saltcorn make-migration`
|
|
379
380
|
|
|
@@ -389,7 +390,7 @@ DESCRIPTION
|
|
|
389
390
|
unless you are a developer.
|
|
390
391
|
```
|
|
391
392
|
|
|
392
|
-
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
393
|
+
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/make-migration.js)_
|
|
393
394
|
|
|
394
395
|
## `saltcorn saltcorn migrate`
|
|
395
396
|
|
|
@@ -411,7 +412,7 @@ DESCRIPTION
|
|
|
411
412
|
servers and need to control when the migrations are run.
|
|
412
413
|
```
|
|
413
414
|
|
|
414
|
-
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
415
|
+
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/migrate.js)_
|
|
415
416
|
|
|
416
417
|
## `saltcorn modify-user USER_EMAIL`
|
|
417
418
|
|
|
@@ -440,7 +441,7 @@ DESCRIPTION
|
|
|
440
441
|
NOTE that -a and -r role (--role=role) can give conflict.
|
|
441
442
|
```
|
|
442
443
|
|
|
443
|
-
_See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
444
|
+
_See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/modify-user.js)_
|
|
444
445
|
|
|
445
446
|
## `saltcorn plugins`
|
|
446
447
|
|
|
@@ -467,7 +468,7 @@ EXAMPLES
|
|
|
467
468
|
plugins -u -f - force plugin update
|
|
468
469
|
```
|
|
469
470
|
|
|
470
|
-
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
471
|
+
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/plugins.js)_
|
|
471
472
|
|
|
472
473
|
## `saltcorn release VERSION`
|
|
473
474
|
|
|
@@ -481,7 +482,7 @@ ARGUMENTS
|
|
|
481
482
|
VERSION New version number
|
|
482
483
|
```
|
|
483
484
|
|
|
484
|
-
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
485
|
+
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/release.js)_
|
|
485
486
|
|
|
486
487
|
## `saltcorn reset-schema`
|
|
487
488
|
|
|
@@ -500,7 +501,7 @@ DESCRIPTION
|
|
|
500
501
|
This will delete all existing information
|
|
501
502
|
```
|
|
502
503
|
|
|
503
|
-
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
504
|
+
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/reset-schema.js)_
|
|
504
505
|
|
|
505
506
|
## `saltcorn restore FILE`
|
|
506
507
|
|
|
@@ -517,7 +518,7 @@ OPTIONS
|
|
|
517
518
|
-t, --tenant=tenant tenant
|
|
518
519
|
```
|
|
519
520
|
|
|
520
|
-
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
521
|
+
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/restore.js)_
|
|
521
522
|
|
|
522
523
|
## `saltcorn rm-tenant`
|
|
523
524
|
|
|
@@ -536,7 +537,7 @@ DESCRIPTION
|
|
|
536
537
|
It recommended to make backup of tenant before perform this command.
|
|
537
538
|
```
|
|
538
539
|
|
|
539
|
-
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
540
|
+
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/rm-tenant.js)_
|
|
540
541
|
|
|
541
542
|
## `saltcorn run-benchmark [BASEURL]`
|
|
542
543
|
|
|
@@ -555,7 +556,7 @@ OPTIONS
|
|
|
555
556
|
-t, --token=token API Token for reporting results
|
|
556
557
|
```
|
|
557
558
|
|
|
558
|
-
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
559
|
+
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/run-benchmark.js)_
|
|
559
560
|
|
|
560
561
|
## `saltcorn run-tests [PACKAGE]`
|
|
561
562
|
|
|
@@ -570,6 +571,7 @@ ARGUMENTS
|
|
|
570
571
|
|
|
571
572
|
OPTIONS
|
|
572
573
|
-c, --coverage Coverage
|
|
574
|
+
-d, --detectOpenHandles Detect Open Handles
|
|
573
575
|
-l, --listTests List tests
|
|
574
576
|
-t, --testFilter=testFilter Filter tests by suite or test name
|
|
575
577
|
-v, --verbose Verbose
|
|
@@ -577,7 +579,7 @@ OPTIONS
|
|
|
577
579
|
--watchAll Watch files for changes and rerun all tests.
|
|
578
580
|
```
|
|
579
581
|
|
|
580
|
-
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
582
|
+
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/run-tests.js)_
|
|
581
583
|
|
|
582
584
|
## `saltcorn scheduler`
|
|
583
585
|
|
|
@@ -591,7 +593,7 @@ OPTIONS
|
|
|
591
593
|
-v, --verbose Verbose
|
|
592
594
|
```
|
|
593
595
|
|
|
594
|
-
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
596
|
+
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/scheduler.js)_
|
|
595
597
|
|
|
596
598
|
## `saltcorn serve`
|
|
597
599
|
|
|
@@ -612,7 +614,7 @@ OPTIONS
|
|
|
612
614
|
--subdomain_offset=subdomain_offset Number of parts to remove to access subdomain in 'multi_tenant' mode
|
|
613
615
|
```
|
|
614
616
|
|
|
615
|
-
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
617
|
+
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/serve.js)_
|
|
616
618
|
|
|
617
619
|
## `saltcorn set-cfg KEY [VALUE]`
|
|
618
620
|
|
|
@@ -633,7 +635,7 @@ OPTIONS
|
|
|
633
635
|
-t, --tenant=tenant tenant
|
|
634
636
|
```
|
|
635
637
|
|
|
636
|
-
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
638
|
+
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/set-cfg.js)_
|
|
637
639
|
|
|
638
640
|
## `saltcorn setup`
|
|
639
641
|
|
|
@@ -652,7 +654,7 @@ DESCRIPTION
|
|
|
652
654
|
configuration file
|
|
653
655
|
```
|
|
654
656
|
|
|
655
|
-
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
657
|
+
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/setup.js)_
|
|
656
658
|
|
|
657
659
|
## `saltcorn setup-benchmark`
|
|
658
660
|
|
|
@@ -666,7 +668,7 @@ OPTIONS
|
|
|
666
668
|
-t, --tenant=tenant tenant
|
|
667
669
|
```
|
|
668
670
|
|
|
669
|
-
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
671
|
+
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/setup-benchmark.js)_
|
|
670
672
|
|
|
671
673
|
## `saltcorn test-plugin PATH`
|
|
672
674
|
|
|
@@ -684,7 +686,7 @@ DESCRIPTION
|
|
|
684
686
|
Extra documentation goes here
|
|
685
687
|
```
|
|
686
688
|
|
|
687
|
-
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
689
|
+
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/test-plugin.js)_
|
|
688
690
|
|
|
689
691
|
## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
|
|
690
692
|
|
|
@@ -701,5 +703,5 @@ ARGUMENTS
|
|
|
701
703
|
TENANT tenant name
|
|
702
704
|
```
|
|
703
705
|
|
|
704
|
-
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0
|
|
706
|
+
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.8.0/src/commands/transform-field.js)_
|
|
705
707
|
<!-- commandsstop -->
|