@saltcorn/cli 0.8.7 → 0.8.8-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 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.7 linux-x64 node-v18.7.0
23
+ @saltcorn/cli/0.8.8-beta.1 linux-x64 node-v18.7.0
24
24
  $ saltcorn --help [COMMAND]
25
25
  USAGE
26
26
  $ saltcorn COMMAND
@@ -54,6 +54,7 @@ USAGE
54
54
  * [`saltcorn install-pack`](#saltcorn-install-pack)
55
55
  * [`saltcorn install-plugin`](#saltcorn-install-plugin)
56
56
  * [`saltcorn list-tenants`](#saltcorn-list-tenants)
57
+ * [`saltcorn list-triggers`](#saltcorn-list-triggers)
57
58
  * [`saltcorn saltcorn migrate`](#saltcorn-saltcorn-migrate)
58
59
  * [`saltcorn modify-user USER_EMAIL`](#saltcorn-modify-user-user_email)
59
60
  * [`saltcorn plugins`](#saltcorn-plugins)
@@ -61,6 +62,7 @@ USAGE
61
62
  * [`saltcorn restore FILE`](#saltcorn-restore-file)
62
63
  * [`saltcorn rm-tenant`](#saltcorn-rm-tenant)
63
64
  * [`saltcorn run-benchmark [BASEURL]`](#saltcorn-run-benchmark-baseurl)
65
+ * [`saltcorn run-sql`](#saltcorn-run-sql)
64
66
  * [`saltcorn run-tests [PACKAGE]`](#saltcorn-run-tests-package)
65
67
  * [`saltcorn run-trigger TRIGGER`](#saltcorn-run-trigger-trigger)
66
68
  * [`saltcorn scheduler`](#saltcorn-scheduler)
@@ -83,7 +85,7 @@ OPTIONS
83
85
  -f, --force force command execution
84
86
  ```
85
87
 
86
- _See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/add-schema.js)_
88
+ _See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/add-schema.js)_
87
89
 
88
90
  ## `saltcorn backup`
89
91
 
@@ -100,7 +102,7 @@ OPTIONS
100
102
  -z, --zip Backup public in saltcorn zip format
101
103
  ```
102
104
 
103
- _See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/backup.js)_
105
+ _See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/backup.js)_
104
106
 
105
107
  ## `saltcorn build-app`
106
108
 
@@ -140,7 +142,7 @@ OPTIONS
140
142
  tenant
141
143
  ```
142
144
 
143
- _See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/build-app.js)_
145
+ _See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/build-app.js)_
144
146
 
145
147
  ## `saltcorn build-cordova-builder`
146
148
 
@@ -154,7 +156,7 @@ OPTIONS
154
156
  --buildClean run a clean build with --no-cache
155
157
  ```
156
158
 
157
- _See code: [src/commands/build-cordova-builder.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/build-cordova-builder.js)_
159
+ _See code: [src/commands/build-cordova-builder.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/build-cordova-builder.js)_
158
160
 
159
161
  ## `saltcorn configuration-check`
160
162
 
@@ -168,7 +170,7 @@ OPTIONS
168
170
  -t, --tenant=tenant tenant
169
171
  ```
170
172
 
171
- _See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/configuration-check.js)_
173
+ _See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/configuration-check.js)_
172
174
 
173
175
  ## `saltcorn configuration-check-backups FILES`
174
176
 
@@ -185,7 +187,7 @@ OPTIONS
185
187
  -d, --destructive destructive
186
188
  ```
187
189
 
188
- _See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/configuration-check-backups.js)_
190
+ _See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/configuration-check-backups.js)_
189
191
 
190
192
  ## `saltcorn create-tenant TENANT`
191
193
 
@@ -204,7 +206,7 @@ OPTIONS
204
206
  --url=url Url of tenant
205
207
  ```
206
208
 
207
- _See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/create-tenant.js)_
209
+ _See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/create-tenant.js)_
208
210
 
209
211
  ## `saltcorn create-user`
210
212
 
@@ -222,7 +224,7 @@ OPTIONS
222
224
  -t, --tenant=tenant tenant
223
225
  ```
224
226
 
225
- _See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/create-user.js)_
227
+ _See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/create-user.js)_
226
228
 
227
229
  ## `saltcorn delete-tenants`
228
230
 
@@ -233,7 +235,7 @@ USAGE
233
235
  $ saltcorn delete-tenants
234
236
  ```
235
237
 
236
- _See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/delete-tenants.js)_
238
+ _See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/delete-tenants.js)_
237
239
 
238
240
  ## `saltcorn delete-user USER_EMAIL`
239
241
 
@@ -254,7 +256,7 @@ DESCRIPTION
254
256
  Command deletes the user specified by USER_EMAIL.
255
257
  ```
256
258
 
257
- _See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/delete-user.js)_
259
+ _See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/delete-user.js)_
258
260
 
259
261
  ## `saltcorn dev:localize-plugin PLUGIN [PATH]`
260
262
 
@@ -273,7 +275,7 @@ OPTIONS
273
275
  -u, --unlocalize Unlocalize plugin (local to npm)
274
276
  ```
275
277
 
276
- _See code: [src/commands/dev/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/dev/localize-plugin.js)_
278
+ _See code: [src/commands/dev/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/dev/localize-plugin.js)_
277
279
 
278
280
  ## `saltcorn make-migration`
279
281
 
@@ -289,7 +291,7 @@ DESCRIPTION
289
291
  unless you are a developer.
290
292
  ```
291
293
 
292
- _See code: [src/commands/dev/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/dev/make-migration.js)_
294
+ _See code: [src/commands/dev/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/dev/make-migration.js)_
293
295
 
294
296
  ## `saltcorn dev:post-release [TASK]`
295
297
 
@@ -303,7 +305,7 @@ ARGUMENTS
303
305
  TASK (docker|vagrant|all|none) What to do
304
306
  ```
305
307
 
306
- _See code: [src/commands/dev/post-release.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/dev/post-release.js)_
308
+ _See code: [src/commands/dev/post-release.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/dev/post-release.js)_
307
309
 
308
310
  ## `saltcorn dev:release VERSION`
309
311
 
@@ -317,7 +319,7 @@ ARGUMENTS
317
319
  VERSION New version number
318
320
  ```
319
321
 
320
- _See code: [src/commands/dev/release.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/dev/release.js)_
322
+ _See code: [src/commands/dev/release.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/dev/release.js)_
321
323
 
322
324
  ## `saltcorn dev:test-plugin PATH`
323
325
 
@@ -335,7 +337,7 @@ DESCRIPTION
335
337
  Extra documentation goes here
336
338
  ```
337
339
 
338
- _See code: [src/commands/dev/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/dev/test-plugin.js)_
340
+ _See code: [src/commands/dev/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/dev/test-plugin.js)_
339
341
 
340
342
  ## `saltcorn fixtures`
341
343
 
@@ -354,7 +356,7 @@ DESCRIPTION
354
356
  This manual step it is never required for users and rarely required for developers
355
357
  ```
356
358
 
357
- _See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/fixtures.js)_
359
+ _See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/fixtures.js)_
358
360
 
359
361
  ## `saltcorn get-cfg [KEY]`
360
362
 
@@ -372,7 +374,7 @@ OPTIONS
372
374
  -t, --tenant=tenant tenant
373
375
  ```
374
376
 
375
- _See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/get-cfg.js)_
377
+ _See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/get-cfg.js)_
376
378
 
377
379
  ## `saltcorn help [COMMAND]`
378
380
 
@@ -410,7 +412,7 @@ ALIASES
410
412
  $ saltcorn paths
411
413
  ```
412
414
 
413
- _See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/info.js)_
415
+ _See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/info.js)_
414
416
 
415
417
  ## `saltcorn inspect TYPE [NAME]`
416
418
 
@@ -428,7 +430,7 @@ OPTIONS
428
430
  -t, --tenant=tenant tenant
429
431
  ```
430
432
 
431
- _See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/inspect.js)_
433
+ _See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/inspect.js)_
432
434
 
433
435
  ## `saltcorn install-pack`
434
436
 
@@ -444,7 +446,7 @@ OPTIONS
444
446
  -t, --tenant=tenant tenant
445
447
  ```
446
448
 
447
- _See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/install-pack.js)_
449
+ _See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/install-pack.js)_
448
450
 
449
451
  ## `saltcorn install-plugin`
450
452
 
@@ -460,7 +462,7 @@ OPTIONS
460
462
  -t, --tenant=tenant tenant
461
463
  ```
462
464
 
463
- _See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/install-plugin.js)_
465
+ _See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/install-plugin.js)_
464
466
 
465
467
  ## `saltcorn list-tenants`
466
468
 
@@ -469,9 +471,28 @@ List tenants in CSV format
469
471
  ```
470
472
  USAGE
471
473
  $ saltcorn list-tenants
474
+
475
+ OPTIONS
476
+ -t, --tenant=tenant tenant
477
+ -v, --verbose verbose output
478
+ ```
479
+
480
+ _See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/list-tenants.js)_
481
+
482
+ ## `saltcorn list-triggers`
483
+
484
+ List triggers
485
+
486
+ ```
487
+ USAGE
488
+ $ saltcorn list-triggers
489
+
490
+ OPTIONS
491
+ -t, --tenant=tenant tenant
492
+ -v, --verbose verbose output
472
493
  ```
473
494
 
474
- _See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/list-tenants.js)_
495
+ _See code: [src/commands/list-triggers.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/list-triggers.js)_
475
496
 
476
497
  ## `saltcorn saltcorn migrate`
477
498
 
@@ -493,7 +514,7 @@ DESCRIPTION
493
514
  servers and need to control when the migrations are run.
494
515
  ```
495
516
 
496
- _See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/migrate.js)_
517
+ _See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/migrate.js)_
497
518
 
498
519
  ## `saltcorn modify-user USER_EMAIL`
499
520
 
@@ -522,7 +543,7 @@ DESCRIPTION
522
543
  NOTE that -a and -r role (--role=role) can give conflict.
523
544
  ```
524
545
 
525
- _See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/modify-user.js)_
546
+ _See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/modify-user.js)_
526
547
 
527
548
  ## `saltcorn plugins`
528
549
 
@@ -549,7 +570,7 @@ EXAMPLES
549
570
  plugins -u -f - force plugin update
550
571
  ```
551
572
 
552
- _See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/plugins.js)_
573
+ _See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/plugins.js)_
553
574
 
554
575
  ## `saltcorn reset-schema`
555
576
 
@@ -568,7 +589,7 @@ DESCRIPTION
568
589
  This will delete all existing information
569
590
  ```
570
591
 
571
- _See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/reset-schema.js)_
592
+ _See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/reset-schema.js)_
572
593
 
573
594
  ## `saltcorn restore FILE`
574
595
 
@@ -585,7 +606,7 @@ OPTIONS
585
606
  -t, --tenant=tenant tenant
586
607
  ```
587
608
 
588
- _See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/restore.js)_
609
+ _See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/restore.js)_
589
610
 
590
611
  ## `saltcorn rm-tenant`
591
612
 
@@ -604,7 +625,7 @@ DESCRIPTION
604
625
  It recommended to make backup of tenant before perform this command.
605
626
  ```
606
627
 
607
- _See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/rm-tenant.js)_
628
+ _See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/rm-tenant.js)_
608
629
 
609
630
  ## `saltcorn run-benchmark [BASEURL]`
610
631
 
@@ -623,7 +644,23 @@ OPTIONS
623
644
  -t, --token=token API Token for reporting results
624
645
  ```
625
646
 
626
- _See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/run-benchmark.js)_
647
+ _See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/run-benchmark.js)_
648
+
649
+ ## `saltcorn run-sql`
650
+
651
+ Run sql expression
652
+
653
+ ```
654
+ USAGE
655
+ $ saltcorn run-sql
656
+
657
+ OPTIONS
658
+ -f, --file=file path to sql file name
659
+ -s, --sql=sql sql statement
660
+ -t, --tenant=tenant tenant name
661
+ ```
662
+
663
+ _See code: [src/commands/run-sql.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/run-sql.js)_
627
664
 
628
665
  ## `saltcorn run-tests [PACKAGE]`
629
666
 
@@ -647,7 +684,7 @@ OPTIONS
647
684
  --watchAll Watch files for changes and rerun all tests.
648
685
  ```
649
686
 
650
- _See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/run-tests.js)_
687
+ _See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/run-tests.js)_
651
688
 
652
689
  ## `saltcorn run-trigger TRIGGER`
653
690
 
@@ -664,7 +701,7 @@ OPTIONS
664
701
  -t, --tenant=tenant tenant
665
702
  ```
666
703
 
667
- _See code: [src/commands/run-trigger.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/run-trigger.js)_
704
+ _See code: [src/commands/run-trigger.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/run-trigger.js)_
668
705
 
669
706
  ## `saltcorn scheduler`
670
707
 
@@ -678,7 +715,7 @@ OPTIONS
678
715
  -v, --verbose Verbose
679
716
  ```
680
717
 
681
- _See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/scheduler.js)_
718
+ _See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/scheduler.js)_
682
719
 
683
720
  ## `saltcorn serve`
684
721
 
@@ -699,7 +736,7 @@ OPTIONS
699
736
  --subdomain_offset=subdomain_offset Number of parts to remove to access subdomain in 'multi_tenant' mode
700
737
  ```
701
738
 
702
- _See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/serve.js)_
739
+ _See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/serve.js)_
703
740
 
704
741
  ## `saltcorn set-cfg [KEY] [VALUE]`
705
742
 
@@ -720,7 +757,7 @@ OPTIONS
720
757
  -t, --tenant=tenant tenant
721
758
  ```
722
759
 
723
- _See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/set-cfg.js)_
760
+ _See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/set-cfg.js)_
724
761
 
725
762
  ## `saltcorn setup`
726
763
 
@@ -739,7 +776,7 @@ DESCRIPTION
739
776
  configuration file
740
777
  ```
741
778
 
742
- _See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/setup.js)_
779
+ _See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/setup.js)_
743
780
 
744
781
  ## `saltcorn setup-benchmark`
745
782
 
@@ -753,7 +790,7 @@ OPTIONS
753
790
  -t, --tenant=tenant tenant
754
791
  ```
755
792
 
756
- _See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/setup-benchmark.js)_
793
+ _See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/setup-benchmark.js)_
757
794
 
758
795
  ## `saltcorn take-snapshot`
759
796
 
@@ -768,7 +805,7 @@ OPTIONS
768
805
  -t, --tenant=tenant tenant
769
806
  ```
770
807
 
771
- _See code: [src/commands/take-snapshot.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/take-snapshot.js)_
808
+ _See code: [src/commands/take-snapshot.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/take-snapshot.js)_
772
809
 
773
810
  ## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
774
811
 
@@ -785,5 +822,5 @@ ARGUMENTS
785
822
  TENANT tenant name
786
823
  ```
787
824
 
788
- _See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.8.7/src/commands/transform-field.js)_
825
+ _See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.8.8-beta.1/src/commands/transform-field.js)_
789
826
  <!-- commandsstop -->