@saltcorn/cli 1.1.1 → 1.1.2-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 +106 -105
- package/npm-shrinkwrap.json +13965 -18219
- package/oclif.manifest.json +1352 -890
- package/package.json +17 -17
- package/src/commands/add-schema.js +11 -5
- package/src/commands/configuration-check-backups.js +1 -1
- package/src/commands/configuration-check.js +1 -1
- package/src/commands/create-user.js +30 -4
- package/src/commands/delete-user.js +14 -7
- package/src/commands/get-cfg.js +1 -1
- package/src/commands/inspect.js +1 -1
- package/src/commands/list-triggers.js +1 -1
- package/src/commands/list-users.js +1 -1
- package/src/commands/modify-user.js +24 -7
- package/src/commands/reset-schema.js +14 -7
- package/src/commands/rm-tenant.js +11 -6
- package/src/commands/run-js.js +1 -1
- package/src/commands/run-sql.js +1 -1
- package/src/commands/run-trigger.js +1 -1
- package/src/commands/set-cfg.js +1 -1
- package/src/commands/set-daily-time.js +1 -1
- package/src/commands/setup.js +79 -29
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.1 linux-x64 node-v18.20.6
|
|
23
|
+
@saltcorn/cli/1.1.2-beta.1 linux-x64 node-v18.20.6
|
|
24
24
|
$ saltcorn --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ saltcorn COMMAND
|
|
@@ -94,7 +94,7 @@ DESCRIPTION
|
|
|
94
94
|
Add Saltcorn schema to existing database
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/add-schema.js)_
|
|
97
|
+
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/add-schema.js)_
|
|
98
98
|
|
|
99
99
|
## `saltcorn backup`
|
|
100
100
|
|
|
@@ -115,7 +115,7 @@ DESCRIPTION
|
|
|
115
115
|
Backup the PostgreSQL database to a file with pg_dump or saltcorn backup zip
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/backup.js)_
|
|
118
|
+
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/backup.js)_
|
|
119
119
|
|
|
120
120
|
## `saltcorn build-app`
|
|
121
121
|
|
|
@@ -123,56 +123,57 @@ Build mobile app
|
|
|
123
123
|
|
|
124
124
|
```
|
|
125
125
|
USAGE
|
|
126
|
-
$ saltcorn build-app [-m full|prepare|finish] [--allowShareTo] [--tenantAppName <value>] [-p <value
|
|
127
|
-
<value>] [-t <value>] [-l <value
|
|
128
|
-
<value>] [-u <value>] [--appName <value>] [--appId <value>] [--appVersion <value>] [--appIcon <value>] [-s
|
|
129
|
-
[--splashPage <value>] [--autoPublicLogin] [--allowOfflineMode] [--provisioningProfile <value>]
|
|
126
|
+
$ saltcorn build-app [-m full|prepare|finish] [--allowShareTo] [--tenantAppName <value>] [-p <value>...] [-e
|
|
127
|
+
<value>] [-t <value>] [-l <value>...] [--synchedTables <value>...] [--includedPlugins <value>...] [-d] [-b <value>]
|
|
128
|
+
[-c <value>] [-u <value>] [--appName <value>] [--appId <value>] [--appVersion <value>] [--appIcon <value>] [-s
|
|
129
|
+
<value>] [--splashPage <value>] [--autoPublicLogin] [--allowOfflineMode] [--provisioningProfile <value>]
|
|
130
130
|
[--shareExtensionProvisioningProfile <value>] [--buildType <value>] [--androidKeystore <value>]
|
|
131
131
|
[--androidKeyStoreAlias <value>] [--androidKeystorePassword <value>]
|
|
132
132
|
|
|
133
133
|
FLAGS
|
|
134
|
-
-b, --buildDirectory=<value>
|
|
135
|
-
-c, --copyAppDirectory=<value>
|
|
136
|
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
-
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
--
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
134
|
+
-b, --buildDirectory=<value> A directory where the app should be build
|
|
135
|
+
-c, --copyAppDirectory=<value> If set, the app file will be copied here, please set 'user email',
|
|
136
|
+
too
|
|
137
|
+
-d, --useDocker Use a docker container to build the app.
|
|
138
|
+
-e, --entryPoint=<value> This is the first view or page (see -t) after the login.
|
|
139
|
+
-l, --localUserTables=<value>... user defined tables that should be replicated into the app
|
|
140
|
+
-m, --mode=<option> [default: full] Build the app completely (full), prepare the ios
|
|
141
|
+
build directory (prepare) or finish the ios build in the prepared ios
|
|
142
|
+
folder (finish)
|
|
143
|
+
<options: full|prepare|finish>
|
|
144
|
+
-p, --platforms=<value>... Platforms to build for, space separated list
|
|
145
|
+
-s, --serverURL=<value> URL to a saltcorn server
|
|
146
|
+
-t, --entryPointType=<value> Type of the entry point ('view' or 'page'). The default is 'view'.
|
|
147
|
+
-u, --userEmail=<value> Email of the user building the app
|
|
148
|
+
--allowOfflineMode Switch to offline mode when there is no internet, sync the data when
|
|
149
|
+
a connection is available again.
|
|
150
|
+
--allowShareTo Allow sharing from other apps to this app
|
|
151
|
+
--androidKeyStoreAlias=<value> A unique name to identify the key within the keystore file.
|
|
152
|
+
--androidKeystore=<value> A self-signed certificate that includes the private key used to sign
|
|
153
|
+
your app.
|
|
154
|
+
--androidKeystorePassword=<value> he password to access the keystore file.
|
|
155
|
+
--appIcon=<value> A png that will be used as launcher icon. The default is a png of a
|
|
156
|
+
saltcorn symbol.
|
|
157
|
+
--appId=<value> Id of the mobile app (default com.saltcorn.mobileapp)
|
|
158
|
+
--appName=<value> Name of the mobile app (default SaltcornMobileApp)
|
|
159
|
+
--appVersion=<value> Version of the mobile app (default 0.0.1)
|
|
160
|
+
--autoPublicLogin Show public entry points before the login as a public user.
|
|
161
|
+
--buildType=<value> debug or release build
|
|
162
|
+
--includedPlugins=<value>... Names of plugins that should be bundled into the app.If empty, no
|
|
163
|
+
modules are used.
|
|
164
|
+
--provisioningProfile=<value> This profile will be used to sign your app
|
|
165
|
+
--shareExtensionProvisioningProfile=<value> This profile will be used to sign your share extension on iOS
|
|
166
|
+
--splashPage=<value> Name of a page that should be shown while the app is loading.
|
|
167
|
+
--synchedTables=<value>... Table names for which the offline should be synchronized with the
|
|
168
|
+
saltcorn server
|
|
169
|
+
--tenantAppName=<value> Optional name of a tenant application, if set, the app will be build
|
|
170
|
+
for this tenant
|
|
170
171
|
|
|
171
172
|
DESCRIPTION
|
|
172
173
|
Build mobile app
|
|
173
174
|
```
|
|
174
175
|
|
|
175
|
-
_See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/build-app.js)_
|
|
176
|
+
_See code: [src/commands/build-app.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/build-app.js)_
|
|
176
177
|
|
|
177
178
|
## `saltcorn build-capacitor-builder`
|
|
178
179
|
|
|
@@ -190,7 +191,7 @@ DESCRIPTION
|
|
|
190
191
|
Build the 'saltcorn/capacitor-builder' docker image or pull it from docker hub.
|
|
191
192
|
```
|
|
192
193
|
|
|
193
|
-
_See code: [src/commands/build-capacitor-builder.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/build-capacitor-builder.js)_
|
|
194
|
+
_See code: [src/commands/build-capacitor-builder.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/build-capacitor-builder.js)_
|
|
194
195
|
|
|
195
196
|
## `saltcorn configuration-check`
|
|
196
197
|
|
|
@@ -207,7 +208,7 @@ DESCRIPTION
|
|
|
207
208
|
Check configuration
|
|
208
209
|
```
|
|
209
210
|
|
|
210
|
-
_See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/configuration-check.js)_
|
|
211
|
+
_See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/configuration-check.js)_
|
|
211
212
|
|
|
212
213
|
## `saltcorn configuration-check-backups FILES`
|
|
213
214
|
|
|
@@ -215,10 +216,10 @@ Check configuration
|
|
|
215
216
|
|
|
216
217
|
```
|
|
217
218
|
USAGE
|
|
218
|
-
$ saltcorn configuration-check-backups FILES [-d]
|
|
219
|
+
$ saltcorn configuration-check-backups FILES... [-d]
|
|
219
220
|
|
|
220
221
|
ARGUMENTS
|
|
221
|
-
FILES backup file to check. can be repeated, e.g. with *
|
|
222
|
+
FILES... backup file to check. can be repeated, e.g. with *
|
|
222
223
|
|
|
223
224
|
FLAGS
|
|
224
225
|
-d, --destructive destructive
|
|
@@ -227,7 +228,7 @@ DESCRIPTION
|
|
|
227
228
|
Check configuration
|
|
228
229
|
```
|
|
229
230
|
|
|
230
|
-
_See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/configuration-check-backups.js)_
|
|
231
|
+
_See code: [src/commands/configuration-check-backups.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/configuration-check-backups.js)_
|
|
231
232
|
|
|
232
233
|
## `saltcorn create-tenant TENANT`
|
|
233
234
|
|
|
@@ -243,13 +244,13 @@ ARGUMENTS
|
|
|
243
244
|
FLAGS
|
|
244
245
|
-d, --description=<value> Description of tenant
|
|
245
246
|
-e, --email=<value> Email of owner of tenant
|
|
246
|
-
|
|
247
|
+
--url=<value> Url of tenant
|
|
247
248
|
|
|
248
249
|
DESCRIPTION
|
|
249
250
|
Create a tenant
|
|
250
251
|
```
|
|
251
252
|
|
|
252
|
-
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/create-tenant.js)_
|
|
253
|
+
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/create-tenant.js)_
|
|
253
254
|
|
|
254
255
|
## `saltcorn create-user`
|
|
255
256
|
|
|
@@ -270,7 +271,7 @@ DESCRIPTION
|
|
|
270
271
|
Create a new user
|
|
271
272
|
```
|
|
272
273
|
|
|
273
|
-
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/create-user.js)_
|
|
274
|
+
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/create-user.js)_
|
|
274
275
|
|
|
275
276
|
## `saltcorn delete-tenants`
|
|
276
277
|
|
|
@@ -284,7 +285,7 @@ DESCRIPTION
|
|
|
284
285
|
Delete inactive tenants
|
|
285
286
|
```
|
|
286
287
|
|
|
287
|
-
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/delete-tenants.js)_
|
|
288
|
+
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/delete-tenants.js)_
|
|
288
289
|
|
|
289
290
|
## `saltcorn delete-user USER_EMAIL`
|
|
290
291
|
|
|
@@ -307,7 +308,7 @@ DESCRIPTION
|
|
|
307
308
|
Command deletes the user specified by USER_EMAIL.
|
|
308
309
|
```
|
|
309
310
|
|
|
310
|
-
_See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/delete-user.js)_
|
|
311
|
+
_See code: [src/commands/delete-user.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/delete-user.js)_
|
|
311
312
|
|
|
312
313
|
## `saltcorn dev:localize-plugin PLUGIN [PATH]`
|
|
313
314
|
|
|
@@ -329,7 +330,7 @@ DESCRIPTION
|
|
|
329
330
|
Convert plugin to local plugin
|
|
330
331
|
```
|
|
331
332
|
|
|
332
|
-
_See code: [src/commands/dev/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/dev/localize-plugin.js)_
|
|
333
|
+
_See code: [src/commands/dev/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/dev/localize-plugin.js)_
|
|
333
334
|
|
|
334
335
|
## `saltcorn make-migration`
|
|
335
336
|
|
|
@@ -337,7 +338,7 @@ Create a new blank Database structure migration file.
|
|
|
337
338
|
|
|
338
339
|
```
|
|
339
340
|
USAGE
|
|
340
|
-
$ saltcorn make-migration
|
|
341
|
+
$ saltcorn dev:make-migration make-migration
|
|
341
342
|
|
|
342
343
|
DESCRIPTION
|
|
343
344
|
Create a new blank Database structure migration file.
|
|
@@ -346,7 +347,7 @@ DESCRIPTION
|
|
|
346
347
|
unless you are a developer.
|
|
347
348
|
```
|
|
348
349
|
|
|
349
|
-
_See code: [src/commands/dev/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/dev/make-migration.js)_
|
|
350
|
+
_See code: [src/commands/dev/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/dev/make-migration.js)_
|
|
350
351
|
|
|
351
352
|
## `saltcorn saltcorn dev:plugin-test -d [PATH_TO_LOCAL_PLUGIN]/statistics -f test-backup.zip`
|
|
352
353
|
|
|
@@ -354,20 +355,20 @@ Install a plugin, spawn 'npm run test' in the install directory and check the re
|
|
|
354
355
|
|
|
355
356
|
```
|
|
356
357
|
USAGE
|
|
357
|
-
$ saltcorn saltcorn dev:plugin-test -d [PATH_TO_LOCAL_PLUGIN]/statistics -f test-backup.zip
|
|
358
|
+
$ saltcorn dev:plugin-test saltcorn dev:plugin-test -d [PATH_TO_LOCAL_PLUGIN]/statistics -f test-backup.zip
|
|
358
359
|
|
|
359
360
|
FLAGS
|
|
360
361
|
-d, --directory=<value> Directory of local plugin
|
|
361
362
|
-f, --backupFile=<value> Optional name of a backup file in the tests folder. If you ommit this, then the test has to
|
|
362
363
|
create its own data.
|
|
363
364
|
-n, --name=<value> Plugin name in store of a released plugin
|
|
364
|
-
|
|
365
|
+
--database=<value> Run on specified database. Default is 'saltcorn_test''
|
|
365
366
|
|
|
366
367
|
DESCRIPTION
|
|
367
368
|
Install a plugin, spawn 'npm run test' in the install directory and check the return code.
|
|
368
369
|
```
|
|
369
370
|
|
|
370
|
-
_See code: [src/commands/dev/plugin-test.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/dev/plugin-test.js)_
|
|
371
|
+
_See code: [src/commands/dev/plugin-test.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/dev/plugin-test.js)_
|
|
371
372
|
|
|
372
373
|
## `saltcorn dev:post-release [TASK]`
|
|
373
374
|
|
|
@@ -384,7 +385,7 @@ DESCRIPTION
|
|
|
384
385
|
Post-release tasks: docker and vagrant builds
|
|
385
386
|
```
|
|
386
387
|
|
|
387
|
-
_See code: [src/commands/dev/post-release.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/dev/post-release.js)_
|
|
388
|
+
_See code: [src/commands/dev/post-release.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/dev/post-release.js)_
|
|
388
389
|
|
|
389
390
|
## `saltcorn dev:release VERSION`
|
|
390
391
|
|
|
@@ -404,7 +405,7 @@ DESCRIPTION
|
|
|
404
405
|
Release a new saltcorn version
|
|
405
406
|
```
|
|
406
407
|
|
|
407
|
-
_See code: [src/commands/dev/release.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/dev/release.js)_
|
|
408
|
+
_See code: [src/commands/dev/release.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/dev/release.js)_
|
|
408
409
|
|
|
409
410
|
## `saltcorn dev:release-resume VERSION`
|
|
410
411
|
|
|
@@ -424,7 +425,7 @@ DESCRIPTION
|
|
|
424
425
|
Release a new saltcorn version
|
|
425
426
|
```
|
|
426
427
|
|
|
427
|
-
_See code: [src/commands/dev/release-resume.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/dev/release-resume.js)_
|
|
428
|
+
_See code: [src/commands/dev/release-resume.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/dev/release-resume.js)_
|
|
428
429
|
|
|
429
430
|
## `saltcorn dev:test-plugin PATH`
|
|
430
431
|
|
|
@@ -443,7 +444,7 @@ DESCRIPTION
|
|
|
443
444
|
Extra documentation goes here
|
|
444
445
|
```
|
|
445
446
|
|
|
446
|
-
_See code: [src/commands/dev/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/dev/test-plugin.js)_
|
|
447
|
+
_See code: [src/commands/dev/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/dev/test-plugin.js)_
|
|
447
448
|
|
|
448
449
|
## `saltcorn fixtures`
|
|
449
450
|
|
|
@@ -463,7 +464,7 @@ DESCRIPTION
|
|
|
463
464
|
This manual step it is never required for users and rarely required for developers
|
|
464
465
|
```
|
|
465
466
|
|
|
466
|
-
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/fixtures.js)_
|
|
467
|
+
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/fixtures.js)_
|
|
467
468
|
|
|
468
469
|
## `saltcorn get-cfg [KEY]`
|
|
469
470
|
|
|
@@ -484,7 +485,7 @@ DESCRIPTION
|
|
|
484
485
|
Get a configuration value. The value is printed to stdout as a JSON value
|
|
485
486
|
```
|
|
486
487
|
|
|
487
|
-
_See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/get-cfg.js)_
|
|
488
|
+
_See code: [src/commands/get-cfg.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/get-cfg.js)_
|
|
488
489
|
|
|
489
490
|
## `saltcorn info`
|
|
490
491
|
|
|
@@ -507,7 +508,7 @@ ALIASES
|
|
|
507
508
|
$ saltcorn paths
|
|
508
509
|
```
|
|
509
510
|
|
|
510
|
-
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/info.js)_
|
|
511
|
+
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/info.js)_
|
|
511
512
|
|
|
512
513
|
## `saltcorn inspect TYPE [NAME]`
|
|
513
514
|
|
|
@@ -528,7 +529,7 @@ DESCRIPTION
|
|
|
528
529
|
Inspect an entity's JSON representation, or list entities
|
|
529
530
|
```
|
|
530
531
|
|
|
531
|
-
_See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/inspect.js)_
|
|
532
|
+
_See code: [src/commands/inspect.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/inspect.js)_
|
|
532
533
|
|
|
533
534
|
## `saltcorn install-pack`
|
|
534
535
|
|
|
@@ -547,7 +548,7 @@ DESCRIPTION
|
|
|
547
548
|
Install a pack or restore a snapshot
|
|
548
549
|
```
|
|
549
550
|
|
|
550
|
-
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/install-pack.js)_
|
|
551
|
+
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/install-pack.js)_
|
|
551
552
|
|
|
552
553
|
## `saltcorn install-plugin`
|
|
553
554
|
|
|
@@ -567,7 +568,7 @@ DESCRIPTION
|
|
|
567
568
|
Install a plugin
|
|
568
569
|
```
|
|
569
570
|
|
|
570
|
-
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/install-plugin.js)_
|
|
571
|
+
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/install-plugin.js)_
|
|
571
572
|
|
|
572
573
|
## `saltcorn list-tenants`
|
|
573
574
|
|
|
@@ -586,7 +587,7 @@ DESCRIPTION
|
|
|
586
587
|
List tenants in CSV format
|
|
587
588
|
```
|
|
588
589
|
|
|
589
|
-
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/list-tenants.js)_
|
|
590
|
+
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/list-tenants.js)_
|
|
590
591
|
|
|
591
592
|
## `saltcorn list-triggers`
|
|
592
593
|
|
|
@@ -605,7 +606,7 @@ DESCRIPTION
|
|
|
605
606
|
List triggers
|
|
606
607
|
```
|
|
607
608
|
|
|
608
|
-
_See code: [src/commands/list-triggers.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/list-triggers.js)_
|
|
609
|
+
_See code: [src/commands/list-triggers.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/list-triggers.js)_
|
|
609
610
|
|
|
610
611
|
## `saltcorn list-users`
|
|
611
612
|
|
|
@@ -623,7 +624,7 @@ DESCRIPTION
|
|
|
623
624
|
List users
|
|
624
625
|
```
|
|
625
626
|
|
|
626
|
-
_See code: [src/commands/list-users.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/list-users.js)_
|
|
627
|
+
_See code: [src/commands/list-users.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/list-users.js)_
|
|
627
628
|
|
|
628
629
|
## `saltcorn saltcorn migrate`
|
|
629
630
|
|
|
@@ -631,7 +632,7 @@ Run Database structure migrations
|
|
|
631
632
|
|
|
632
633
|
```
|
|
633
634
|
USAGE
|
|
634
|
-
$ saltcorn saltcorn migrate
|
|
635
|
+
$ saltcorn migrate saltcorn migrate
|
|
635
636
|
|
|
636
637
|
DESCRIPTION
|
|
637
638
|
Run Database structure migrations
|
|
@@ -646,7 +647,7 @@ DESCRIPTION
|
|
|
646
647
|
servers and need to control when the migrations are run.
|
|
647
648
|
```
|
|
648
649
|
|
|
649
|
-
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/migrate.js)_
|
|
650
|
+
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/migrate.js)_
|
|
650
651
|
|
|
651
652
|
## `saltcorn modify-user USER_EMAIL`
|
|
652
653
|
|
|
@@ -677,7 +678,7 @@ DESCRIPTION
|
|
|
677
678
|
NOTE that -a and -r role (--role=role) can give conflict.
|
|
678
679
|
```
|
|
679
680
|
|
|
680
|
-
_See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/modify-user.js)_
|
|
681
|
+
_See code: [src/commands/modify-user.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/modify-user.js)_
|
|
681
682
|
|
|
682
683
|
## `saltcorn paths`
|
|
683
684
|
|
|
@@ -729,7 +730,7 @@ EXAMPLES
|
|
|
729
730
|
plugins -u -f - force plugin update
|
|
730
731
|
```
|
|
731
732
|
|
|
732
|
-
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/plugins.js)_
|
|
733
|
+
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/plugins.js)_
|
|
733
734
|
|
|
734
735
|
## `saltcorn reset-schema`
|
|
735
736
|
|
|
@@ -749,7 +750,7 @@ DESCRIPTION
|
|
|
749
750
|
This will delete all existing information
|
|
750
751
|
```
|
|
751
752
|
|
|
752
|
-
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/reset-schema.js)_
|
|
753
|
+
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/reset-schema.js)_
|
|
753
754
|
|
|
754
755
|
## `saltcorn restore FILE`
|
|
755
756
|
|
|
@@ -769,7 +770,7 @@ DESCRIPTION
|
|
|
769
770
|
Restore a previously backed up database (zip or sqlc format)
|
|
770
771
|
```
|
|
771
772
|
|
|
772
|
-
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/restore.js)_
|
|
773
|
+
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/restore.js)_
|
|
773
774
|
|
|
774
775
|
## `saltcorn rm-tenant`
|
|
775
776
|
|
|
@@ -789,7 +790,7 @@ DESCRIPTION
|
|
|
789
790
|
It recommended to make backup of tenant before perform this command.
|
|
790
791
|
```
|
|
791
792
|
|
|
792
|
-
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/rm-tenant.js)_
|
|
793
|
+
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/rm-tenant.js)_
|
|
793
794
|
|
|
794
795
|
## `saltcorn run-benchmark [BASEURL]`
|
|
795
796
|
|
|
@@ -811,7 +812,7 @@ DESCRIPTION
|
|
|
811
812
|
Run benchmark
|
|
812
813
|
```
|
|
813
814
|
|
|
814
|
-
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/run-benchmark.js)_
|
|
815
|
+
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/run-benchmark.js)_
|
|
815
816
|
|
|
816
817
|
## `saltcorn run-js`
|
|
817
818
|
|
|
@@ -830,7 +831,7 @@ DESCRIPTION
|
|
|
830
831
|
Run javascript code
|
|
831
832
|
```
|
|
832
833
|
|
|
833
|
-
_See code: [src/commands/run-js.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/run-js.js)_
|
|
834
|
+
_See code: [src/commands/run-js.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/run-js.js)_
|
|
834
835
|
|
|
835
836
|
## `saltcorn run-sql`
|
|
836
837
|
|
|
@@ -849,7 +850,7 @@ DESCRIPTION
|
|
|
849
850
|
Run sql expression
|
|
850
851
|
```
|
|
851
852
|
|
|
852
|
-
_See code: [src/commands/run-sql.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/run-sql.js)_
|
|
853
|
+
_See code: [src/commands/run-sql.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/run-sql.js)_
|
|
853
854
|
|
|
854
855
|
## `saltcorn run-tests [PACKAGE]`
|
|
855
856
|
|
|
@@ -868,15 +869,15 @@ FLAGS
|
|
|
868
869
|
-l, --listTests List tests
|
|
869
870
|
-t, --testFilter=<value> Filter tests by suite or test name
|
|
870
871
|
-v, --verbose Verbose
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
872
|
+
--database=<value> Run on specified database. Default is saltcorn_test
|
|
873
|
+
--watch Watch files for changes and rerun tests related to changed files.
|
|
874
|
+
--watchAll Watch files for changes and rerun all tests.
|
|
874
875
|
|
|
875
876
|
DESCRIPTION
|
|
876
877
|
Run test suites
|
|
877
878
|
```
|
|
878
879
|
|
|
879
|
-
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/run-tests.js)_
|
|
880
|
+
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/run-tests.js)_
|
|
880
881
|
|
|
881
882
|
## `saltcorn run-trigger TRIGGER`
|
|
882
883
|
|
|
@@ -896,7 +897,7 @@ DESCRIPTION
|
|
|
896
897
|
Run a trigger
|
|
897
898
|
```
|
|
898
899
|
|
|
899
|
-
_See code: [src/commands/run-trigger.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/run-trigger.js)_
|
|
900
|
+
_See code: [src/commands/run-trigger.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/run-trigger.js)_
|
|
900
901
|
|
|
901
902
|
## `saltcorn scheduler`
|
|
902
903
|
|
|
@@ -913,7 +914,7 @@ DESCRIPTION
|
|
|
913
914
|
Run the Saltcorn scheduler
|
|
914
915
|
```
|
|
915
916
|
|
|
916
|
-
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/scheduler.js)_
|
|
917
|
+
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/scheduler.js)_
|
|
917
918
|
|
|
918
919
|
## `saltcorn serve`
|
|
919
920
|
|
|
@@ -924,20 +925,20 @@ USAGE
|
|
|
924
925
|
$ saltcorn serve [-p <value>] [-v] [-r] [-d] [-a] [-n] [-s] [--subdomain_offset <value>]
|
|
925
926
|
|
|
926
927
|
FLAGS
|
|
927
|
-
-a, --addschema
|
|
928
|
-
-d, --dev
|
|
929
|
-
-n, --nomigrate
|
|
930
|
-
-p, --port=<value>
|
|
931
|
-
-r, --watchReaper
|
|
932
|
-
-s, --noscheduler
|
|
933
|
-
-v, --verbose
|
|
934
|
-
|
|
928
|
+
-a, --addschema Add schema if missing
|
|
929
|
+
-d, --dev Run in dev mode and re-start on file changes
|
|
930
|
+
-n, --nomigrate No migrations
|
|
931
|
+
-p, --port=<value> [default: 3000] port
|
|
932
|
+
-r, --watchReaper Watch reaper
|
|
933
|
+
-s, --noscheduler No scheduler
|
|
934
|
+
-v, --verbose Verbose
|
|
935
|
+
--subdomain_offset=<value> Number of parts to remove to access subdomain in 'multi_tenant' mode
|
|
935
936
|
|
|
936
937
|
DESCRIPTION
|
|
937
938
|
Start the Saltcorn server
|
|
938
939
|
```
|
|
939
940
|
|
|
940
|
-
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/serve.js)_
|
|
941
|
+
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/serve.js)_
|
|
941
942
|
|
|
942
943
|
## `saltcorn set-cfg [KEY] [VALUE]`
|
|
943
944
|
|
|
@@ -962,7 +963,7 @@ DESCRIPTION
|
|
|
962
963
|
stored as a string.
|
|
963
964
|
```
|
|
964
965
|
|
|
965
|
-
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/set-cfg.js)_
|
|
966
|
+
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/set-cfg.js)_
|
|
966
967
|
|
|
967
968
|
## `saltcorn set-daily-time [MINS]`
|
|
968
969
|
|
|
@@ -982,7 +983,7 @@ DESCRIPTION
|
|
|
982
983
|
Set the time the default daily event will run, offset in minutes from the current time. Restart required.
|
|
983
984
|
```
|
|
984
985
|
|
|
985
|
-
_See code: [src/commands/set-daily-time.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/set-daily-time.js)_
|
|
986
|
+
_See code: [src/commands/set-daily-time.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/set-daily-time.js)_
|
|
986
987
|
|
|
987
988
|
## `saltcorn setup`
|
|
988
989
|
|
|
@@ -1002,7 +1003,7 @@ DESCRIPTION
|
|
|
1002
1003
|
configuration file
|
|
1003
1004
|
```
|
|
1004
1005
|
|
|
1005
|
-
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/setup.js)_
|
|
1006
|
+
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/setup.js)_
|
|
1006
1007
|
|
|
1007
1008
|
## `saltcorn setup-benchmark`
|
|
1008
1009
|
|
|
@@ -1020,7 +1021,7 @@ DESCRIPTION
|
|
|
1020
1021
|
Setup an instance for benchmarking
|
|
1021
1022
|
```
|
|
1022
1023
|
|
|
1023
|
-
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/setup-benchmark.js)_
|
|
1024
|
+
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/setup-benchmark.js)_
|
|
1024
1025
|
|
|
1025
1026
|
## `saltcorn sync-upload-data`
|
|
1026
1027
|
|
|
@@ -1041,7 +1042,7 @@ DESCRIPTION
|
|
|
1041
1042
|
Runs a sync for data supplied by the mobile app
|
|
1042
1043
|
```
|
|
1043
1044
|
|
|
1044
|
-
_See code: [src/commands/sync-upload-data.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/sync-upload-data.js)_
|
|
1045
|
+
_See code: [src/commands/sync-upload-data.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/sync-upload-data.js)_
|
|
1045
1046
|
|
|
1046
1047
|
## `saltcorn take-snapshot`
|
|
1047
1048
|
|
|
@@ -1059,7 +1060,7 @@ DESCRIPTION
|
|
|
1059
1060
|
Print a current snapshout to stdout
|
|
1060
1061
|
```
|
|
1061
1062
|
|
|
1062
|
-
_See code: [src/commands/take-snapshot.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/take-snapshot.js)_
|
|
1063
|
+
_See code: [src/commands/take-snapshot.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/take-snapshot.js)_
|
|
1063
1064
|
|
|
1064
1065
|
## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
|
|
1065
1066
|
|
|
@@ -1079,5 +1080,5 @@ DESCRIPTION
|
|
|
1079
1080
|
transform an existing field by applying a calculated expression
|
|
1080
1081
|
```
|
|
1081
1082
|
|
|
1082
|
-
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v1.1.1/packages/saltcorn-cli/src/commands/transform-field.js)_
|
|
1083
|
+
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v1.1.2-beta.1/packages/saltcorn-cli/src/commands/transform-field.js)_
|
|
1083
1084
|
<!-- commandsstop -->
|