@salesforce/plugin-data 0.6.7 → 0.6.10
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/CHANGELOG.md +14 -0
- package/LICENSE.txt +1 -1
- package/README.md +10 -10
- package/lib/commands/force/data/record/update.js +1 -0
- package/lib/commands/force/data/record/update.js.map +1 -1
- package/lib/commands/force/data/soql/query.d.ts +1 -0
- package/lib/commands/force/data/soql/query.js +18 -8
- package/lib/commands/force/data/soql/query.js.map +1 -1
- package/lib/dataCommand.d.ts +3 -3
- package/lib/dataCommand.js +12 -1
- package/lib/dataCommand.js.map +1 -1
- package/lib/reporters.d.ts +1 -1
- package/lib/reporters.js +27 -4
- package/lib/reporters.js.map +1 -1
- package/messages/record.update.json +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.6.10](https://github.com/salesforcecli/plugin-data/compare/v0.6.9...v0.6.10) (2022-03-10)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- bump core and jsforce versions ([#283](https://github.com/salesforcecli/plugin-data/issues/283)) ([11908be](https://github.com/salesforcecli/plugin-data/commit/11908bedd9538aeddc1631afa99f4ae01150935d))
|
|
10
|
+
|
|
11
|
+
### [0.6.9](https://github.com/salesforcecli/plugin-data/compare/v0.6.8...v0.6.9) (2022-02-07)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- fix 3 data bugs ([801a7aa](https://github.com/salesforcecli/plugin-data/commit/801a7aaaae5346c8c6617ba6c8dc5ca297a86f17))
|
|
16
|
+
|
|
17
|
+
### [0.6.8](https://github.com/salesforcecli/plugin-data/compare/v0.6.7...v0.6.8) (2022-01-03)
|
|
18
|
+
|
|
5
19
|
### [0.6.7](https://github.com/salesforcecli/plugin-data/compare/v0.6.6...v0.6.7) (2021-12-28)
|
|
6
20
|
|
|
7
21
|
### [0.6.6](https://github.com/salesforcecli/plugin-data/compare/v0.6.5...v0.6.6) (2021-12-02)
|
package/LICENSE.txt
CHANGED
package/README.md
CHANGED
|
@@ -123,7 +123,7 @@ EXAMPLES
|
|
|
123
123
|
sfdx force:data:bulk:delete -s MyObject__c -f ./path/to/file.csv
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.
|
|
126
|
+
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.9/src/commands/force/data/bulk/delete.ts)_
|
|
127
127
|
|
|
128
128
|
## `sfdx force:data:bulk:status -i <string> [-b <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
129
129
|
|
|
@@ -162,7 +162,7 @@ EXAMPLES
|
|
|
162
162
|
sfdx force:data:bulk:status -i 750xx000000005sAAA -b 751xx000000005nAAA
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.
|
|
165
|
+
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.9/src/commands/force/data/bulk/status.ts)_
|
|
166
166
|
|
|
167
167
|
## `sfdx force:data:bulk:upsert -i <string> -f <filepath> -s <string> [-w <minutes>] [-r] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
168
168
|
|
|
@@ -215,7 +215,7 @@ EXAMPLES
|
|
|
215
215
|
sfdx force:data:bulk:upsert -s MyObject__c -f ./path/to/file.csv -i Id -w 2
|
|
216
216
|
```
|
|
217
217
|
|
|
218
|
-
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.
|
|
218
|
+
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.9/src/commands/force/data/bulk/upsert.ts)_
|
|
219
219
|
|
|
220
220
|
## `sfdx force:data:record:create -s <string> -v <string> [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
221
221
|
|
|
@@ -265,7 +265,7 @@ EXAMPLES
|
|
|
265
265
|
sfdx force:data:record:create -s Account -v "Name=Acme" --perflog --json
|
|
266
266
|
```
|
|
267
267
|
|
|
268
|
-
_See code: [src/commands/force/data/record/create.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.
|
|
268
|
+
_See code: [src/commands/force/data/record/create.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.9/src/commands/force/data/record/create.ts)_
|
|
269
269
|
|
|
270
270
|
## `sfdx force:data:record:delete -s <string> [-i <id> | -w <string>] [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
271
271
|
|
|
@@ -316,7 +316,7 @@ EXAMPLES
|
|
|
316
316
|
sfdx force:data:record:delete -t -s TraceFlag -i 7tf170000009cU6AAI --perflog --json
|
|
317
317
|
```
|
|
318
318
|
|
|
319
|
-
_See code: [src/commands/force/data/record/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.
|
|
319
|
+
_See code: [src/commands/force/data/record/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.9/src/commands/force/data/record/delete.ts)_
|
|
320
320
|
|
|
321
321
|
## `sfdx force:data:record:get -s <string> [-i <id> | -w <string>] [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
322
322
|
|
|
@@ -368,7 +368,7 @@ EXAMPLES
|
|
|
368
368
|
sfdx force:data:record:get -t -s TraceFlag -i 7tf170000009cUBAAY --perflog --json
|
|
369
369
|
```
|
|
370
370
|
|
|
371
|
-
_See code: [src/commands/force/data/record/get.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.
|
|
371
|
+
_See code: [src/commands/force/data/record/get.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.9/src/commands/force/data/record/get.ts)_
|
|
372
372
|
|
|
373
373
|
## `sfdx force:data:record:update -s <string> -v <string> [-i <id> | -w <string>] [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
374
374
|
|
|
@@ -421,7 +421,7 @@ EXAMPLES
|
|
|
421
421
|
sfdx force:data:record:update -s Account -i 001D000000Kv3dl -v "Name=NewAcme" --perflog --json
|
|
422
422
|
```
|
|
423
423
|
|
|
424
|
-
_See code: [src/commands/force/data/record/update.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.
|
|
424
|
+
_See code: [src/commands/force/data/record/update.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.9/src/commands/force/data/record/update.ts)_
|
|
425
425
|
|
|
426
426
|
## `sfdx force:data:soql:query -q <string> [-t] [-r human|csv|json] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
427
427
|
|
|
@@ -466,7 +466,7 @@ EXAMPLES
|
|
|
466
466
|
sfdx force:data:soql:query -q "SELECT Name FROM ApexTrigger" -t
|
|
467
467
|
```
|
|
468
468
|
|
|
469
|
-
_See code: [src/commands/force/data/soql/query.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.
|
|
469
|
+
_See code: [src/commands/force/data/soql/query.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.9/src/commands/force/data/soql/query.ts)_
|
|
470
470
|
|
|
471
471
|
## `sfdx force:data:tree:export -q <string> [-p] [-x <string>] [-d <directory>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
472
472
|
|
|
@@ -511,7 +511,7 @@ EXAMPLES
|
|
|
511
511
|
sfdx force:data:tree:export -q <path to file containing soql query> -x export-demo -d /tmp/sfdx-out -p
|
|
512
512
|
```
|
|
513
513
|
|
|
514
|
-
_See code: [src/commands/force/data/tree/export.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.
|
|
514
|
+
_See code: [src/commands/force/data/tree/export.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.9/src/commands/force/data/tree/export.ts)_
|
|
515
515
|
|
|
516
516
|
## `sfdx force:data:tree:import [-f <array> | -p <filepath>] [--confighelp] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
517
517
|
|
|
@@ -562,6 +562,6 @@ EXAMPLES
|
|
|
562
562
|
sfdx force:data:tree:import -p Account-Contact-plan.json -u me@my.org
|
|
563
563
|
```
|
|
564
564
|
|
|
565
|
-
_See code: [src/commands/force/data/tree/import.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.
|
|
565
|
+
_See code: [src/commands/force/data/tree/import.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.9/src/commands/force/data/tree/import.ts)_
|
|
566
566
|
|
|
567
567
|
<!-- commandsstop -->
|
|
@@ -41,6 +41,7 @@ class Update extends dataCommand_1.DataCommand {
|
|
|
41
41
|
if (Reflect.has(error, 'errorCode') && Reflect.has(error, 'fields')) {
|
|
42
42
|
throw new core_1.SfdxError(messages.getMessage('updateFailureWithFields', [
|
|
43
43
|
Reflect.get(error, 'errorCode'),
|
|
44
|
+
Reflect.get(error, 'message'),
|
|
44
45
|
Reflect.get(error, 'fields'),
|
|
45
46
|
]));
|
|
46
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../src/commands/force/data/record/update.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yBAAyB;AAEzB,iDAAyD;AACzD,2CAAuD;AAEvD,yDAAsD;AAEtD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,eAAe,CAAC,CAAC;AACnF,MAAM,cAAc,GAAG,eAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAAC;AAEpF,MAAqB,MAAO,SAAQ,yBAAW;IAoCtC,KAAK,CAAC,GAAG;QACd,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAE/B,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;QAExC,IAAI,MAAM,GAAG,SAAS,CAAC;QACvB,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACrE,MAAM,SAAS,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAW,CAAC;QACvG,IAAI;YACF,MAAM,YAAY,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAChE,YAAY,CAAC,EAAE,GAAG,SAAS,CAAC;YAC5B,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YAClD,IAAI,MAAM,CAAC,OAAO,EAAE;gBAClB,IAA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AI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC;QACzC,SAAS,EAAE,CAAC,WAAW,CAAC;KACzB,CAAC;IACF,MAAM,EAAE,eAAK,CAAC,MAAM,CAAC;QACnB,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC;KAC3C,CAAC;IACF,aAAa,EAAE,eAAK,CAAC,OAAO,CAAC;QAC3B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC;KAClD,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC,oBAAoB,CAAC;QAC5D,SAAS,EAAE,CAAC,MAAM,CAAC;KACpB,CAAC;CACH,CAAC"}
|
|
@@ -20,6 +20,7 @@ export declare class SoqlQuery {
|
|
|
20
20
|
* @param query
|
|
21
21
|
*/
|
|
22
22
|
retrieveColumns(connection: Connection | Tooling, query: string): Promise<Field[]>;
|
|
23
|
+
private recursivelyFindColumns;
|
|
23
24
|
private searchSubColumns;
|
|
24
25
|
}
|
|
25
26
|
export declare class DataSoqlQueryCommand extends DataCommand {
|
|
@@ -54,8 +54,11 @@ class SoqlQuery {
|
|
|
54
54
|
// eslint-disable-next-line no-underscore-dangle
|
|
55
55
|
const columnUrl = `${connection._baseUrl()}/query?q=${encodeURIComponent(query)}&columns=true`;
|
|
56
56
|
const results = (0, ts_types_1.toJsonMap)(await connection.request(columnUrl));
|
|
57
|
+
return this.recursivelyFindColumns((0, ts_types_1.ensureJsonArray)(results.columnMetadata));
|
|
58
|
+
}
|
|
59
|
+
recursivelyFindColumns(data) {
|
|
57
60
|
const columns = [];
|
|
58
|
-
for (let column of
|
|
61
|
+
for (let column of data) {
|
|
59
62
|
column = (0, ts_types_1.ensureJsonMap)(column);
|
|
60
63
|
const name = (0, ts_types_1.ensureString)(column.columnName);
|
|
61
64
|
if ((0, ts_types_1.isJsonArray)(column.joinColumns) && column.joinColumns.length > 0) {
|
|
@@ -65,13 +68,20 @@ class SoqlQuery {
|
|
|
65
68
|
name,
|
|
66
69
|
fields: [],
|
|
67
70
|
};
|
|
68
|
-
for (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
for (let subcolumn of column.joinColumns) {
|
|
72
|
+
subcolumn = (0, ts_types_1.ensureJsonMap)(subcolumn);
|
|
73
|
+
if ((0, ts_types_1.isJsonArray)(column.joinColumns) && column.joinColumns.length > 0) {
|
|
74
|
+
if (field.fields)
|
|
75
|
+
field.fields.push(...this.recursivelyFindColumns([subcolumn]));
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
const f = {
|
|
79
|
+
fieldType: dataSoqlQueryTypes_1.FieldType.field,
|
|
80
|
+
name: (0, ts_types_1.ensureString)((0, ts_types_1.ensureJsonMap)(subcolumn).columnName),
|
|
81
|
+
};
|
|
82
|
+
if (field.fields)
|
|
83
|
+
field.fields.push(f);
|
|
84
|
+
}
|
|
75
85
|
}
|
|
76
86
|
columns.push(field);
|
|
77
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../src/commands/force/data/soql/query.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,iDAAyD;AACzD,2CAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../src/commands/force/data/soql/query.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,iDAAyD;AACzD,2CAAgE;AAChE,mDAS8B;AAE9B,qDAA8F;AAC9F,uEAAmF;AACnF,yDAAsD;AAEtD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ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AAM,CAAC;QACjC,OAAO,EAAE,OAAO;KACjB,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC,oBAAoB,CAAC;QAC5D,SAAS,EAAE,CAAC,MAAM,CAAC;KACpB,CAAC;CACH,CAAC"}
|
package/lib/dataCommand.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SfdxCommand } from '@salesforce/command';
|
|
2
2
|
import { AnyJson, Dictionary } from '@salesforce/ts-types';
|
|
3
3
|
import { Org } from '@salesforce/core';
|
|
4
|
-
import { BaseConnection, ErrorResult, Record, SObject } from 'jsforce';
|
|
4
|
+
import { BaseConnection, ErrorResult, Record as jsforceRecord, SObject } from 'jsforce';
|
|
5
5
|
export interface Metric {
|
|
6
6
|
requestPath: string;
|
|
7
7
|
perfMetrics: AnyJson;
|
|
@@ -26,8 +26,8 @@ export declare abstract class DataCommand extends SfdxCommand {
|
|
|
26
26
|
*/
|
|
27
27
|
ensureOrg(): Org;
|
|
28
28
|
getConnection(): BaseConnection;
|
|
29
|
-
query(sobject: SObject<unknown>, where: string): Promise<
|
|
30
|
-
protected stringToDictionary(str: string): Dictionary<string | boolean
|
|
29
|
+
query(sobject: SObject<unknown>, where: string): Promise<jsforceRecord<unknown>>;
|
|
30
|
+
protected stringToDictionary(str: string): Dictionary<string | boolean | Record<string, unknown>>;
|
|
31
31
|
protected normalize<T>(results: T | T[]): T;
|
|
32
32
|
protected logNestedObject(obj: never, indentation?: number): void;
|
|
33
33
|
/**
|
package/lib/dataCommand.js
CHANGED
|
@@ -143,7 +143,18 @@ class DataCommand extends command_1.SfdxCommand {
|
|
|
143
143
|
}
|
|
144
144
|
else {
|
|
145
145
|
const key = pair.substr(0, eqPosition);
|
|
146
|
-
|
|
146
|
+
if (pair.includes('{') && pair.includes('}')) {
|
|
147
|
+
try {
|
|
148
|
+
constructedObject[key] = JSON.parse(pair.substr(eqPosition + 1));
|
|
149
|
+
}
|
|
150
|
+
catch {
|
|
151
|
+
// the data contained { and }, but wasn't valid JSON, default to parsing as-is
|
|
152
|
+
constructedObject[key] = this.convertToBooleanIfApplicable(pair.substr(eqPosition + 1));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
constructedObject[key] = this.convertToBooleanIfApplicable(pair.substr(eqPosition + 1));
|
|
157
|
+
}
|
|
147
158
|
}
|
|
148
159
|
});
|
|
149
160
|
return constructedObject;
|
package/lib/dataCommand.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataCommand.js","sourceRoot":"","sources":["../src/dataCommand.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iDAAkD;AAClD,mDAA0E;AAC1E,2CAAgE;AAEhE,6DAA6D;AAC7D,qDAAqD;AACrD,gDAAgD;AAEhD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAAC;AAmB9E,qIAAqI;AACrI,mEAAmE;AACnE,MAAM,qBAAqB,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC;AACxD,OAAO,CAAC,SAAS,CAAC,OAAO,GAAG,UAAU,GAAY,EAAE,GAAG,IAAe;IACpE,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,QAAkB,EAAE,EAAE;QAC3C,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC;QAC7C,IAAI,OAAO,EAAE;YACX,mEAAmE;YACnE,WAAW,CAAC,SAAS,CAAC;gBACpB,WAAW,EAAE,QAAQ,CAAC,GAAG,CAAC,IAAI;gBAC9B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAY;aAC5C,CAAC,CAAC;SACJ;IACH,CAAC,CAAC,CAAC;IACH,OAAO,qBAAqB,CAAC,IAAI,C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C,CAAC,CAAC;SAC3C;QAED,OAAO,aAAa,CAAC;IACvB,CAAC;;AArMH,kCAsMC;AArMgB,mBAAO,GAAa,EAAE,CAAC"}
|
package/lib/reporters.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Logger } from '@salesforce/core';
|
|
2
2
|
import { UX } from '@salesforce/command';
|
|
3
3
|
import { Optional } from '@salesforce/ts-types';
|
|
4
|
-
import {
|
|
4
|
+
import { Field, SoqlQueryResult } from './dataSoqlQueryTypes';
|
|
5
5
|
export declare class Reporter {
|
|
6
6
|
protected ux: UX;
|
|
7
7
|
protected logger: Logger;
|
package/lib/reporters.js
CHANGED
|
@@ -109,11 +109,29 @@ class HumanReporter extends QueryReporter {
|
|
|
109
109
|
}
|
|
110
110
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
111
111
|
massageRows(queryResults, children, aggregates) {
|
|
112
|
+
// some fields will return a JSON object that isn't accessible via the query (SELECT Metadata FROM RemoteProxy)
|
|
113
|
+
// some will return a JSON that IS accessible via the query (SELECT owner.Profile.Name FROM Lead)
|
|
114
|
+
// querying (SELECT Metadata.isActive FROM RemoteProxy) throws a SOQL validation error, so we have to display the entire Metadata object
|
|
115
|
+
queryResults.map((qr) => {
|
|
116
|
+
const result = qr;
|
|
117
|
+
this.data.columns.forEach((col) => {
|
|
118
|
+
var _a;
|
|
119
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
120
|
+
const entry = Reflect.get(result, col.name);
|
|
121
|
+
if (typeof entry === 'object' && col.fieldType === dataSoqlQueryTypes_1.FieldType.field) {
|
|
122
|
+
Reflect.set(result, col.name, JSON.stringify(entry, null, 2));
|
|
123
|
+
}
|
|
124
|
+
else if (typeof entry === 'object' && ((_a = col.fields) === null || _a === void 0 ? void 0 : _a.length) && entry) {
|
|
125
|
+
col.fields.forEach((field) => {
|
|
126
|
+
Reflect.set(result, `${col.name}.${field.name}`, (0, ts_types_1.get)(result, `${col.name}.records[0].${field.name}`));
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
});
|
|
112
131
|
// There are subqueries or aggregates. Massage the data.
|
|
113
132
|
let qr;
|
|
114
133
|
if (children.length > 0 || aggregates.length > 0) {
|
|
115
134
|
qr = queryResults.reduce((newResults, result) => {
|
|
116
|
-
newResults.push(result);
|
|
117
135
|
// Aggregates are soql functions that aggregate data, like "SELECT avg(total)" and
|
|
118
136
|
// are returned in the data as exprX. Aggregates can have aliases, like "avg(total) totalAverage"
|
|
119
137
|
// and are returned in the data as the alias.
|
|
@@ -140,15 +158,17 @@ class HumanReporter extends QueryReporter {
|
|
|
140
158
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
141
159
|
childRecords.forEach((record) => {
|
|
142
160
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
143
|
-
const newRecord = Object.assign({});
|
|
144
161
|
Object.entries(record).forEach(([key, value]) => {
|
|
145
|
-
|
|
162
|
+
// merge subqueries with the "parent" so they are on the same row
|
|
163
|
+
Reflect.defineProperty(result, `${child.toString()}.${key}`, {
|
|
164
|
+
value: value ? value : chalk.bold('null'),
|
|
165
|
+
});
|
|
146
166
|
});
|
|
147
|
-
newResults.push(newRecord);
|
|
148
167
|
});
|
|
149
168
|
}
|
|
150
169
|
});
|
|
151
170
|
}
|
|
171
|
+
newResults.push(result);
|
|
152
172
|
return newResults;
|
|
153
173
|
}, []);
|
|
154
174
|
}
|
|
@@ -190,6 +210,9 @@ class CsvReporter extends QueryReporter {
|
|
|
190
210
|
if ((0, ts_types_1.isString)(value)) {
|
|
191
211
|
return this.escape(value);
|
|
192
212
|
}
|
|
213
|
+
else if (typeof value === 'object') {
|
|
214
|
+
return this.escape(JSON.stringify(value));
|
|
215
|
+
}
|
|
193
216
|
return value;
|
|
194
217
|
});
|
|
195
218
|
this.log(values.join(SEPARATOR));
|
package/lib/reporters.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{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CAAC,aAAa,EAAE;oBACtD,IAAI,KAAK,CAAC,KAAK,EAAE;wBACf,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;qBAClC;yBAAM;wBACL,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;qBACjC;iBACF;qBAAM;oBACL,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBACjC;YACH,CAAC,CAAC,CAAC;SACJ;aAAM;YACL,cAAc,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;SAC3D;QACD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF;AAvHD,kCAuHC;AAED,MAAa,YAAa,SAAQ,aAAa;IAC7C,YAAmB,IAAqB,EAAE,OAAgB,EAAE,EAAM,EAAE,MAAc;QAChF,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC;IAEM,GAAG;QACR,OAAO;IACT,CAAC;IAEM,OAAO;QACZ,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF;AAZD,oCAYC;AAED;;GAEG;AACU,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,aAAa;IACpB,GAAG,EAAE,WAAW;IAChB,IAAI,EAAE,YAAY;CACnB,CAAC"}
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
],
|
|
15
15
|
"updateSuccess": "Successfully updated record: %s.",
|
|
16
16
|
"updateFailure": "Failed to update record. %s",
|
|
17
|
-
"updateFailureWithFields": "Failed to update record with code %s. Fields: %s"
|
|
17
|
+
"updateFailureWithFields": "Failed to update record with code %s. Message: %s. Fields: %s."
|
|
18
18
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.6.7","commands":{"force:data:bulk:delete":{"id":"force:data:bulk:delete","description":"bulk delete records from a csv file\nThe file must be a CSV file with only one column: \"Id\".\nOne job can contain many batches, depending on the length of the CSV file.\nReturns a job ID and a batch ID. Use these IDs to check job status with data:bulk:status.\n\n","usage":"<%= command.id %> -f <filepath> -s <string> [-w <minutes>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:bulk:delete -s Account -f ./path/to/file.csv","sfdx force:data:bulk:delete -s MyObject__c -f ./path/to/file.csv"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"csvfile":{"name":"csvfile","type":"option","char":"f","description":"the path to the CSV file containing the ids of the records to delete","required":true},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the sObject type of the records you’re deleting","required":true},"wait":{"name":"wait","type":"option","char":"w","description":"the number of minutes to wait for the command to complete before displaying the results"}},"args":[]},"force:data:bulk:status":{"id":"force:data:bulk:status","description":"view the status of a bulk data load job or batch\nRun this command using the job ID or batch ID returned from the force:data:bulk:delete or force:data:bulk:upsert commands.","usage":"<%= command.id %> -i <string> [-b <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:bulk:status -i 750xx000000005sAAA","sfdx force:data:bulk:status -i 750xx000000005sAAA -b 751xx000000005nAAA"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"batchid":{"name":"batchid","type":"option","char":"b","description":"the ID of the batch whose status you want to view"},"jobid":{"name":"jobid","type":"option","char":"i","description":"the ID of the job you want to view or of the job whose batch you want to view","required":true}},"args":[]},"force:data:bulk:upsert":{"id":"force:data:bulk:upsert","description":"bulk upsert records from a CSV file\nInserts or updates records from a CSV file.\n\nOne job can contain many batches, depending on the length of the CSV file.\nReturns a job ID and a batch ID. Use these IDs to check job status with data:bulk:status.\n\nFor information about formatting your CSV file, see \"Prepare CSV Files\" in the Bulk API Developer Guide. \n\nBy default, the job runs the batches in parallel. Specify --serial to run them serially.","usage":"<%= command.id %> -i <string> -f <filepath> -s <string> [-w <minutes>] [-r] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:bulk:upsert -s MyObject__c -f ./path/to/file.csv -i MyField__c","sfdx force:data:bulk:upsert -s MyObject__c -f ./path/to/file.csv -i Id -w 2"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"externalid":{"name":"externalid","type":"option","char":"i","description":"the column name of the external ID","required":true},"csvfile":{"name":"csvfile","type":"option","char":"f","description":"the path to the CSV file that defines the records to upsert","required":true},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the sObject type of the records you want to upsert","required":true},"wait":{"name":"wait","type":"option","char":"w","description":"the number of minutes to wait for the command to complete before displaying the results"},"serial":{"name":"serial","type":"boolean","char":"r","description":"run batches in serial mode","allowNo":false}},"args":[]},"force:data:record:create":{"id":"force:data:record:create","description":"creates and inserts a record\nThe format of a field-value pair is <fieldName>=<value>.\nEnclose all field-value pairs in one set of double quotation marks, delimited by spaces.\nEnclose values that contain spaces in single quotes.\n\nTo get data on API performance metrics, specify both --perflog and --json.","usage":"<%= command.id %> -s <string> -v <string> [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:record:create -s Account -v \"Name=Acme\"","sfdx force:data:record:create -s Account -v \"Name='Universal Containers'\"","sfdx force:data:record:create -s Account -v \"Name='Universal Containers' Website=www.example.com\"","sfdx force:data:record:create -t -s TraceFlag -v \"DebugLevelId=7dl170000008U36AAE StartDate=2017-12-01T00:26:04.000+0000 ExpirationDate=2017-12-01T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS\"","sfdx force:data:record:create -s Account -v \"Name=Acme\" --perflog --json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the type of the record you’re creating","required":true},"values":{"name":"values","type":"option","char":"v","description":"the <fieldName>=<value> pairs you’re creating","required":true},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"create the record with tooling api","allowNo":false},"perflog":{"name":"perflog","type":"boolean","description":"get API performance data","allowNo":false}},"args":[]},"force:data:record:delete":{"id":"force:data:record:delete","description":"deletes a single record\nSpecify an sObject type and either an ID or a list of <fieldName>=<value> pairs.\nThe format of a field-value pair is <fieldName>=<value>.\nEnclose all field-value pairs in one set of double quotation marks, delimited by spaces.\nEnclose values that contain spaces in single quotes.\n\nTo get data on API performance metrics, specify both --perflog and --json.","usage":"<%= command.id %> -s <string> [-i <id> | -w <string>] [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:record:delete -s Account -i 001D000000Kv3dl","sfdx force:data:record:delete -s Account -w \"Name=Acme\"","sfdx force:data:record:delete -s Account -w \"Name='Universal Containers'\"","sfdx force:data:record:delete -s Account -w \"Name='Universal Containers' Phone='(123) 456-7890'\"","sfdx force:data:record:delete -t -s TraceFlag -i 7tf170000009cU6AAI --perflog --json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the type of the record you’re deleting","required":true},"sobjectid":{"name":"sobjectid","type":"option","char":"i","description":"the ID of the record you’re deleting"},"where":{"name":"where","type":"option","char":"w","description":"a list of <fieldName>=<value> pairs to search for"},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"delete the record with Tooling API","allowNo":false},"perflog":{"name":"perflog","type":"boolean","description":"get API performance data","allowNo":false}},"args":[]},"force:data:record:get":{"id":"force:data:record:get","description":"displays a single record\nSpecify an sObject type and either an ID or a list of <fieldName>=<value> pairs.\nThe format of a field-value pair is <fieldName>=<value>.\nEnclose all field-value pairs in one set of double quotation marks, delimited by spaces.\nEnclose values that contain spaces in single quotes.\n\nTo get data on API performance metrics, specify both --perflog and --json.","usage":"<%= command.id %> -s <string> [-i <id> | -w <string>] [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:record:get -s Account -i 001D000000Kv3dl","sfdx force:data:record:get -s Account -w \"Name=Acme\"","sfdx force:data:record:get -s Account -w \"Name='Universal Containers'\"","sfdx force:data:record:get -s Account -w \"Name='Universal Containers' Phone='(123) 456-7890'\"","sfdx force:data:record:get -t -s TraceFlag -i 7tf170000009cUBAAY --perflog --json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the type of the record you’re retrieving","required":true},"sobjectid":{"name":"sobjectid","type":"option","char":"i","description":"the ID of the record you’re retrieving"},"where":{"name":"where","type":"option","char":"w","description":"a list of <fieldName>=<value> pairs to search for"},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"retrieve the record with Tooling API","allowNo":false},"perflog":{"name":"perflog","type":"boolean","description":"get API performance data","allowNo":false}},"args":[]},"force:data:record:update":{"id":"force:data:record:update","description":"updates a single record\nThe format of a field-value pair is <fieldName>=<value>.\nEnclose all field-value pairs in one set of double quotation marks, delimited by spaces.\nEnclose values that contain spaces in single quotes.\n\nTo get data on API performance metrics, specify both --perflog and --json.","usage":"<%= command.id %> -s <string> -v <string> [-i <id> | -w <string>] [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:record:update -s Account -i 001D000000Kv3dl -v \"Name=NewAcme\"","sfdx force:data:record:update -s Account -w \"Name='Old Acme'\" -v \"Name='New Acme'\"","sfdx force:data:record:update -s Account -i 001D000000Kv3dl -v \"Name='Acme III' Website=www.example.com\"","sfdx force:data:record:update -t -s TraceFlag -i 7tf170000009cUBAAY -v \"ExpirationDate=2017-12-01T00:58:04.000+0000\"","sfdx force:data:record:update -s Account -i 001D000000Kv3dl -v \"Name=NewAcme\" --perflog --json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the sObject type of the record you’re updating","required":true},"sobjectid":{"name":"sobjectid","type":"option","char":"i","description":"the ID of the record you’re updating"},"where":{"name":"where","type":"option","char":"w","description":"a list of <fieldName>=<value> pairs to search for"},"values":{"name":"values","type":"option","char":"v","description":"the <fieldName>=<value> pairs you’re updating","required":true},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"update the record with Tooling API","allowNo":false},"perflog":{"name":"perflog","type":"boolean","description":"get API performance data","allowNo":false}},"args":[]},"force:data:soql:query":{"id":"force:data:soql:query","description":"execute a SOQL query\nWhen you execute this command in a project, it executes the query against the data in your default scratch org.\n\nTo get data on API performance metrics, specify both --perflog and --json.\n\n","usage":"<%= command.id %> -q <string> [-t] [-r human|csv|json] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:soql:query -q \"SELECT Id, Name, Account.Name FROM Contact\"","sfdx force:data:soql:query -q \"SELECT Id, Name FROM Account WHERE ShippingState IN ('CA', 'NY')\"","sfdx force:data:soql:query -q \"SELECT Id, Name FROM Account WHERE ShippingState IN ('CA', 'NY')\" --perflog --json","sfdx force:data:soql:query -q \"SELECT Name FROM ApexTrigger\" -t"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"query":{"name":"query","type":"option","char":"q","description":"SOQL query to execute","required":true},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"execute query with Tooling API","allowNo":false},"resultformat":{"name":"resultformat","type":"option","char":"r","description":"result format emitted to stdout; --json flag overrides this parameter","helpValue":"(human|csv|json)","options":["human","csv","json"],"default":"human"},"perflog":{"name":"perflog","type":"boolean","description":"get API performance data","allowNo":false}},"args":[]},"force:data:tree:export":{"id":"force:data:tree:export","description":"export data from an org\nExports data from an org into sObject tree format for use with the force:data:tree:import command.\nThe query for export can return a maximum of 2,000 records. For more information, see the REST API Developer Guide: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm","usage":"<%= command.id %> -q <string> [-p] [-x <string>] [-d <directory>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:tree:export -q \"SELECT Id, Name, (SELECT Name, Address__c FROM Properties__r) FROM Broker__c\"","sfdx force:data:tree:export -q <path to file containing soql query> -x export-demo -d /tmp/sfdx-out -p"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"query":{"name":"query","type":"option","char":"q","description":"soql query, or filepath of file containing a soql query, to retrieve records","required":true},"plan":{"name":"plan","type":"boolean","char":"p","description":"generate mulitple sobject tree files and a plan definition file for aggregated import","allowNo":false},"prefix":{"name":"prefix","type":"option","char":"x","description":"prefix of generated files"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store files'"}},"args":[]},"force:data:tree:import":{"id":"force:data:tree:import","description":"import data into an org\nIMPORTANT: Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.\n\nImports data into an org using the SObject Tree Save API. This data can include master-detail relationships.\nTo generate JSON files for use with force:data:tree:import, run \"sfdx force:data:tree:export\".\nThe SObject Tree API supports requests that contain up to 200 records. For more information, see the REST API Developer Guide: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm","usage":"<%= command.id %> [-f <array> | -p <filepath>] [--confighelp] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:tree:import -f Contact.json,Account.json -u me@my.org","sfdx force:data:tree:import -p Account-Contact-plan.json -u me@my.org"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttreefiles":{"name":"sobjecttreefiles","type":"option","char":"f","description":"comma-delimited, ordered paths of json files containing collection of record trees to insert"},"plan":{"name":"plan","type":"option","char":"p","description":"path to plan to insert multiple data files that have master-detail relationships"},"contenttype":{"name":"contenttype","type":"option","char":"c","description":"if data file extension is not .json, provide content type (applies to all files)","hidden":true},"confighelp":{"name":"confighelp","type":"boolean","description":"display schema information for the --plan configuration file to stdout; if you use this option, all other options except --json are ignored","allowNo":false}},"args":[]}}}
|
|
1
|
+
{"version":"0.6.10","commands":{"force:data:bulk:delete":{"id":"force:data:bulk:delete","description":"bulk delete records from a csv file\nThe file must be a CSV file with only one column: \"Id\".\nOne job can contain many batches, depending on the length of the CSV file.\nReturns a job ID and a batch ID. Use these IDs to check job status with data:bulk:status.\n\n","usage":"<%= command.id %> -f <filepath> -s <string> [-w <minutes>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:bulk:delete -s Account -f ./path/to/file.csv","sfdx force:data:bulk:delete -s MyObject__c -f ./path/to/file.csv"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"csvfile":{"name":"csvfile","type":"option","char":"f","description":"the path to the CSV file containing the ids of the records to delete","required":true},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the sObject type of the records you’re deleting","required":true},"wait":{"name":"wait","type":"option","char":"w","description":"the number of minutes to wait for the command to complete before displaying the results"}},"args":[]},"force:data:bulk:status":{"id":"force:data:bulk:status","description":"view the status of a bulk data load job or batch\nRun this command using the job ID or batch ID returned from the force:data:bulk:delete or force:data:bulk:upsert commands.","usage":"<%= command.id %> -i <string> [-b <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:bulk:status -i 750xx000000005sAAA","sfdx force:data:bulk:status -i 750xx000000005sAAA -b 751xx000000005nAAA"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"batchid":{"name":"batchid","type":"option","char":"b","description":"the ID of the batch whose status you want to view"},"jobid":{"name":"jobid","type":"option","char":"i","description":"the ID of the job you want to view or of the job whose batch you want to view","required":true}},"args":[]},"force:data:bulk:upsert":{"id":"force:data:bulk:upsert","description":"bulk upsert records from a CSV file\nInserts or updates records from a CSV file.\n\nOne job can contain many batches, depending on the length of the CSV file.\nReturns a job ID and a batch ID. Use these IDs to check job status with data:bulk:status.\n\nFor information about formatting your CSV file, see \"Prepare CSV Files\" in the Bulk API Developer Guide. \n\nBy default, the job runs the batches in parallel. Specify --serial to run them serially.","usage":"<%= command.id %> -i <string> -f <filepath> -s <string> [-w <minutes>] [-r] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:bulk:upsert -s MyObject__c -f ./path/to/file.csv -i MyField__c","sfdx force:data:bulk:upsert -s MyObject__c -f ./path/to/file.csv -i Id -w 2"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"externalid":{"name":"externalid","type":"option","char":"i","description":"the column name of the external ID","required":true},"csvfile":{"name":"csvfile","type":"option","char":"f","description":"the path to the CSV file that defines the records to upsert","required":true},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the sObject type of the records you want to upsert","required":true},"wait":{"name":"wait","type":"option","char":"w","description":"the number of minutes to wait for the command to complete before displaying the results"},"serial":{"name":"serial","type":"boolean","char":"r","description":"run batches in serial mode","allowNo":false}},"args":[]},"force:data:record:create":{"id":"force:data:record:create","description":"creates and inserts a record\nThe format of a field-value pair is <fieldName>=<value>.\nEnclose all field-value pairs in one set of double quotation marks, delimited by spaces.\nEnclose values that contain spaces in single quotes.\n\nTo get data on API performance metrics, specify both --perflog and --json.","usage":"<%= command.id %> -s <string> -v <string> [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:record:create -s Account -v \"Name=Acme\"","sfdx force:data:record:create -s Account -v \"Name='Universal Containers'\"","sfdx force:data:record:create -s Account -v \"Name='Universal Containers' Website=www.example.com\"","sfdx force:data:record:create -t -s TraceFlag -v \"DebugLevelId=7dl170000008U36AAE StartDate=2017-12-01T00:26:04.000+0000 ExpirationDate=2017-12-01T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS\"","sfdx force:data:record:create -s Account -v \"Name=Acme\" --perflog --json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the type of the record you’re creating","required":true},"values":{"name":"values","type":"option","char":"v","description":"the <fieldName>=<value> pairs you’re creating","required":true},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"create the record with tooling api","allowNo":false},"perflog":{"name":"perflog","type":"boolean","description":"get API performance data","allowNo":false}},"args":[]},"force:data:record:delete":{"id":"force:data:record:delete","description":"deletes a single record\nSpecify an sObject type and either an ID or a list of <fieldName>=<value> pairs.\nThe format of a field-value pair is <fieldName>=<value>.\nEnclose all field-value pairs in one set of double quotation marks, delimited by spaces.\nEnclose values that contain spaces in single quotes.\n\nTo get data on API performance metrics, specify both --perflog and --json.","usage":"<%= command.id %> -s <string> [-i <id> | -w <string>] [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:record:delete -s Account -i 001D000000Kv3dl","sfdx force:data:record:delete -s Account -w \"Name=Acme\"","sfdx force:data:record:delete -s Account -w \"Name='Universal Containers'\"","sfdx force:data:record:delete -s Account -w \"Name='Universal Containers' Phone='(123) 456-7890'\"","sfdx force:data:record:delete -t -s TraceFlag -i 7tf170000009cU6AAI --perflog --json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the type of the record you’re deleting","required":true},"sobjectid":{"name":"sobjectid","type":"option","char":"i","description":"the ID of the record you’re deleting"},"where":{"name":"where","type":"option","char":"w","description":"a list of <fieldName>=<value> pairs to search for"},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"delete the record with Tooling API","allowNo":false},"perflog":{"name":"perflog","type":"boolean","description":"get API performance data","allowNo":false}},"args":[]},"force:data:record:get":{"id":"force:data:record:get","description":"displays a single record\nSpecify an sObject type and either an ID or a list of <fieldName>=<value> pairs.\nThe format of a field-value pair is <fieldName>=<value>.\nEnclose all field-value pairs in one set of double quotation marks, delimited by spaces.\nEnclose values that contain spaces in single quotes.\n\nTo get data on API performance metrics, specify both --perflog and --json.","usage":"<%= command.id %> -s <string> [-i <id> | -w <string>] [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:record:get -s Account -i 001D000000Kv3dl","sfdx force:data:record:get -s Account -w \"Name=Acme\"","sfdx force:data:record:get -s Account -w \"Name='Universal Containers'\"","sfdx force:data:record:get -s Account -w \"Name='Universal Containers' Phone='(123) 456-7890'\"","sfdx force:data:record:get -t -s TraceFlag -i 7tf170000009cUBAAY --perflog --json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the type of the record you’re retrieving","required":true},"sobjectid":{"name":"sobjectid","type":"option","char":"i","description":"the ID of the record you’re retrieving"},"where":{"name":"where","type":"option","char":"w","description":"a list of <fieldName>=<value> pairs to search for"},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"retrieve the record with Tooling API","allowNo":false},"perflog":{"name":"perflog","type":"boolean","description":"get API performance data","allowNo":false}},"args":[]},"force:data:record:update":{"id":"force:data:record:update","description":"updates a single record\nThe format of a field-value pair is <fieldName>=<value>.\nEnclose all field-value pairs in one set of double quotation marks, delimited by spaces.\nEnclose values that contain spaces in single quotes.\n\nTo get data on API performance metrics, specify both --perflog and --json.","usage":"<%= command.id %> -s <string> -v <string> [-i <id> | -w <string>] [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:record:update -s Account -i 001D000000Kv3dl -v \"Name=NewAcme\"","sfdx force:data:record:update -s Account -w \"Name='Old Acme'\" -v \"Name='New Acme'\"","sfdx force:data:record:update -s Account -i 001D000000Kv3dl -v \"Name='Acme III' Website=www.example.com\"","sfdx force:data:record:update -t -s TraceFlag -i 7tf170000009cUBAAY -v \"ExpirationDate=2017-12-01T00:58:04.000+0000\"","sfdx force:data:record:update -s Account -i 001D000000Kv3dl -v \"Name=NewAcme\" --perflog --json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the sObject type of the record you’re updating","required":true},"sobjectid":{"name":"sobjectid","type":"option","char":"i","description":"the ID of the record you’re updating"},"where":{"name":"where","type":"option","char":"w","description":"a list of <fieldName>=<value> pairs to search for"},"values":{"name":"values","type":"option","char":"v","description":"the <fieldName>=<value> pairs you’re updating","required":true},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"update the record with Tooling API","allowNo":false},"perflog":{"name":"perflog","type":"boolean","description":"get API performance data","allowNo":false}},"args":[]},"force:data:soql:query":{"id":"force:data:soql:query","description":"execute a SOQL query\nWhen you execute this command in a project, it executes the query against the data in your default scratch org.\n\nTo get data on API performance metrics, specify both --perflog and --json.\n\n","usage":"<%= command.id %> -q <string> [-t] [-r human|csv|json] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:soql:query -q \"SELECT Id, Name, Account.Name FROM Contact\"","sfdx force:data:soql:query -q \"SELECT Id, Name FROM Account WHERE ShippingState IN ('CA', 'NY')\"","sfdx force:data:soql:query -q \"SELECT Id, Name FROM Account WHERE ShippingState IN ('CA', 'NY')\" --perflog --json","sfdx force:data:soql:query -q \"SELECT Name FROM ApexTrigger\" -t"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"query":{"name":"query","type":"option","char":"q","description":"SOQL query to execute","required":true},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"execute query with Tooling API","allowNo":false},"resultformat":{"name":"resultformat","type":"option","char":"r","description":"result format emitted to stdout; --json flag overrides this parameter","helpValue":"(human|csv|json)","options":["human","csv","json"],"default":"human"},"perflog":{"name":"perflog","type":"boolean","description":"get API performance data","allowNo":false}},"args":[]},"force:data:tree:export":{"id":"force:data:tree:export","description":"export data from an org\nExports data from an org into sObject tree format for use with the force:data:tree:import command.\nThe query for export can return a maximum of 2,000 records. For more information, see the REST API Developer Guide: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm","usage":"<%= command.id %> -q <string> [-p] [-x <string>] [-d <directory>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:tree:export -q \"SELECT Id, Name, (SELECT Name, Address__c FROM Properties__r) FROM Broker__c\"","sfdx force:data:tree:export -q <path to file containing soql query> -x export-demo -d /tmp/sfdx-out -p"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"query":{"name":"query","type":"option","char":"q","description":"soql query, or filepath of file containing a soql query, to retrieve records","required":true},"plan":{"name":"plan","type":"boolean","char":"p","description":"generate mulitple sobject tree files and a plan definition file for aggregated import","allowNo":false},"prefix":{"name":"prefix","type":"option","char":"x","description":"prefix of generated files"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store files'"}},"args":[]},"force:data:tree:import":{"id":"force:data:tree:import","description":"import data into an org\nIMPORTANT: Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.\n\nImports data into an org using the SObject Tree Save API. This data can include master-detail relationships.\nTo generate JSON files for use with force:data:tree:import, run \"sfdx force:data:tree:export\".\nThe SObject Tree API supports requests that contain up to 200 records. For more information, see the REST API Developer Guide: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm","usage":"<%= command.id %> [-f <array> | -p <filepath>] [--confighelp] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["sfdx force:data:tree:import -f Contact.json,Account.json -u me@my.org","sfdx force:data:tree:import -p Account-Contact-plan.json -u me@my.org"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobjecttreefiles":{"name":"sobjecttreefiles","type":"option","char":"f","description":"comma-delimited, ordered paths of json files containing collection of record trees to insert"},"plan":{"name":"plan","type":"option","char":"p","description":"path to plan to insert multiple data files that have master-detail relationships"},"contenttype":{"name":"contenttype","type":"option","char":"c","description":"if data file extension is not .json, provide content type (applies to all files)","hidden":true},"confighelp":{"name":"confighelp","type":"boolean","description":"display schema information for the --plan configuration file to stdout; if you use this option, all other options except --json are ignored","allowNo":false}},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-data",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"description": "Plugin for salesforce data commands",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"homepage": "https://github.com/salesforcecli/plugin-data",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@oclif/config": "^1",
|
|
87
87
|
"@salesforce/command": "^4.2.0",
|
|
88
|
-
"@salesforce/core": "^2.
|
|
88
|
+
"@salesforce/core": "^2.35.3",
|
|
89
89
|
"@salesforce/ts-types": "^1.5.20",
|
|
90
90
|
"chalk": "^4.1.0",
|
|
91
91
|
"csv-parse": "^4.16.3",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@salesforce/ts-sinon": "^1.3.15",
|
|
103
103
|
"@types/chai-as-promised": "^7.1.3",
|
|
104
104
|
"@types/graceful-fs": "^4.1.5",
|
|
105
|
-
"@types/jsforce": "^1.9.
|
|
105
|
+
"@types/jsforce": "^1.9.41",
|
|
106
106
|
"@types/mkdirp": "^1.0.1",
|
|
107
107
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
108
108
|
"@typescript-eslint/parser": "^4.33.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"eslint-config-salesforce-license": "^0.1.6",
|
|
116
116
|
"eslint-config-salesforce-typescript": "^0.2.7",
|
|
117
117
|
"eslint-plugin-header": "^3.1.1",
|
|
118
|
-
"eslint-plugin-import": "2.25.
|
|
118
|
+
"eslint-plugin-import": "2.25.4",
|
|
119
119
|
"eslint-plugin-jsdoc": "^35.1.3",
|
|
120
120
|
"eslint-plugin-prettier": "^3.1.3",
|
|
121
121
|
"fast-xml-parser": "^3.20.3",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"typescript": "^4.1.3"
|
|
131
131
|
},
|
|
132
132
|
"sfdx": {
|
|
133
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/0.6.
|
|
134
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/0.6.
|
|
133
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/0.6.10.crt",
|
|
134
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/0.6.10.sig"
|
|
135
135
|
}
|
|
136
136
|
}
|