@saltcorn/cli 0.6.1-beta.0 → 0.6.2-beta.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 +32 -28
- package/npm-shrinkwrap.json +320 -598
- package/oclif.manifest.json +1 -1
- package/package.json +13 -10
- package/src/commands/add-schema.js +15 -0
- package/src/commands/backup.js +18 -0
- package/src/commands/create-tenant.js +21 -0
- package/src/commands/create-user.js +18 -0
- package/src/commands/fixtures.js +18 -0
- package/src/commands/info.js +29 -0
- package/src/commands/install-pack.js +18 -0
- package/src/commands/install-plugin.js +18 -0
- package/src/commands/list-tenants.js +19 -0
- package/src/commands/localize-plugin.js +38 -12
- package/src/commands/make-migration.js +21 -0
- package/src/commands/migrate.js +22 -1
- package/src/commands/plugins.js +22 -0
- package/src/commands/release.js +36 -1
- package/src/commands/reset-schema.js +18 -0
- package/src/commands/restore.js +34 -0
- package/src/commands/rm-tenant.js +21 -0
- package/src/commands/run-benchmark.js +36 -0
- package/src/commands/run-tests.js +45 -0
- package/src/commands/scheduler.js +19 -0
- package/src/commands/serve.js +24 -1
- package/src/commands/set-cfg.js +23 -0
- package/src/commands/setup-benchmark.js +23 -0
- package/src/commands/setup.js +82 -0
- package/src/commands/test-plugin.js +23 -0
- package/src/commands/transform-field.js +21 -0
- package/src/common.js +18 -0
- package/src/index.js +33 -0
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.6.
|
|
23
|
+
@saltcorn/cli/0.6.2-beta.0 darwin-x64 node-v14.16.1
|
|
24
24
|
$ saltcorn --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ saltcorn COMMAND
|
|
@@ -68,7 +68,7 @@ USAGE
|
|
|
68
68
|
$ saltcorn add-schema
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
71
|
+
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/add-schema.js)_
|
|
72
72
|
|
|
73
73
|
## `saltcorn backup`
|
|
74
74
|
|
|
@@ -84,7 +84,7 @@ OPTIONS
|
|
|
84
84
|
-z, --zip zip format
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
87
|
+
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/backup.js)_
|
|
88
88
|
|
|
89
89
|
## `saltcorn create-tenant TENANT`
|
|
90
90
|
|
|
@@ -102,7 +102,7 @@ OPTIONS
|
|
|
102
102
|
-e, --email=email Email of owner of tenant
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
105
|
+
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/create-tenant.js)_
|
|
106
106
|
|
|
107
107
|
## `saltcorn create-user`
|
|
108
108
|
|
|
@@ -120,7 +120,7 @@ OPTIONS
|
|
|
120
120
|
-t, --tenant=tenant tenant
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
123
|
+
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/create-user.js)_
|
|
124
124
|
|
|
125
125
|
## `saltcorn fixtures`
|
|
126
126
|
|
|
@@ -138,7 +138,7 @@ DESCRIPTION
|
|
|
138
138
|
This manual step it is never required for users and rarely required for developers
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
141
|
+
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/fixtures.js)_
|
|
142
142
|
|
|
143
143
|
## `saltcorn help [COMMAND]`
|
|
144
144
|
|
|
@@ -155,7 +155,7 @@ OPTIONS
|
|
|
155
155
|
--all see all commands in CLI
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.
|
|
158
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.7/src/commands/help.ts)_
|
|
159
159
|
|
|
160
160
|
## `saltcorn info`
|
|
161
161
|
|
|
@@ -176,7 +176,7 @@ ALIASES
|
|
|
176
176
|
$ saltcorn paths
|
|
177
177
|
```
|
|
178
178
|
|
|
179
|
-
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
179
|
+
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/info.js)_
|
|
180
180
|
|
|
181
181
|
## `saltcorn install-pack`
|
|
182
182
|
|
|
@@ -192,7 +192,7 @@ OPTIONS
|
|
|
192
192
|
-t, --tenant=tenant tenant
|
|
193
193
|
```
|
|
194
194
|
|
|
195
|
-
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
195
|
+
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/install-pack.js)_
|
|
196
196
|
|
|
197
197
|
## `saltcorn install-plugin`
|
|
198
198
|
|
|
@@ -208,7 +208,7 @@ OPTIONS
|
|
|
208
208
|
-t, --tenant=tenant tenant
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
-
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
211
|
+
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/install-plugin.js)_
|
|
212
212
|
|
|
213
213
|
## `saltcorn list-tenants`
|
|
214
214
|
|
|
@@ -219,7 +219,7 @@ USAGE
|
|
|
219
219
|
$ saltcorn list-tenants
|
|
220
220
|
```
|
|
221
221
|
|
|
222
|
-
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
222
|
+
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/list-tenants.js)_
|
|
223
223
|
|
|
224
224
|
## `saltcorn localize-plugin PLUGIN PATH`
|
|
225
225
|
|
|
@@ -232,9 +232,12 @@ USAGE
|
|
|
232
232
|
ARGUMENTS
|
|
233
233
|
PLUGIN Current plugin name
|
|
234
234
|
PATH path to local plugin
|
|
235
|
+
|
|
236
|
+
OPTIONS
|
|
237
|
+
-t, --tenant=tenant tenant
|
|
235
238
|
```
|
|
236
239
|
|
|
237
|
-
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
240
|
+
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/localize-plugin.js)_
|
|
238
241
|
|
|
239
242
|
## `saltcorn make-migration`
|
|
240
243
|
|
|
@@ -250,7 +253,7 @@ DESCRIPTION
|
|
|
250
253
|
unless you are a developer.
|
|
251
254
|
```
|
|
252
255
|
|
|
253
|
-
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
256
|
+
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/make-migration.js)_
|
|
254
257
|
|
|
255
258
|
## `saltcorn saltcorn migrate`
|
|
256
259
|
|
|
@@ -272,7 +275,7 @@ DESCRIPTION
|
|
|
272
275
|
servers and need to control when the migrations are run.
|
|
273
276
|
```
|
|
274
277
|
|
|
275
|
-
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
278
|
+
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/migrate.js)_
|
|
276
279
|
|
|
277
280
|
## `saltcorn plugins`
|
|
278
281
|
|
|
@@ -299,7 +302,7 @@ EXAMPLES
|
|
|
299
302
|
plugins -u -f - force plugin update
|
|
300
303
|
```
|
|
301
304
|
|
|
302
|
-
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
305
|
+
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/plugins.js)_
|
|
303
306
|
|
|
304
307
|
## `saltcorn release VERSION`
|
|
305
308
|
|
|
@@ -313,7 +316,7 @@ ARGUMENTS
|
|
|
313
316
|
VERSION New version number
|
|
314
317
|
```
|
|
315
318
|
|
|
316
|
-
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
319
|
+
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/release.js)_
|
|
317
320
|
|
|
318
321
|
## `saltcorn reset-schema`
|
|
319
322
|
|
|
@@ -332,7 +335,7 @@ DESCRIPTION
|
|
|
332
335
|
This will delete all existing information
|
|
333
336
|
```
|
|
334
337
|
|
|
335
|
-
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
338
|
+
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/reset-schema.js)_
|
|
336
339
|
|
|
337
340
|
## `saltcorn restore FILE`
|
|
338
341
|
|
|
@@ -349,7 +352,7 @@ OPTIONS
|
|
|
349
352
|
-t, --tenant=tenant tenant
|
|
350
353
|
```
|
|
351
354
|
|
|
352
|
-
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
355
|
+
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/restore.js)_
|
|
353
356
|
|
|
354
357
|
## `saltcorn rm-tenant TENANT`
|
|
355
358
|
|
|
@@ -363,7 +366,7 @@ ARGUMENTS
|
|
|
363
366
|
TENANT Tenant to remove
|
|
364
367
|
```
|
|
365
368
|
|
|
366
|
-
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
369
|
+
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/rm-tenant.js)_
|
|
367
370
|
|
|
368
371
|
## `saltcorn run-benchmark [BASEURL]`
|
|
369
372
|
|
|
@@ -382,7 +385,7 @@ OPTIONS
|
|
|
382
385
|
-t, --token=token API Token for reporting results
|
|
383
386
|
```
|
|
384
387
|
|
|
385
|
-
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
388
|
+
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/run-benchmark.js)_
|
|
386
389
|
|
|
387
390
|
## `saltcorn run-tests [PACKAGE]`
|
|
388
391
|
|
|
@@ -402,7 +405,7 @@ OPTIONS
|
|
|
402
405
|
--watchAll Watch files for changes and rerun all tests.
|
|
403
406
|
```
|
|
404
407
|
|
|
405
|
-
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
408
|
+
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/run-tests.js)_
|
|
406
409
|
|
|
407
410
|
## `saltcorn scheduler`
|
|
408
411
|
|
|
@@ -416,7 +419,7 @@ OPTIONS
|
|
|
416
419
|
-v, --verbose Verbose
|
|
417
420
|
```
|
|
418
421
|
|
|
419
|
-
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
422
|
+
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/scheduler.js)_
|
|
420
423
|
|
|
421
424
|
## `saltcorn serve`
|
|
422
425
|
|
|
@@ -428,6 +431,7 @@ USAGE
|
|
|
428
431
|
|
|
429
432
|
OPTIONS
|
|
430
433
|
-a, --addschema Add schema if missing
|
|
434
|
+
-d, --dev Run in dev mode and re-start on file changes
|
|
431
435
|
-n, --nomigrate No migrations
|
|
432
436
|
-p, --port=port [default: 3000] port
|
|
433
437
|
-r, --watchReaper Watch reaper
|
|
@@ -435,7 +439,7 @@ OPTIONS
|
|
|
435
439
|
-v, --verbose Verbose
|
|
436
440
|
```
|
|
437
441
|
|
|
438
|
-
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
442
|
+
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/serve.js)_
|
|
439
443
|
|
|
440
444
|
## `saltcorn set-cfg KEY VALUE`
|
|
441
445
|
|
|
@@ -454,7 +458,7 @@ OPTIONS
|
|
|
454
458
|
-t, --tenant=tenant tenant
|
|
455
459
|
```
|
|
456
460
|
|
|
457
|
-
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
461
|
+
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/set-cfg.js)_
|
|
458
462
|
|
|
459
463
|
## `saltcorn setup`
|
|
460
464
|
|
|
@@ -473,7 +477,7 @@ DESCRIPTION
|
|
|
473
477
|
configuration file
|
|
474
478
|
```
|
|
475
479
|
|
|
476
|
-
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
480
|
+
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/setup.js)_
|
|
477
481
|
|
|
478
482
|
## `saltcorn setup-benchmark`
|
|
479
483
|
|
|
@@ -487,7 +491,7 @@ OPTIONS
|
|
|
487
491
|
-t, --tenant=tenant tenant
|
|
488
492
|
```
|
|
489
493
|
|
|
490
|
-
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
494
|
+
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/setup-benchmark.js)_
|
|
491
495
|
|
|
492
496
|
## `saltcorn test-plugin PATH`
|
|
493
497
|
|
|
@@ -505,7 +509,7 @@ DESCRIPTION
|
|
|
505
509
|
Extra documentation goes here
|
|
506
510
|
```
|
|
507
511
|
|
|
508
|
-
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
512
|
+
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/test-plugin.js)_
|
|
509
513
|
|
|
510
514
|
## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
|
|
511
515
|
|
|
@@ -522,5 +526,5 @@ ARGUMENTS
|
|
|
522
526
|
TENANT tenant name
|
|
523
527
|
```
|
|
524
528
|
|
|
525
|
-
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
529
|
+
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/transform-field.js)_
|
|
526
530
|
<!-- commandsstop -->
|