@saltcorn/cli 1.1.0-beta.8 → 1.1.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 +77 -54
- package/npm-shrinkwrap.json +1359 -860
- package/oclif.manifest.json +45 -6
- package/package.json +8 -8
- package/src/commands/backup.js +31 -0
- package/src/commands/build-app.js +3 -3
- package/src/commands/build-capacitor-builder.js +64 -0
- package/src/commands/dev/release-resume.js +218 -0
- package/src/commands/dev/release.js +53 -33
- package/src/commands/restore.js +27 -0
- package/src/commands/sync-upload-data.js +1 -1
- package/src/commands/build-cordova-builder.js +0 -50
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g @saltcorn/cli
|
|
|
20
20
|
$ saltcorn COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ saltcorn (--version)
|
|
23
|
-
@saltcorn/cli/1.1.0
|
|
23
|
+
@saltcorn/cli/1.1.0 linux-x64 node-v22.12.0
|
|
24
24
|
$ saltcorn --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ saltcorn COMMAND
|
|
@@ -34,7 +34,7 @@ USAGE
|
|
|
34
34
|
* [`saltcorn add-schema`](#saltcorn-add-schema)
|
|
35
35
|
* [`saltcorn backup`](#saltcorn-backup)
|
|
36
36
|
* [`saltcorn build-app`](#saltcorn-build-app)
|
|
37
|
-
* [`saltcorn build-
|
|
37
|
+
* [`saltcorn build-capacitor-builder`](#saltcorn-build-capacitor-builder)
|
|
38
38
|
* [`saltcorn configuration-check`](#saltcorn-configuration-check)
|
|
39
39
|
* [`saltcorn configuration-check-backups FILES`](#saltcorn-configuration-check-backups-files)
|
|
40
40
|
* [`saltcorn create-tenant TENANT`](#saltcorn-create-tenant-tenant)
|
|
@@ -46,6 +46,7 @@ USAGE
|
|
|
46
46
|
* [`saltcorn saltcorn dev:plugin-test -d [PATH_TO_LOCAL_PLUGIN]/statistics -f test-backup.zip`](#saltcorn-saltcorn-devplugin-test--d-path_to_local_pluginstatistics--f-test-backupzip)
|
|
47
47
|
* [`saltcorn dev:post-release [TASK]`](#saltcorn-devpost-release-task)
|
|
48
48
|
* [`saltcorn dev:release VERSION`](#saltcorn-devrelease-version)
|
|
49
|
+
* [`saltcorn dev:release-resume VERSION`](#saltcorn-devrelease-resume-version)
|
|
49
50
|
* [`saltcorn dev:test-plugin PATH`](#saltcorn-devtest-plugin-path)
|
|
50
51
|
* [`saltcorn fixtures`](#saltcorn-fixtures)
|
|
51
52
|
* [`saltcorn get-cfg [KEY]`](#saltcorn-get-cfg-key)
|
|
@@ -93,7 +94,7 @@ DESCRIPTION
|
|
|
93
94
|
Add Saltcorn schema to existing database
|
|
94
95
|
```
|
|
95
96
|
|
|
96
|
-
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
97
|
+
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/add-schema.js)_
|
|
97
98
|
|
|
98
99
|
## `saltcorn backup`
|
|
99
100
|
|
|
@@ -101,9 +102,10 @@ Backup the PostgreSQL database to a file with pg_dump or saltcorn backup zip
|
|
|
101
102
|
|
|
102
103
|
```
|
|
103
104
|
USAGE
|
|
104
|
-
$ saltcorn backup [-v] [-o <value>] [-t <value>] [-z]
|
|
105
|
+
$ saltcorn backup [-v] [-o <value>] [-t <value>] [-a] [-z]
|
|
105
106
|
|
|
106
107
|
FLAGS
|
|
108
|
+
-a, --all_tenants Backup all tenants in saltcorn zip format
|
|
107
109
|
-o, --output=<value> output filename
|
|
108
110
|
-t, --tenant=<value> Backup tenant in saltcorn zip format
|
|
109
111
|
-v, --verbose Verbose
|
|
@@ -113,7 +115,7 @@ DESCRIPTION
|
|
|
113
115
|
Backup the PostgreSQL database to a file with pg_dump or saltcorn backup zip
|
|
114
116
|
```
|
|
115
117
|
|
|
116
|
-
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
118
|
+
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/backup.js)_
|
|
117
119
|
|
|
118
120
|
## `saltcorn build-app`
|
|
119
121
|
|
|
@@ -146,7 +148,7 @@ FLAGS
|
|
|
146
148
|
symbol.
|
|
147
149
|
--appId=<value> Id of the mobile app (default com.saltcorn.mobileapp)
|
|
148
150
|
--appName=<value> Name of the mobile app (default SaltcornMobileApp)
|
|
149
|
-
--appVersion=<value> Version of the mobile app (default
|
|
151
|
+
--appVersion=<value> Version of the mobile app (default 0.0.1)
|
|
150
152
|
--autoPublicLogin Show public entry points before the login as a public user.
|
|
151
153
|
--buildType=<value> debug or release build
|
|
152
154
|
--includedPlugins=<value>... Names of plugins that should be bundled into the app.If empty, no modules are used.
|
|
@@ -160,24 +162,25 @@ DESCRIPTION
|
|
|
160
162
|
Build mobile app
|
|
161
163
|
```
|
|
162
164
|
|
|
163
|
-
_See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
165
|
+
_See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/build-app.js)_
|
|
164
166
|
|
|
165
|
-
## `saltcorn build-
|
|
167
|
+
## `saltcorn build-capacitor-builder`
|
|
166
168
|
|
|
167
|
-
Build the 'saltcorn/
|
|
169
|
+
Build the 'saltcorn/capacitor-builder' docker image or pull it from docker hub.
|
|
168
170
|
|
|
169
171
|
```
|
|
170
172
|
USAGE
|
|
171
|
-
$ saltcorn build-
|
|
173
|
+
$ saltcorn build-capacitor-builder [--buildClean] [--pullFromHub]
|
|
172
174
|
|
|
173
175
|
FLAGS
|
|
174
|
-
--buildClean
|
|
176
|
+
--buildClean run a clean build with --no-cache
|
|
177
|
+
--pullFromHub pull the image from docker hub
|
|
175
178
|
|
|
176
179
|
DESCRIPTION
|
|
177
|
-
Build the 'saltcorn/
|
|
180
|
+
Build the 'saltcorn/capacitor-builder' docker image or pull it from docker hub.
|
|
178
181
|
```
|
|
179
182
|
|
|
180
|
-
_See code: [src/commands/build-
|
|
183
|
+
_See code: [src/commands/build-capacitor-builder.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/build-capacitor-builder.js)_
|
|
181
184
|
|
|
182
185
|
## `saltcorn configuration-check`
|
|
183
186
|
|
|
@@ -194,7 +197,7 @@ DESCRIPTION
|
|
|
194
197
|
Check configuration
|
|
195
198
|
```
|
|
196
199
|
|
|
197
|
-
_See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
200
|
+
_See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/configuration-check.js)_
|
|
198
201
|
|
|
199
202
|
## `saltcorn configuration-check-backups FILES`
|
|
200
203
|
|
|
@@ -214,7 +217,7 @@ DESCRIPTION
|
|
|
214
217
|
Check configuration
|
|
215
218
|
```
|
|
216
219
|
|
|
217
|
-
_See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
220
|
+
_See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/configuration-check-backups.js)_
|
|
218
221
|
|
|
219
222
|
## `saltcorn create-tenant TENANT`
|
|
220
223
|
|
|
@@ -236,7 +239,7 @@ DESCRIPTION
|
|
|
236
239
|
Create a tenant
|
|
237
240
|
```
|
|
238
241
|
|
|
239
|
-
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
242
|
+
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/create-tenant.js)_
|
|
240
243
|
|
|
241
244
|
## `saltcorn create-user`
|
|
242
245
|
|
|
@@ -257,7 +260,7 @@ DESCRIPTION
|
|
|
257
260
|
Create a new user
|
|
258
261
|
```
|
|
259
262
|
|
|
260
|
-
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
263
|
+
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/create-user.js)_
|
|
261
264
|
|
|
262
265
|
## `saltcorn delete-tenants`
|
|
263
266
|
|
|
@@ -271,7 +274,7 @@ DESCRIPTION
|
|
|
271
274
|
Delete inactive tenants
|
|
272
275
|
```
|
|
273
276
|
|
|
274
|
-
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
277
|
+
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/delete-tenants.js)_
|
|
275
278
|
|
|
276
279
|
## `saltcorn delete-user USER_EMAIL`
|
|
277
280
|
|
|
@@ -294,7 +297,7 @@ DESCRIPTION
|
|
|
294
297
|
Command deletes the user specified by USER_EMAIL.
|
|
295
298
|
```
|
|
296
299
|
|
|
297
|
-
_See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
300
|
+
_See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/delete-user.js)_
|
|
298
301
|
|
|
299
302
|
## `saltcorn dev:localize-plugin PLUGIN [PATH]`
|
|
300
303
|
|
|
@@ -316,7 +319,7 @@ DESCRIPTION
|
|
|
316
319
|
Convert plugin to local plugin
|
|
317
320
|
```
|
|
318
321
|
|
|
319
|
-
_See code: [src/commands/dev/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
322
|
+
_See code: [src/commands/dev/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/dev/localize-plugin.js)_
|
|
320
323
|
|
|
321
324
|
## `saltcorn make-migration`
|
|
322
325
|
|
|
@@ -333,7 +336,7 @@ DESCRIPTION
|
|
|
333
336
|
unless you are a developer.
|
|
334
337
|
```
|
|
335
338
|
|
|
336
|
-
_See code: [src/commands/dev/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
339
|
+
_See code: [src/commands/dev/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/dev/make-migration.js)_
|
|
337
340
|
|
|
338
341
|
## `saltcorn saltcorn dev:plugin-test -d [PATH_TO_LOCAL_PLUGIN]/statistics -f test-backup.zip`
|
|
339
342
|
|
|
@@ -354,7 +357,7 @@ DESCRIPTION
|
|
|
354
357
|
Install a plugin, spawn 'npm run test' in the install directory and check the return code.
|
|
355
358
|
```
|
|
356
359
|
|
|
357
|
-
_See code: [src/commands/dev/plugin-test.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
360
|
+
_See code: [src/commands/dev/plugin-test.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/dev/plugin-test.js)_
|
|
358
361
|
|
|
359
362
|
## `saltcorn dev:post-release [TASK]`
|
|
360
363
|
|
|
@@ -371,7 +374,7 @@ DESCRIPTION
|
|
|
371
374
|
Post-release tasks: docker and vagrant builds
|
|
372
375
|
```
|
|
373
376
|
|
|
374
|
-
_See code: [src/commands/dev/post-release.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
377
|
+
_See code: [src/commands/dev/post-release.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/dev/post-release.js)_
|
|
375
378
|
|
|
376
379
|
## `saltcorn dev:release VERSION`
|
|
377
380
|
|
|
@@ -391,7 +394,27 @@ DESCRIPTION
|
|
|
391
394
|
Release a new saltcorn version
|
|
392
395
|
```
|
|
393
396
|
|
|
394
|
-
_See code: [src/commands/dev/release.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
397
|
+
_See code: [src/commands/dev/release.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/dev/release.js)_
|
|
398
|
+
|
|
399
|
+
## `saltcorn dev:release-resume VERSION`
|
|
400
|
+
|
|
401
|
+
Release a new saltcorn version
|
|
402
|
+
|
|
403
|
+
```
|
|
404
|
+
USAGE
|
|
405
|
+
$ saltcorn dev:release-resume VERSION [-t <value>]
|
|
406
|
+
|
|
407
|
+
ARGUMENTS
|
|
408
|
+
VERSION New version number
|
|
409
|
+
|
|
410
|
+
FLAGS
|
|
411
|
+
-t, --tag=<value> NPM tag
|
|
412
|
+
|
|
413
|
+
DESCRIPTION
|
|
414
|
+
Release a new saltcorn version
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
_See code: [src/commands/dev/release-resume.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/dev/release-resume.js)_
|
|
395
418
|
|
|
396
419
|
## `saltcorn dev:test-plugin PATH`
|
|
397
420
|
|
|
@@ -410,7 +433,7 @@ DESCRIPTION
|
|
|
410
433
|
Extra documentation goes here
|
|
411
434
|
```
|
|
412
435
|
|
|
413
|
-
_See code: [src/commands/dev/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
436
|
+
_See code: [src/commands/dev/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/dev/test-plugin.js)_
|
|
414
437
|
|
|
415
438
|
## `saltcorn fixtures`
|
|
416
439
|
|
|
@@ -430,7 +453,7 @@ DESCRIPTION
|
|
|
430
453
|
This manual step it is never required for users and rarely required for developers
|
|
431
454
|
```
|
|
432
455
|
|
|
433
|
-
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
456
|
+
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/fixtures.js)_
|
|
434
457
|
|
|
435
458
|
## `saltcorn get-cfg [KEY]`
|
|
436
459
|
|
|
@@ -451,7 +474,7 @@ DESCRIPTION
|
|
|
451
474
|
Get a configuration value. The value is printed to stdout as a JSON value
|
|
452
475
|
```
|
|
453
476
|
|
|
454
|
-
_See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
477
|
+
_See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/get-cfg.js)_
|
|
455
478
|
|
|
456
479
|
## `saltcorn info`
|
|
457
480
|
|
|
@@ -474,7 +497,7 @@ ALIASES
|
|
|
474
497
|
$ saltcorn paths
|
|
475
498
|
```
|
|
476
499
|
|
|
477
|
-
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
500
|
+
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/info.js)_
|
|
478
501
|
|
|
479
502
|
## `saltcorn inspect TYPE [NAME]`
|
|
480
503
|
|
|
@@ -495,7 +518,7 @@ DESCRIPTION
|
|
|
495
518
|
Inspect an entity's JSON representation, or list entities
|
|
496
519
|
```
|
|
497
520
|
|
|
498
|
-
_See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
521
|
+
_See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/inspect.js)_
|
|
499
522
|
|
|
500
523
|
## `saltcorn install-pack`
|
|
501
524
|
|
|
@@ -514,7 +537,7 @@ DESCRIPTION
|
|
|
514
537
|
Install a pack or restore a snapshot
|
|
515
538
|
```
|
|
516
539
|
|
|
517
|
-
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
540
|
+
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/install-pack.js)_
|
|
518
541
|
|
|
519
542
|
## `saltcorn install-plugin`
|
|
520
543
|
|
|
@@ -534,7 +557,7 @@ DESCRIPTION
|
|
|
534
557
|
Install a plugin
|
|
535
558
|
```
|
|
536
559
|
|
|
537
|
-
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
560
|
+
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/install-plugin.js)_
|
|
538
561
|
|
|
539
562
|
## `saltcorn list-tenants`
|
|
540
563
|
|
|
@@ -553,7 +576,7 @@ DESCRIPTION
|
|
|
553
576
|
List tenants in CSV format
|
|
554
577
|
```
|
|
555
578
|
|
|
556
|
-
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
579
|
+
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/list-tenants.js)_
|
|
557
580
|
|
|
558
581
|
## `saltcorn list-triggers`
|
|
559
582
|
|
|
@@ -572,7 +595,7 @@ DESCRIPTION
|
|
|
572
595
|
List triggers
|
|
573
596
|
```
|
|
574
597
|
|
|
575
|
-
_See code: [src/commands/list-triggers.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
598
|
+
_See code: [src/commands/list-triggers.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/list-triggers.js)_
|
|
576
599
|
|
|
577
600
|
## `saltcorn list-users`
|
|
578
601
|
|
|
@@ -590,7 +613,7 @@ DESCRIPTION
|
|
|
590
613
|
List users
|
|
591
614
|
```
|
|
592
615
|
|
|
593
|
-
_See code: [src/commands/list-users.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
616
|
+
_See code: [src/commands/list-users.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/list-users.js)_
|
|
594
617
|
|
|
595
618
|
## `saltcorn saltcorn migrate`
|
|
596
619
|
|
|
@@ -613,7 +636,7 @@ DESCRIPTION
|
|
|
613
636
|
servers and need to control when the migrations are run.
|
|
614
637
|
```
|
|
615
638
|
|
|
616
|
-
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
639
|
+
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/migrate.js)_
|
|
617
640
|
|
|
618
641
|
## `saltcorn modify-user USER_EMAIL`
|
|
619
642
|
|
|
@@ -644,7 +667,7 @@ DESCRIPTION
|
|
|
644
667
|
NOTE that -a and -r role (--role=role) can give conflict.
|
|
645
668
|
```
|
|
646
669
|
|
|
647
|
-
_See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
670
|
+
_See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/modify-user.js)_
|
|
648
671
|
|
|
649
672
|
## `saltcorn paths`
|
|
650
673
|
|
|
@@ -696,7 +719,7 @@ EXAMPLES
|
|
|
696
719
|
plugins -u -f - force plugin update
|
|
697
720
|
```
|
|
698
721
|
|
|
699
|
-
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
722
|
+
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/plugins.js)_
|
|
700
723
|
|
|
701
724
|
## `saltcorn reset-schema`
|
|
702
725
|
|
|
@@ -716,7 +739,7 @@ DESCRIPTION
|
|
|
716
739
|
This will delete all existing information
|
|
717
740
|
```
|
|
718
741
|
|
|
719
|
-
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
742
|
+
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/reset-schema.js)_
|
|
720
743
|
|
|
721
744
|
## `saltcorn restore FILE`
|
|
722
745
|
|
|
@@ -736,7 +759,7 @@ DESCRIPTION
|
|
|
736
759
|
Restore a previously backed up database (zip or sqlc format)
|
|
737
760
|
```
|
|
738
761
|
|
|
739
|
-
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
762
|
+
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/restore.js)_
|
|
740
763
|
|
|
741
764
|
## `saltcorn rm-tenant`
|
|
742
765
|
|
|
@@ -756,7 +779,7 @@ DESCRIPTION
|
|
|
756
779
|
It recommended to make backup of tenant before perform this command.
|
|
757
780
|
```
|
|
758
781
|
|
|
759
|
-
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
782
|
+
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/rm-tenant.js)_
|
|
760
783
|
|
|
761
784
|
## `saltcorn run-benchmark [BASEURL]`
|
|
762
785
|
|
|
@@ -778,7 +801,7 @@ DESCRIPTION
|
|
|
778
801
|
Run benchmark
|
|
779
802
|
```
|
|
780
803
|
|
|
781
|
-
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
804
|
+
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/run-benchmark.js)_
|
|
782
805
|
|
|
783
806
|
## `saltcorn run-js`
|
|
784
807
|
|
|
@@ -797,7 +820,7 @@ DESCRIPTION
|
|
|
797
820
|
Run javascript code
|
|
798
821
|
```
|
|
799
822
|
|
|
800
|
-
_See code: [src/commands/run-js.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
823
|
+
_See code: [src/commands/run-js.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/run-js.js)_
|
|
801
824
|
|
|
802
825
|
## `saltcorn run-sql`
|
|
803
826
|
|
|
@@ -816,7 +839,7 @@ DESCRIPTION
|
|
|
816
839
|
Run sql expression
|
|
817
840
|
```
|
|
818
841
|
|
|
819
|
-
_See code: [src/commands/run-sql.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
842
|
+
_See code: [src/commands/run-sql.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/run-sql.js)_
|
|
820
843
|
|
|
821
844
|
## `saltcorn run-tests [PACKAGE]`
|
|
822
845
|
|
|
@@ -843,7 +866,7 @@ DESCRIPTION
|
|
|
843
866
|
Run test suites
|
|
844
867
|
```
|
|
845
868
|
|
|
846
|
-
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
869
|
+
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/run-tests.js)_
|
|
847
870
|
|
|
848
871
|
## `saltcorn run-trigger TRIGGER`
|
|
849
872
|
|
|
@@ -863,7 +886,7 @@ DESCRIPTION
|
|
|
863
886
|
Run a trigger
|
|
864
887
|
```
|
|
865
888
|
|
|
866
|
-
_See code: [src/commands/run-trigger.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
889
|
+
_See code: [src/commands/run-trigger.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/run-trigger.js)_
|
|
867
890
|
|
|
868
891
|
## `saltcorn scheduler`
|
|
869
892
|
|
|
@@ -880,7 +903,7 @@ DESCRIPTION
|
|
|
880
903
|
Run the Saltcorn scheduler
|
|
881
904
|
```
|
|
882
905
|
|
|
883
|
-
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
906
|
+
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/scheduler.js)_
|
|
884
907
|
|
|
885
908
|
## `saltcorn serve`
|
|
886
909
|
|
|
@@ -904,7 +927,7 @@ DESCRIPTION
|
|
|
904
927
|
Start the Saltcorn server
|
|
905
928
|
```
|
|
906
929
|
|
|
907
|
-
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
930
|
+
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/serve.js)_
|
|
908
931
|
|
|
909
932
|
## `saltcorn set-cfg [KEY] [VALUE]`
|
|
910
933
|
|
|
@@ -929,7 +952,7 @@ DESCRIPTION
|
|
|
929
952
|
stored as a string.
|
|
930
953
|
```
|
|
931
954
|
|
|
932
|
-
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
955
|
+
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/set-cfg.js)_
|
|
933
956
|
|
|
934
957
|
## `saltcorn set-daily-time [MINS]`
|
|
935
958
|
|
|
@@ -949,7 +972,7 @@ DESCRIPTION
|
|
|
949
972
|
Set the time the default daily event will run, offset in minutes from the current time. Restart required.
|
|
950
973
|
```
|
|
951
974
|
|
|
952
|
-
_See code: [src/commands/set-daily-time.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
975
|
+
_See code: [src/commands/set-daily-time.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/set-daily-time.js)_
|
|
953
976
|
|
|
954
977
|
## `saltcorn setup`
|
|
955
978
|
|
|
@@ -969,7 +992,7 @@ DESCRIPTION
|
|
|
969
992
|
configuration file
|
|
970
993
|
```
|
|
971
994
|
|
|
972
|
-
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
995
|
+
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/setup.js)_
|
|
973
996
|
|
|
974
997
|
## `saltcorn setup-benchmark`
|
|
975
998
|
|
|
@@ -987,7 +1010,7 @@ DESCRIPTION
|
|
|
987
1010
|
Setup an instance for benchmarking
|
|
988
1011
|
```
|
|
989
1012
|
|
|
990
|
-
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
1013
|
+
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/setup-benchmark.js)_
|
|
991
1014
|
|
|
992
1015
|
## `saltcorn sync-upload-data`
|
|
993
1016
|
|
|
@@ -1008,7 +1031,7 @@ DESCRIPTION
|
|
|
1008
1031
|
Runs a sync for data supplied by the mobile app
|
|
1009
1032
|
```
|
|
1010
1033
|
|
|
1011
|
-
_See code: [src/commands/sync-upload-data.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
1034
|
+
_See code: [src/commands/sync-upload-data.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/sync-upload-data.js)_
|
|
1012
1035
|
|
|
1013
1036
|
## `saltcorn take-snapshot`
|
|
1014
1037
|
|
|
@@ -1026,7 +1049,7 @@ DESCRIPTION
|
|
|
1026
1049
|
Print a current snapshout to stdout
|
|
1027
1050
|
```
|
|
1028
1051
|
|
|
1029
|
-
_See code: [src/commands/take-snapshot.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
1052
|
+
_See code: [src/commands/take-snapshot.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/take-snapshot.js)_
|
|
1030
1053
|
|
|
1031
1054
|
## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
|
|
1032
1055
|
|
|
@@ -1046,5 +1069,5 @@ DESCRIPTION
|
|
|
1046
1069
|
transform an existing field by applying a calculated expression
|
|
1047
1070
|
```
|
|
1048
1071
|
|
|
1049
|
-
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0
|
|
1072
|
+
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v1.1.0/packages/saltcorn-cli/src/commands/transform-field.js)_
|
|
1050
1073
|
<!-- commandsstop -->
|