@kitalive/sfdx-plugin 0.5.0 → 0.5.2
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 -32
- package/lib/commands/kit/script/execute.js +2 -4
- package/lib/commands/kit/script/execute.js.map +1 -1
- package/messages/data.bulk.md +2 -2
- package/messages/data.bulk.upsert.md +2 -2
- package/messages/object.fields.describe.md +2 -2
- package/messages/object.fields.setup.md +2 -2
- package/messages/script.execute.md +4 -3
- package/oclif.manifest.json +8 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -12,37 +12,34 @@ sf plugins install @kitalive/sfdx-plugin
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
14
|
<!-- usage -->
|
|
15
|
-
|
|
16
15
|
```sh-session
|
|
17
16
|
$ npm install -g @kitalive/sfdx-plugin
|
|
18
17
|
$ sf COMMAND
|
|
19
18
|
running command...
|
|
20
19
|
$ sf (--version)
|
|
21
|
-
@kitalive/sfdx-plugin/0.5.
|
|
20
|
+
@kitalive/sfdx-plugin/0.5.2 darwin-arm64 node-v18.15.0
|
|
22
21
|
$ sf --help [COMMAND]
|
|
23
22
|
USAGE
|
|
24
23
|
$ sf COMMAND
|
|
25
24
|
...
|
|
26
25
|
```
|
|
27
|
-
|
|
28
26
|
<!-- usagestop -->
|
|
29
27
|
|
|
30
28
|
## Commands
|
|
31
29
|
|
|
32
30
|
<!-- commands -->
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
- [`sf kit script execute`](#sf-kit-script-execute)
|
|
31
|
+
* [`sf kit data bulk delete`](#sf-kit-data-bulk-delete)
|
|
32
|
+
* [`sf kit data bulk insert`](#sf-kit-data-bulk-insert)
|
|
33
|
+
* [`sf kit data bulk query`](#sf-kit-data-bulk-query)
|
|
34
|
+
* [`sf kit data bulk update`](#sf-kit-data-bulk-update)
|
|
35
|
+
* [`sf kit data bulk upsert`](#sf-kit-data-bulk-upsert)
|
|
36
|
+
* [`sf kit data csv convert`](#sf-kit-data-csv-convert)
|
|
37
|
+
* [`sf kit layout assignments deploy`](#sf-kit-layout-assignments-deploy)
|
|
38
|
+
* [`sf kit layout assignments retrieve`](#sf-kit-layout-assignments-retrieve)
|
|
39
|
+
* [`sf kit object fields describe`](#sf-kit-object-fields-describe)
|
|
40
|
+
* [`sf kit object fields setup`](#sf-kit-object-fields-setup)
|
|
41
|
+
* [`sf kit script`](#sf-kit-script)
|
|
42
|
+
* [`sf kit script execute`](#sf-kit-script-execute)
|
|
46
43
|
|
|
47
44
|
## `sf kit data bulk delete`
|
|
48
45
|
|
|
@@ -115,9 +112,9 @@ EXAMPLES
|
|
|
115
112
|
|
|
116
113
|
$ sf kit data bulk insert -o Account -f ./path/to/Account.csv -m ./path/to/mapping.json
|
|
117
114
|
|
|
118
|
-
Insert
|
|
115
|
+
Insert MyObject__c records with convert.js:
|
|
119
116
|
|
|
120
|
-
$ sf kit data bulk insert -o
|
|
117
|
+
$ sf kit data bulk insert -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -w 10
|
|
121
118
|
```
|
|
122
119
|
|
|
123
120
|
## `sf kit data bulk query`
|
|
@@ -187,9 +184,9 @@ EXAMPLES
|
|
|
187
184
|
|
|
188
185
|
$ sf kit data bulk update -o Account -f ./path/to/Account.csv -m ./path/to/mapping.json
|
|
189
186
|
|
|
190
|
-
Update
|
|
187
|
+
Update MyObject__c records with convert.js:
|
|
191
188
|
|
|
192
|
-
$ sf kit data bulk update -o
|
|
189
|
+
$ sf kit data bulk update -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -w 10
|
|
193
190
|
```
|
|
194
191
|
|
|
195
192
|
## `sf kit data bulk upsert`
|
|
@@ -237,10 +234,10 @@ EXAMPLES
|
|
|
237
234
|
|
|
238
235
|
$ sf kit data bulk upsert -o Account -f ./path/to/Account.csv -m ./path/to/mapping.json
|
|
239
236
|
|
|
240
|
-
Upsert
|
|
237
|
+
Upsert MyObject__c with convert.js and external ID
|
|
241
238
|
|
|
242
|
-
$ sf kit data bulk upsert -o
|
|
243
|
-
|
|
239
|
+
$ sf kit data bulk upsert -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -i MyExternalId__c \
|
|
240
|
+
-w 10
|
|
244
241
|
```
|
|
245
242
|
|
|
246
243
|
## `sf kit data csv convert`
|
|
@@ -364,9 +361,9 @@ EXAMPLES
|
|
|
364
361
|
|
|
365
362
|
$ sf kit object fields describe -s Account -f path/to/account_fields.csv
|
|
366
363
|
|
|
367
|
-
Output
|
|
364
|
+
Output CustomObject__c fields of the specified org as JSON format:
|
|
368
365
|
|
|
369
|
-
$ sf kit object fields describe -o me@my.org -s
|
|
366
|
+
$ sf kit object fields describe -o me@my.org -s CustomObject__c --json
|
|
370
367
|
```
|
|
371
368
|
|
|
372
369
|
## `sf kit object fields setup`
|
|
@@ -393,9 +390,9 @@ EXAMPLES
|
|
|
393
390
|
|
|
394
391
|
$ sf kit object fields setup -s Account -f path/to/account_fields.csv
|
|
395
392
|
|
|
396
|
-
Upsert and delete
|
|
393
|
+
Upsert and delete CustomObject__c fields to the specified org:
|
|
397
394
|
|
|
398
|
-
$ sf kit object fields setup -o me@my.org -s
|
|
395
|
+
$ sf kit object fields setup -o me@my.org -s CustomObject__c -f path/to/custom_object_fields.csv --delete
|
|
399
396
|
```
|
|
400
397
|
|
|
401
398
|
## `sf kit script`
|
|
@@ -431,14 +428,16 @@ EXAMPLES
|
|
|
431
428
|
|
|
432
429
|
$ sf kit script -f ./path/to/script.js
|
|
433
430
|
|
|
431
|
+
Execute from js file with arguments:
|
|
432
|
+
|
|
433
|
+
$ sf kit script -f ./path/to/script.js -- --opt1 val1 --opt2 val2 arg1 arg2
|
|
434
|
+
|
|
434
435
|
Execute in REPL mode:
|
|
435
436
|
|
|
436
437
|
$ sf kit script -o target-org
|
|
437
438
|
|
|
438
439
|
query a account from org in REPL
|
|
439
440
|
> await conn.query('SELECT Id, Name FROM Account LIMIT 1')
|
|
440
|
-
Top level await is not enabled by default in REPL before Node.js v16
|
|
441
|
-
$ NODE_OPTIONS=--experimental-repl-await sf kit script
|
|
442
441
|
```
|
|
443
442
|
|
|
444
443
|
## `sf kit script execute`
|
|
@@ -474,14 +473,15 @@ EXAMPLES
|
|
|
474
473
|
|
|
475
474
|
$ sf kit script execute -f ./path/to/script.js
|
|
476
475
|
|
|
476
|
+
Execute from js file with arguments:
|
|
477
|
+
|
|
478
|
+
$ sf kit script execute -f ./path/to/script.js -- --opt1 val1 --opt2 val2 arg1 arg2
|
|
479
|
+
|
|
477
480
|
Execute in REPL mode:
|
|
478
481
|
|
|
479
482
|
$ sf kit script execute -o target-org
|
|
480
483
|
|
|
481
484
|
query a account from org in REPL
|
|
482
485
|
> await conn.query('SELECT Id, Name FROM Account LIMIT 1')
|
|
483
|
-
Top level await is not enabled by default in REPL before Node.js v16
|
|
484
|
-
$ NODE_OPTIONS=--experimental-repl-await sf kit script execute
|
|
485
486
|
```
|
|
486
|
-
|
|
487
487
|
<!-- commandsstop -->
|
|
@@ -10,7 +10,7 @@ core_1.Messages.importMessagesDirectory(__dirname);
|
|
|
10
10
|
const messages = core_1.Messages.loadMessages('@kitalive/sfdx-plugin', 'script.execute');
|
|
11
11
|
class ScriptExecute extends sf_plugins_core_1.SfCommand {
|
|
12
12
|
async run() {
|
|
13
|
-
const { flags } = await this.parse(ScriptExecute);
|
|
13
|
+
const { flags, argv } = await this.parse(ScriptExecute);
|
|
14
14
|
const conn = flags['target-org']?.getConnection(flags['api-version']);
|
|
15
15
|
module.paths.push('./node_modules');
|
|
16
16
|
module.paths.push('.');
|
|
@@ -21,12 +21,10 @@ class ScriptExecute extends sf_plugins_core_1.SfCommand {
|
|
|
21
21
|
return require(name);
|
|
22
22
|
};
|
|
23
23
|
if (flags.file) {
|
|
24
|
-
const fileIndex = process.argv.indexOf(flags.file);
|
|
25
|
-
const argv = (0, yargs_1.default)([]).parse(process.argv.slice(fileIndex + 1));
|
|
26
24
|
const script = fs.readFileSync(flags.file).toString('utf8');
|
|
27
25
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
28
26
|
const asyncFunction = Object.getPrototypeOf(async () => { }).constructor;
|
|
29
|
-
await new asyncFunction('require', 'argv', 'context', 'conn', script)(createLoader(path.dirname(flags.file)), argv, this, conn);
|
|
27
|
+
await new asyncFunction('require', 'argv', 'context', 'conn', script)(createLoader(path.dirname(flags.file)), (0, yargs_1.default)([]).parse(argv), this, conn);
|
|
30
28
|
return;
|
|
31
29
|
}
|
|
32
30
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../src/commands/kit/script/execute.ts"],"names":[],"mappings":";;AAAA,6BAA6B;AAC7B,6BAA6B;AAC7B,2CAA4C;AAC5C,iEAIqC;AACrC,+BAA+B;AAC/B,iCAA0B;AAE1B,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CACpC,uBAAuB,EACvB,gBAAgB,CACjB,CAAC;AAEF,MAAqB,aAAc,SAAQ,2BAAe;IAkBjD,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../src/commands/kit/script/execute.ts"],"names":[],"mappings":";;AAAA,6BAA6B;AAC7B,6BAA6B;AAC7B,2CAA4C;AAC5C,iEAIqC;AACrC,+BAA+B;AAC/B,iCAA0B;AAE1B,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CACpC,uBAAuB,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<%= config.bin %> <%= command.id %> -o
|
|
9
|
+
<%= config.bin %> <%= command.id %> -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -w 10
|
|
10
10
|
|
|
11
11
|
# description
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
<%= config.bin %> <%= command.id %> -o Account -f ./path/to/Account.csv -m ./path/to/mapping.json
|
|
6
6
|
|
|
7
|
-
- Upsert
|
|
7
|
+
- Upsert MyObject__c with convert.js and external ID
|
|
8
8
|
|
|
9
|
-
<%= config.bin %> <%= command.id %> -o
|
|
9
|
+
<%= config.bin %> <%= command.id %> -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -i MyExternalId__c -w 10
|
|
10
10
|
|
|
11
11
|
# flags.externalid.summary
|
|
12
12
|
|
|
@@ -8,9 +8,9 @@ Describe sobject fields information.
|
|
|
8
8
|
|
|
9
9
|
<%= config.bin %> <%= command.id %> -s Account -f path/to/account_fields.csv
|
|
10
10
|
|
|
11
|
-
- Output
|
|
11
|
+
- Output CustomObject__c fields of the specified org as JSON format:
|
|
12
12
|
|
|
13
|
-
<%= config.bin %> <%= command.id %> -o me@my.org -s
|
|
13
|
+
<%= config.bin %> <%= command.id %> -o me@my.org -s CustomObject__c --json
|
|
14
14
|
|
|
15
15
|
# flags.sobject.summary
|
|
16
16
|
|
|
@@ -8,9 +8,9 @@ Upsert and delete sobject fields from a CSV file.
|
|
|
8
8
|
|
|
9
9
|
<%= config.bin %> <%= command.id %> -s Account -f path/to/account_fields.csv
|
|
10
10
|
|
|
11
|
-
- Upsert and delete
|
|
11
|
+
- Upsert and delete CustomObject__c fields to the specified org:
|
|
12
12
|
|
|
13
|
-
<%= config.bin %> <%= command.id %> -o me@my.org -s
|
|
13
|
+
<%= config.bin %> <%= command.id %> -o me@my.org -s CustomObject__c -f path/to/custom_object_fields.csv --delete
|
|
14
14
|
|
|
15
15
|
# flags.sobject.summary
|
|
16
16
|
|
|
@@ -16,6 +16,10 @@ Available variables in Node.js scripts
|
|
|
16
16
|
|
|
17
17
|
<%= config.bin %> <%= command.id %> -f ./path/to/script.js
|
|
18
18
|
|
|
19
|
+
- Execute from js file with arguments:
|
|
20
|
+
|
|
21
|
+
<%= config.bin %> <%= command.id %> -f ./path/to/script.js -- --opt1 val1 --opt2 val2 arg1 arg2
|
|
22
|
+
|
|
19
23
|
- Execute in REPL mode:
|
|
20
24
|
|
|
21
25
|
<%= config.bin %> <%= command.id %> -o target-org
|
|
@@ -24,9 +28,6 @@ Available variables in Node.js scripts
|
|
|
24
28
|
|
|
25
29
|
> await conn.query('SELECT Id, Name FROM Account LIMIT 1')
|
|
26
30
|
|
|
27
|
-
Top level await is not enabled by default in REPL before Node.js v16
|
|
28
|
-
$ NODE_OPTIONS=--experimental-repl-await <%= config.bin %> <%= command.id %>
|
|
29
|
-
|
|
30
31
|
# flags.file.summary
|
|
31
32
|
|
|
32
33
|
The path of the Node.js script file to execute.
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.5.
|
|
2
|
+
"version": "0.5.2",
|
|
3
3
|
"commands": {
|
|
4
4
|
"kit:script:execute": {
|
|
5
5
|
"id": "kit:script:execute",
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
],
|
|
15
15
|
"examples": [
|
|
16
16
|
"Execute from js file:\n<%= config.bin %> <%= command.id %> -f ./path/to/script.js",
|
|
17
|
+
"Execute from js file with arguments:\n<%= config.bin %> <%= command.id %> -f ./path/to/script.js -- --opt1 val1 --opt2 val2 arg1 arg2",
|
|
17
18
|
"Execute in REPL mode:\n<%= config.bin %> <%= command.id %> -o target-org",
|
|
18
|
-
"query a account from org in REPL\n> await conn.query('SELECT Id, Name FROM Account LIMIT 1')
|
|
19
|
+
"query a account from org in REPL\n> await conn.query('SELECT Id, Name FROM Account LIMIT 1')"
|
|
19
20
|
],
|
|
20
21
|
"flags": {
|
|
21
22
|
"json": {
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
"aliases": [],
|
|
140
141
|
"examples": [
|
|
141
142
|
"Insert Account records with mapping.json:\n<%= config.bin %> <%= command.id %> -o Account -f ./path/to/Account.csv -m ./path/to/mapping.json",
|
|
142
|
-
"Insert
|
|
143
|
+
"Insert MyObject__c records with convert.js:\n<%= config.bin %> <%= command.id %> -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -w 10"
|
|
143
144
|
],
|
|
144
145
|
"flags": {
|
|
145
146
|
"json": {
|
|
@@ -351,7 +352,7 @@
|
|
|
351
352
|
"aliases": [],
|
|
352
353
|
"examples": [
|
|
353
354
|
"Update Account records with mapping.json:\n<%= config.bin %> <%= command.id %> -o Account -f ./path/to/Account.csv -m ./path/to/mapping.json",
|
|
354
|
-
"Update
|
|
355
|
+
"Update MyObject__c records with convert.js:\n<%= config.bin %> <%= command.id %> -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -w 10"
|
|
355
356
|
],
|
|
356
357
|
"flags": {
|
|
357
358
|
"json": {
|
|
@@ -507,7 +508,7 @@
|
|
|
507
508
|
"aliases": [],
|
|
508
509
|
"examples": [
|
|
509
510
|
"Upsert Account records with mapping.json:\n<%= config.bin %> <%= command.id %> -o Account -f ./path/to/Account.csv -m ./path/to/mapping.json",
|
|
510
|
-
"Upsert
|
|
511
|
+
"Upsert MyObject__c with convert.js and external ID\n<%= config.bin %> <%= command.id %> -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -i MyExternalId__c -w 10"
|
|
511
512
|
],
|
|
512
513
|
"flags": {
|
|
513
514
|
"json": {
|
|
@@ -896,7 +897,7 @@
|
|
|
896
897
|
"aliases": [],
|
|
897
898
|
"examples": [
|
|
898
899
|
"Describe Account fields of the default org and save to csv file:\n<%= config.bin %> <%= command.id %> -s Account -f path/to/account_fields.csv",
|
|
899
|
-
"Output
|
|
900
|
+
"Output CustomObject__c fields of the specified org as JSON format:\n<%= config.bin %> <%= command.id %> -o me@my.org -s CustomObject__c --json"
|
|
900
901
|
],
|
|
901
902
|
"flags": {
|
|
902
903
|
"json": {
|
|
@@ -953,7 +954,7 @@
|
|
|
953
954
|
"aliases": [],
|
|
954
955
|
"examples": [
|
|
955
956
|
"Upsert Account fields to the default org:\n<%= config.bin %> <%= command.id %> -s Account -f path/to/account_fields.csv",
|
|
956
|
-
"Upsert and delete
|
|
957
|
+
"Upsert and delete CustomObject__c fields to the specified org:\n<%= config.bin %> <%= command.id %> -o me@my.org -s CustomObject__c -f path/to/custom_object_fields.csv --delete"
|
|
957
958
|
],
|
|
958
959
|
"flags": {
|
|
959
960
|
"json": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitalive/sfdx-plugin",
|
|
3
3
|
"description": "Kitalive SFDX plugin",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"author": "Akihiro Ono",
|
|
6
6
|
"bugs": "https://github.com/Kitalive-Inc/sfdx-plugin/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"docs": "sf-docs",
|
|
88
88
|
"format": "wireit",
|
|
89
89
|
"lint": "wireit",
|
|
90
|
-
"postinstall": "yarn husky install",
|
|
91
90
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
92
91
|
"prepack": "sf-prepack",
|
|
92
|
+
"prepare": "husky install",
|
|
93
93
|
"test": "wireit",
|
|
94
94
|
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
|
|
95
95
|
"test:only": "wireit",
|