@salesforce/plugin-data 2.1.1 → 2.1.3
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 +53 -14
- package/lib/api/data/tree/exportApi.js +12 -21
- package/lib/api/data/tree/exportApi.js.map +1 -1
- package/lib/commands/force/data/soql/bulk/report.d.ts +9 -0
- package/lib/commands/force/data/soql/bulk/report.js +45 -0
- package/lib/commands/force/data/soql/bulk/report.js.map +1 -0
- package/lib/commands/force/data/soql/query.d.ts +20 -2
- package/lib/commands/force/data/soql/query.js +72 -12
- package/lib/commands/force/data/soql/query.js.map +1 -1
- package/lib/commands/force/data/tree/import.js +1 -2
- package/lib/commands/force/data/tree/import.js.map +1 -1
- package/lib/dataCommand.js +2 -3
- package/lib/dataCommand.js.map +1 -1
- package/lib/dataSoqlQueryTypes.d.ts +3 -1
- package/lib/dataSoqlQueryTypes.js +1 -1
- package/lib/dataSoqlQueryTypes.js.map +1 -1
- package/lib/reporters.js +12 -11
- package/lib/reporters.js.map +1 -1
- package/messages/bulk.report.json +7 -0
- package/messages/soql.query.json +3 -0
- package/oclif.manifest.json +1 -1
- package/package.json +16 -10
- package/CHANGELOG.md +0 -248
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../src/commands/force/data/soql/query.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,yBAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../src/commands/force/data/soql/query.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,yBAAyB;AACzB,iDAA6D;AAE7D,sCAAoC;AACpC,2CAA+F;AAE/F,mDAU8B;AAC9B,yCAA2C;AAC3C,qDAA8F;AAC9F,uEAAmF;AACnF,yDAAsD;AAEtD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MA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AAC;KACpB,CAAC;CACH,CAAC"}
|
|
@@ -18,7 +18,6 @@ const messages = core_1.Messages.loadMessages('@salesforce/plugin-data', 'tree.i
|
|
|
18
18
|
*/
|
|
19
19
|
class Import extends command_1.SfdxCommand {
|
|
20
20
|
async run() {
|
|
21
|
-
var _a;
|
|
22
21
|
const importApi = new importApi_1.ImportApi(this.org);
|
|
23
22
|
if (this.flags.confighelp) {
|
|
24
23
|
// Display config help and return
|
|
@@ -38,7 +37,7 @@ class Import extends command_1.SfdxCommand {
|
|
|
38
37
|
};
|
|
39
38
|
const importResults = await importApi.import(importConfig);
|
|
40
39
|
let processedResult = [];
|
|
41
|
-
if (
|
|
40
|
+
if (importResults.responseRefs?.length) {
|
|
42
41
|
processedResult = importResults.responseRefs.map((ref) => {
|
|
43
42
|
const type = (0, ts_types_1.getString)(importResults.sobjectTypes, ref.referenceId, 'Unknown');
|
|
44
43
|
return { refId: ref.referenceId, type, id: ref.id };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import.js","sourceRoot":"","sources":["../../../../../src/commands/force/data/tree/import.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yBAAyB;AAEzB,iDAAkF;AAClF,2CAAgE;AAChE,mDAA0D;AAC1D,mEAA8E;AAE9E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,aAAa,CAAC,CAAC;AAQjF;;GAEG;AACH,MAAqB,MAAO,SAAQ,qBAAW;IAiCtC,KAAK,CAAC,GAAG
|
|
1
|
+
{"version":3,"file":"import.js","sourceRoot":"","sources":["../../../../../src/commands/force/data/tree/import.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yBAAyB;AAEzB,iDAAkF;AAClF,2CAAgE;AAChE,mDAA0D;AAC1D,mEAA8E;AAE9E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;A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,MAAM,EAAE;QACxB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;KACrB;CACF,CAAC"}
|
package/lib/dataCommand.js
CHANGED
|
@@ -20,11 +20,10 @@ const originalRequestMethod = http_api_1.HttpApi.prototype.request;
|
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
http_api_1.HttpApi.prototype.request = function (req, ...args) {
|
|
22
22
|
this.once('response', (response) => {
|
|
23
|
-
var _a;
|
|
24
23
|
const metrics = response.headers.perfmetrics;
|
|
25
24
|
if (metrics) {
|
|
26
25
|
DataCommand.addMetric({
|
|
27
|
-
requestPath: `/services${
|
|
26
|
+
requestPath: `/services${req?.url?.split('/services')[1]}`,
|
|
28
27
|
perfMetrics: JSON.parse(metrics),
|
|
29
28
|
});
|
|
30
29
|
}
|
|
@@ -53,7 +52,7 @@ class DataCommand extends command_1.SfdxCommand {
|
|
|
53
52
|
if (result.errors) {
|
|
54
53
|
errors = '\nErrors:\n';
|
|
55
54
|
result.errors.map((err) => {
|
|
56
|
-
errors += ' ' +
|
|
55
|
+
errors += ' ' + err?.message + '\n';
|
|
57
56
|
});
|
|
58
57
|
}
|
|
59
58
|
return errors;
|
package/lib/dataCommand.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataCommand.js","sourceRoot":"","sources":["../src/dataCommand.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,gCAAgC;AAChC,iDAAkD;AAClD,mDAA0E;AAC1E,2CAAsE;AAGtE,mDAA+C;AAG/C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAAC;AAoB9E,6DAA6D;AAC7D,MAAM,qBAAqB,GAAG,kBAAO,CAAC,SAAS,CAAC,OAAO,CAAC;AAExD,6DAA6D;AAC7D,aAAa;AACb,kBAAO,CAAC,SAAS,CAAC,OAAO,GAAG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AI,CAAC,EAAE,CAAC,CAAC,CAAC;SAC3C;QAED,OAAO,aAAa,CAAC;IACvB,CAAC;;AAhNH,kCAiNC;AAhNgB,mBAAO,GAAa,EAAE,CAAC"}
|
|
@@ -14,7 +14,7 @@ var FieldType;
|
|
|
14
14
|
FieldType[FieldType["functionField"] = 2] = "functionField";
|
|
15
15
|
})(FieldType = exports.FieldType || (exports.FieldType = {}));
|
|
16
16
|
const hasNestedRecords = (element) => {
|
|
17
|
-
return Array.isArray(element
|
|
17
|
+
return Array.isArray(element?.records);
|
|
18
18
|
};
|
|
19
19
|
exports.hasNestedRecords = hasNestedRecords;
|
|
20
20
|
const isAttributesElement = (element) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataSoqlQueryTypes.js","sourceRoot":"","sources":["../src/dataSoqlQueryTypes.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,2CAAK,CAAA;IACL,2DAAa,CAAA;IACb,2DAAa,CAAA;AACf,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;
|
|
1
|
+
{"version":3,"file":"dataSoqlQueryTypes.js","sourceRoot":"","sources":["../src/dataSoqlQueryTypes.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,2CAAK,CAAA;IACL,2DAAa,CAAA;IACb,2DAAa,CAAA;AACf,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AAoDM,MAAM,gBAAgB,GAAG,CAAI,OAAmC,EAA+B,EAAE;IACtG,OAAO,KAAK,CAAC,OAAO,CAAE,OAA4B,EAAE,OAAO,CAAC,CAAC;AAC/D,CAAC,CAAC;AAFW,QAAA,gBAAgB,oBAE3B;AAEK,MAAM,mBAAmB,GAAG,CACjC,OAAiD,EACN,EAAE;IAC7C,OAAO,CACL,CAAC,CAAE,OAA0C,CAAC,WAAW,IAAI,CAAC,CAAE,OAA0C,CAAC,IAAI,CAChH,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,mBAAmB,uBAM9B"}
|
package/lib/reporters.js
CHANGED
|
@@ -54,10 +54,9 @@ class HumanReporter extends QueryReporter {
|
|
|
54
54
|
if (fields) {
|
|
55
55
|
this.logger.info(`Found fields ${JSON.stringify(fields.map((field) => `${typeof field}.${field.name}`))}`);
|
|
56
56
|
fields.forEach((field) => {
|
|
57
|
-
var _a;
|
|
58
57
|
if (field.fieldType === dataSoqlQueryTypes_1.FieldType.subqueryField) {
|
|
59
58
|
children.push(field.name);
|
|
60
|
-
(
|
|
59
|
+
(field.fields ?? []).forEach((subfield) => attributeNames.push(`${field.name}.${subfield.name}`));
|
|
61
60
|
}
|
|
62
61
|
else if (field.fieldType === dataSoqlQueryTypes_1.FieldType.functionField) {
|
|
63
62
|
if (field.alias) {
|
|
@@ -127,13 +126,12 @@ class HumanReporter extends QueryReporter {
|
|
|
127
126
|
queryResults.forEach((qr) => {
|
|
128
127
|
const result = qr;
|
|
129
128
|
this.data.columns.forEach((col) => {
|
|
130
|
-
var _a;
|
|
131
129
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
132
130
|
const entry = Reflect.get(result, col.name);
|
|
133
131
|
if (typeof entry === 'object' && col.fieldType === dataSoqlQueryTypes_1.FieldType.field) {
|
|
134
132
|
Reflect.set(result, col.name, JSON.stringify(entry, null, 2));
|
|
135
133
|
}
|
|
136
|
-
else if (typeof entry === 'object' &&
|
|
134
|
+
else if (typeof entry === 'object' && col.fields?.length && entry) {
|
|
137
135
|
col.fields.forEach((field) => {
|
|
138
136
|
Reflect.set(result, `${col.name}.${field.name}`, (0, ts_types_1.get)(result, `${col.name}.records[0].${field.name}`));
|
|
139
137
|
});
|
|
@@ -194,7 +192,7 @@ class HumanReporter extends QueryReporter {
|
|
|
194
192
|
return newResults;
|
|
195
193
|
}, []);
|
|
196
194
|
}
|
|
197
|
-
return qr
|
|
195
|
+
return qr ?? queryResults;
|
|
198
196
|
}
|
|
199
197
|
}
|
|
200
198
|
exports.HumanReporter = HumanReporter;
|
|
@@ -226,9 +224,14 @@ class CsvReporter extends QueryReporter {
|
|
|
226
224
|
return this.escape(name);
|
|
227
225
|
})
|
|
228
226
|
.join(SEPARATOR));
|
|
227
|
+
// explained why we need this below - foreach does not allow types
|
|
228
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
229
|
+
// @ts-ignore
|
|
229
230
|
this.data.result.records.forEach((row) => {
|
|
230
231
|
const values = attributeNames.map((name) => {
|
|
231
|
-
|
|
232
|
+
// try get(row, name) first, then if it fails, default to row[name]. The default will happen in bulk cases.
|
|
233
|
+
// the standard case returns {field:{nested: 'value'}}, while the bulk will return {field.nested: 'value'}
|
|
234
|
+
const value = (0, ts_types_1.get)(row, name, row[name]);
|
|
232
235
|
if ((0, ts_types_1.isString)(value)) {
|
|
233
236
|
return this.escape(value);
|
|
234
237
|
// if value is null, then typeof value === 'object' so check before typeof to avoid illegal csv
|
|
@@ -271,10 +274,9 @@ class CsvReporter extends QueryReporter {
|
|
|
271
274
|
// Get max lengths by iterating over the records once
|
|
272
275
|
this.data.result.records.forEach((result) => {
|
|
273
276
|
[...typeLengths.keys()].forEach((key) => {
|
|
274
|
-
var _a;
|
|
275
277
|
const record = (0, ts_types_1.get)(result, key);
|
|
276
278
|
const totalSize = (0, ts_types_1.getNumber)(record, 'totalSize');
|
|
277
|
-
if (!!totalSize && totalSize > (
|
|
279
|
+
if (!!totalSize && totalSize > (typeLengths.get(key) ?? 0)) {
|
|
278
280
|
typeLengths.set(key, totalSize);
|
|
279
281
|
}
|
|
280
282
|
});
|
|
@@ -291,11 +293,10 @@ class CsvReporter extends QueryReporter {
|
|
|
291
293
|
}
|
|
292
294
|
});
|
|
293
295
|
fields.forEach((field) => {
|
|
294
|
-
var _a, _b;
|
|
295
296
|
if (typeLengths.get(field.name)) {
|
|
296
|
-
for (let i = 0; i < (
|
|
297
|
+
for (let i = 0; i < (typeLengths.get(field.name) ?? 0); i++) {
|
|
297
298
|
attributeNames.push(`${field.name}.totalSize`);
|
|
298
|
-
(
|
|
299
|
+
(field.fields ?? []).forEach((subfield) => {
|
|
299
300
|
attributeNames.push(`${field.name}.records.${i}.${subfield.name}`);
|
|
300
301
|
});
|
|
301
302
|
}
|
package/lib/reporters.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reporters.js","sourceRoot":"","sources":["../src/reporters.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2BAAyB;AACzB,2CAAoD;AAEpD,+BAA+B;AAC/B,mDAAoF;AAEpF,6DAAyE;AAEzE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,YAAY,CAAC,CAAC;AAEhF,MAAa,QAAQ;IAInB,YAAmB,EAAM,EAAE,MAAc;QACvC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IAEM,GAAG,CAAC,GAAG,IAAc;QAC1B,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;IACvB,CAAC;CACF;AAZD,4BAYC;AAED,MAAa,aAAc,SAAQ,QAAQ;IAIzC,YAAmB,IAAqB,EAAE,OAAgB,EAAE,EAAM,EAAE,MAAc;QAChF,KAAK,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAJV,YAAO,GAAY,EAAE,CAAC;QAK9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AATD,sCASC;AAQD,MAAa,aAAc,SAAQ,aAAa;IAC9C,YAAmB,IAAqB,EAAE,OAAgB,EAAE,EAAM,EA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HD,kCA+HC;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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "view the status of a bulk query\nRun this command using the job ID returned from the force:data:soql:query --bulk command.",
|
|
3
|
+
"examples": [
|
|
4
|
+
"$ sfdx force:data:soql:bulk:report -i 7500x000005BdFzXXX"
|
|
5
|
+
],
|
|
6
|
+
"bulkQueryIdDescription": "the job ID of the bulk query"
|
|
7
|
+
}
|
package/messages/soql.query.json
CHANGED
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
"queryNoResults": "Your query returned no results.",
|
|
12
12
|
"queryRunningMessage": "Querying Data",
|
|
13
13
|
"queryMoreUpdateMessage": "Result size is %d, current count is %d",
|
|
14
|
+
"bulkDescription": "use the bulk 2.0 API to query data",
|
|
15
|
+
"waitDescription": "wait time for command to finish in minutes",
|
|
16
|
+
"bulkQueryTimeout": "Query ID: %s\nQuery is in progress. \n\nRun sfdx force:data:soql:bulk:report -i %s -u %s to get the latest status/results",
|
|
14
17
|
"soqlqueryfile": "A SOQL query stored in a file",
|
|
15
18
|
"examples": [
|
|
16
19
|
"$ sfdx force:data:soql:query -q \"SELECT Id, Name, Account.Name FROM Contact\"",
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.1.1","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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"csvfile":{"name":"csvfile","type":"option","char":"f","description":"the path to the CSV file containing the ids of the records to delete","required":true,"multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the sObject type of the records you’re deleting","required":true,"multiple":false},"wait":{"name":"wait","type":"option","char":"w","description":"the number of minutes to wait for the command to complete before displaying the results","multiple":false}},"args":[],"requiresUsername":true,"flagsConfig":{"csvfile":{"kind":"filepath","char":"f","description":"the path to the CSV file containing the ids of the records to delete","required":true,"input":[],"multiple":false,"type":"option"},"sobjecttype":{"kind":"string","char":"s","description":"the sObject type of the records you’re deleting","required":true,"input":[],"multiple":false,"type":"option"},"wait":{"kind":"minutes","char":"w","description":"the number of minutes to wait for the command to complete before displaying the results","min":0,"input":[],"multiple":false,"type":"option"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"batchid":{"name":"batchid","type":"option","char":"b","description":"the ID of the batch whose status you want to view","multiple":false},"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,"multiple":false}},"args":[],"requiresUsername":true,"flagsConfig":{"batchid":{"kind":"string","char":"b","description":"the ID of the batch whose status you want to view","input":[],"multiple":false,"type":"option"},"jobid":{"kind":"string","char":"i","description":"the ID of the job you want to view or of the job whose batch you want to view","required":true,"input":[],"multiple":false,"type":"option"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"externalid":{"name":"externalid","type":"option","char":"i","description":"the column name of the external ID","required":true,"multiple":false},"csvfile":{"name":"csvfile","type":"option","char":"f","description":"the path to the CSV file that defines the records to upsert","required":true,"multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the sObject type of the records you want to upsert","required":true,"multiple":false},"wait":{"name":"wait","type":"option","char":"w","description":"the number of minutes to wait for the command to complete before displaying the results","multiple":false},"serial":{"name":"serial","type":"boolean","char":"r","description":"run batches in serial mode","allowNo":false}},"args":[],"requiresUsername":true,"flagsConfig":{"externalid":{"kind":"string","char":"i","description":"the column name of the external ID","required":true,"input":[],"multiple":false,"type":"option"},"csvfile":{"kind":"filepath","char":"f","description":"the path to the CSV file that defines the records to upsert","required":true,"input":[],"multiple":false,"type":"option"},"sobjecttype":{"kind":"string","char":"s","description":"the sObject type of the records you want to upsert","required":true,"input":[],"multiple":false,"type":"option"},"wait":{"kind":"minutes","char":"w","description":"the number of minutes to wait for the command to complete before displaying the results","min":0,"input":[],"multiple":false,"type":"option"},"serial":{"kind":"boolean","char":"r","description":"run batches in serial mode","default":false,"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the type of the record you’re creating","required":true,"multiple":false},"values":{"name":"values","type":"option","char":"v","description":"the <fieldName>=<value> pairs you’re creating","required":true,"multiple":false},"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,"dependsOn":["json"]}},"args":[],"requiresUsername":true,"flagsConfig":{"sobjecttype":{"kind":"string","char":"s","required":true,"description":"the type of the record you’re creating","input":[],"multiple":false,"type":"option"},"values":{"kind":"string","char":"v","required":true,"description":"the <fieldName>=<value> pairs you’re creating","input":[],"multiple":false,"type":"option"},"usetoolingapi":{"kind":"boolean","char":"t","description":"create the record with tooling api","allowNo":false,"type":"boolean"},"perflog":{"kind":"boolean","description":"get API performance data","dependsOn":["json"],"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the type of the record you’re deleting","required":true,"multiple":false},"sobjectid":{"name":"sobjectid","type":"option","char":"i","description":"the ID of the record you’re deleting","multiple":false,"exclusive":["where"]},"where":{"name":"where","type":"option","char":"w","description":"a list of <fieldName>=<value> pairs to search for","multiple":false,"exclusive":["sobjectid"]},"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,"dependsOn":["json"]}},"args":[],"requiresUsername":true,"flagsConfig":{"sobjecttype":{"kind":"string","char":"s","required":true,"description":"the type of the record you’re deleting","input":[],"multiple":false,"type":"option"},"sobjectid":{"kind":"id","char":"i","description":"the ID of the record you’re deleting","exclusive":["where"],"input":[],"multiple":false,"type":"option"},"where":{"kind":"string","char":"w","description":"a list of <fieldName>=<value> pairs to search for","exclusive":["sobjectid"],"input":[],"multiple":false,"type":"option"},"usetoolingapi":{"kind":"boolean","char":"t","description":"delete the record with Tooling API","allowNo":false,"type":"boolean"},"perflog":{"kind":"boolean","description":"get API performance data","dependsOn":["json"],"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the type of the record you’re retrieving","required":true,"multiple":false},"sobjectid":{"name":"sobjectid","type":"option","char":"i","description":"the ID of the record you’re retrieving","multiple":false,"exclusive":["where"]},"where":{"name":"where","type":"option","char":"w","description":"a list of <fieldName>=<value> pairs to search for","multiple":false,"exclusive":["sobjectid"]},"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,"dependsOn":["json"]}},"args":[],"requiresUsername":true,"flagsConfig":{"sobjecttype":{"kind":"string","char":"s","required":true,"description":"the type of the record you’re retrieving","input":[],"multiple":false,"type":"option"},"sobjectid":{"kind":"id","char":"i","description":"the ID of the record you’re retrieving","exclusive":["where"],"input":[],"multiple":false,"type":"option"},"where":{"kind":"string","char":"w","description":"a list of <fieldName>=<value> pairs to search for","exclusive":["sobjectid"],"input":[],"multiple":false,"type":"option"},"usetoolingapi":{"kind":"boolean","char":"t","description":"retrieve the record with Tooling API","allowNo":false,"type":"boolean"},"perflog":{"kind":"boolean","description":"get API performance data","dependsOn":["json"],"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the sObject type of the record you’re updating","required":true,"multiple":false},"sobjectid":{"name":"sobjectid","type":"option","char":"i","description":"the ID of the record you’re updating","multiple":false,"exclusive":["where"]},"where":{"name":"where","type":"option","char":"w","description":"a list of <fieldName>=<value> pairs to search for","multiple":false,"exclusive":["sobjectid"]},"values":{"name":"values","type":"option","char":"v","description":"the <fieldName>=<value> pairs you’re updating","required":true,"multiple":false},"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,"dependsOn":["json"]}},"args":[],"requiresUsername":true,"flagsConfig":{"sobjecttype":{"kind":"string","char":"s","required":true,"description":"the sObject type of the record you’re updating","input":[],"multiple":false,"type":"option"},"sobjectid":{"kind":"id","char":"i","description":"the ID of the record you’re updating","exclusive":["where"],"input":[],"multiple":false,"type":"option"},"where":{"kind":"string","char":"w","description":"a list of <fieldName>=<value> pairs to search for","exclusive":["sobjectid"],"input":[],"multiple":false,"type":"option"},"values":{"kind":"string","char":"v","required":true,"description":"the <fieldName>=<value> pairs you’re updating","input":[],"multiple":false,"type":"option"},"usetoolingapi":{"kind":"boolean","char":"t","description":"update the record with Tooling API","allowNo":false,"type":"boolean"},"perflog":{"kind":"boolean","description":"get API performance data","dependsOn":["json"],"allowNo":false,"type":"boolean"}}},"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","strict":true,"usage":"<%= command.id %> [-q <string> | -f <filepath>] [-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","pluginAlias":"@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","$ sfdx force:data:soql:query --soqlqueryfile query.txt","$ sfdx force:data:soql:query --soqlqueryfile query.txt -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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"query":{"name":"query","type":"option","char":"q","description":"SOQL query to execute","multiple":false,"exclusive":["soqlqueryfile"]},"soqlqueryfile":{"name":"soqlqueryfile","type":"option","char":"f","description":"A SOQL query stored in a file","multiple":false,"exclusive":["query"]},"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)","multiple":false,"options":["human","csv","json"],"default":"human"},"perflog":{"name":"perflog","type":"boolean","description":"get API performance data","allowNo":false,"dependsOn":["json"]}},"args":[],"requiresUsername":true,"flagsConfig":{"query":{"kind":"string","char":"q","description":"SOQL query to execute","exclusive":["soqlqueryfile"],"exactlyOne":["query","soqlqueryfile"],"input":[],"multiple":false,"type":"option"},"soqlqueryfile":{"kind":"filepath","char":"f","description":"A SOQL query stored in a file","exclusive":["query"],"exactlyOne":["query","soqlqueryfile"],"input":[],"multiple":false,"type":"option"},"usetoolingapi":{"kind":"boolean","char":"t","description":"execute query with Tooling API","allowNo":false,"type":"boolean"},"resultformat":{"kind":"enum","helpValue":"(human|csv|json)","char":"r","description":"result format emitted to stdout; --json flag overrides this parameter","options":["human","csv","json"],"default":"human","input":[],"multiple":false,"type":"option"},"perflog":{"kind":"boolean","description":"get API performance data","dependsOn":["json"],"allowNo":false,"type":"boolean"}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"query":{"name":"query","type":"option","char":"q","description":"soql query, or filepath of file containing a soql query, to retrieve records","required":true,"multiple":false},"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","multiple":false},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store files'","multiple":false}},"args":[],"requiresUsername":true,"flagsConfig":{"query":{"kind":"string","char":"q","description":"soql query, or filepath of file containing a soql query, to retrieve records","required":true,"input":[],"multiple":false,"type":"option"},"plan":{"kind":"boolean","char":"p","description":"generate mulitple sobject tree files and a plan definition file for aggregated import","allowNo":false,"type":"boolean"},"prefix":{"kind":"string","char":"x","description":"prefix of generated files","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"directory","char":"d","description":"directory to store files'","input":[],"multiple":false,"type":"option"}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttreefiles":{"name":"sobjecttreefiles","type":"option","char":"f","description":"comma-delimited, ordered paths of json files containing collection of record trees to insert","multiple":false,"exclusive":["plan"]},"plan":{"name":"plan","type":"option","char":"p","description":"path to plan to insert multiple data files that have master-detail relationships","multiple":false},"contenttype":{"name":"contenttype","type":"option","char":"c","description":"if data file extension is not .json, provide content type (applies to all files)","hidden":true,"multiple":false},"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":[],"requiresUsername":true,"flagsConfig":{"sobjecttreefiles":{"kind":"array","char":"f","description":"comma-delimited, ordered paths of json files containing collection of record trees to insert","exclusive":["plan"],"input":[],"multiple":false,"type":"option"},"plan":{"kind":"filepath","char":"p","description":"path to plan to insert multiple data files that have master-detail relationships","input":[],"multiple":false,"type":"option"},"contenttype":{"kind":"string","char":"c","description":"if data file extension is not .json, provide content type (applies to all files)","hidden":true,"input":[],"multiple":false,"type":"option"},"confighelp":{"kind":"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,"type":"boolean"}},"result":{"tableColumnData":{"refId":{"header":"Reference ID"},"type":{"header":"Type"},"id":{"header":"ID"}}}}}}
|
|
1
|
+
{"version":"2.1.3","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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"csvfile":{"name":"csvfile","type":"option","char":"f","description":"the path to the CSV file containing the ids of the records to delete","required":true,"multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the sObject type of the records you’re deleting","required":true,"multiple":false},"wait":{"name":"wait","type":"option","char":"w","description":"the number of minutes to wait for the command to complete before displaying the results","multiple":false}},"args":[],"requiresUsername":true,"flagsConfig":{"csvfile":{"kind":"filepath","char":"f","description":"the path to the CSV file containing the ids of the records to delete","required":true,"input":[],"multiple":false,"type":"option"},"sobjecttype":{"kind":"string","char":"s","description":"the sObject type of the records you’re deleting","required":true,"input":[],"multiple":false,"type":"option"},"wait":{"kind":"minutes","char":"w","description":"the number of minutes to wait for the command to complete before displaying the results","min":0,"input":[],"multiple":false,"type":"option"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"batchid":{"name":"batchid","type":"option","char":"b","description":"the ID of the batch whose status you want to view","multiple":false},"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,"multiple":false}},"args":[],"requiresUsername":true,"flagsConfig":{"batchid":{"kind":"string","char":"b","description":"the ID of the batch whose status you want to view","input":[],"multiple":false,"type":"option"},"jobid":{"kind":"string","char":"i","description":"the ID of the job you want to view or of the job whose batch you want to view","required":true,"input":[],"multiple":false,"type":"option"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"externalid":{"name":"externalid","type":"option","char":"i","description":"the column name of the external ID","required":true,"multiple":false},"csvfile":{"name":"csvfile","type":"option","char":"f","description":"the path to the CSV file that defines the records to upsert","required":true,"multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the sObject type of the records you want to upsert","required":true,"multiple":false},"wait":{"name":"wait","type":"option","char":"w","description":"the number of minutes to wait for the command to complete before displaying the results","multiple":false},"serial":{"name":"serial","type":"boolean","char":"r","description":"run batches in serial mode","allowNo":false}},"args":[],"requiresUsername":true,"flagsConfig":{"externalid":{"kind":"string","char":"i","description":"the column name of the external ID","required":true,"input":[],"multiple":false,"type":"option"},"csvfile":{"kind":"filepath","char":"f","description":"the path to the CSV file that defines the records to upsert","required":true,"input":[],"multiple":false,"type":"option"},"sobjecttype":{"kind":"string","char":"s","description":"the sObject type of the records you want to upsert","required":true,"input":[],"multiple":false,"type":"option"},"wait":{"kind":"minutes","char":"w","description":"the number of minutes to wait for the command to complete before displaying the results","min":0,"input":[],"multiple":false,"type":"option"},"serial":{"kind":"boolean","char":"r","description":"run batches in serial mode","default":false,"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the type of the record you’re creating","required":true,"multiple":false},"values":{"name":"values","type":"option","char":"v","description":"the <fieldName>=<value> pairs you’re creating","required":true,"multiple":false},"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,"dependsOn":["json"]}},"args":[],"requiresUsername":true,"flagsConfig":{"sobjecttype":{"kind":"string","char":"s","required":true,"description":"the type of the record you’re creating","input":[],"multiple":false,"type":"option"},"values":{"kind":"string","char":"v","required":true,"description":"the <fieldName>=<value> pairs you’re creating","input":[],"multiple":false,"type":"option"},"usetoolingapi":{"kind":"boolean","char":"t","description":"create the record with tooling api","allowNo":false,"type":"boolean"},"perflog":{"kind":"boolean","description":"get API performance data","dependsOn":["json"],"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the type of the record you’re deleting","required":true,"multiple":false},"sobjectid":{"name":"sobjectid","type":"option","char":"i","description":"the ID of the record you’re deleting","multiple":false,"exclusive":["where"]},"where":{"name":"where","type":"option","char":"w","description":"a list of <fieldName>=<value> pairs to search for","multiple":false,"exclusive":["sobjectid"]},"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,"dependsOn":["json"]}},"args":[],"requiresUsername":true,"flagsConfig":{"sobjecttype":{"kind":"string","char":"s","required":true,"description":"the type of the record you’re deleting","input":[],"multiple":false,"type":"option"},"sobjectid":{"kind":"id","char":"i","description":"the ID of the record you’re deleting","exclusive":["where"],"input":[],"multiple":false,"type":"option"},"where":{"kind":"string","char":"w","description":"a list of <fieldName>=<value> pairs to search for","exclusive":["sobjectid"],"input":[],"multiple":false,"type":"option"},"usetoolingapi":{"kind":"boolean","char":"t","description":"delete the record with Tooling API","allowNo":false,"type":"boolean"},"perflog":{"kind":"boolean","description":"get API performance data","dependsOn":["json"],"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the type of the record you’re retrieving","required":true,"multiple":false},"sobjectid":{"name":"sobjectid","type":"option","char":"i","description":"the ID of the record you’re retrieving","multiple":false,"exclusive":["where"]},"where":{"name":"where","type":"option","char":"w","description":"a list of <fieldName>=<value> pairs to search for","multiple":false,"exclusive":["sobjectid"]},"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,"dependsOn":["json"]}},"args":[],"requiresUsername":true,"flagsConfig":{"sobjecttype":{"kind":"string","char":"s","required":true,"description":"the type of the record you’re retrieving","input":[],"multiple":false,"type":"option"},"sobjectid":{"kind":"id","char":"i","description":"the ID of the record you’re retrieving","exclusive":["where"],"input":[],"multiple":false,"type":"option"},"where":{"kind":"string","char":"w","description":"a list of <fieldName>=<value> pairs to search for","exclusive":["sobjectid"],"input":[],"multiple":false,"type":"option"},"usetoolingapi":{"kind":"boolean","char":"t","description":"retrieve the record with Tooling API","allowNo":false,"type":"boolean"},"perflog":{"kind":"boolean","description":"get API performance data","dependsOn":["json"],"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"the sObject type of the record you’re updating","required":true,"multiple":false},"sobjectid":{"name":"sobjectid","type":"option","char":"i","description":"the ID of the record you’re updating","multiple":false,"exclusive":["where"]},"where":{"name":"where","type":"option","char":"w","description":"a list of <fieldName>=<value> pairs to search for","multiple":false,"exclusive":["sobjectid"]},"values":{"name":"values","type":"option","char":"v","description":"the <fieldName>=<value> pairs you’re updating","required":true,"multiple":false},"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,"dependsOn":["json"]}},"args":[],"requiresUsername":true,"flagsConfig":{"sobjecttype":{"kind":"string","char":"s","required":true,"description":"the sObject type of the record you’re updating","input":[],"multiple":false,"type":"option"},"sobjectid":{"kind":"id","char":"i","description":"the ID of the record you’re updating","exclusive":["where"],"input":[],"multiple":false,"type":"option"},"where":{"kind":"string","char":"w","description":"a list of <fieldName>=<value> pairs to search for","exclusive":["sobjectid"],"input":[],"multiple":false,"type":"option"},"values":{"kind":"string","char":"v","required":true,"description":"the <fieldName>=<value> pairs you’re updating","input":[],"multiple":false,"type":"option"},"usetoolingapi":{"kind":"boolean","char":"t","description":"update the record with Tooling API","allowNo":false,"type":"boolean"},"perflog":{"kind":"boolean","description":"get API performance data","dependsOn":["json"],"allowNo":false,"type":"boolean"}}},"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","strict":true,"usage":"<%= command.id %> [-q <string> | -f <filepath>] [-w <minutes> [-b | -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","pluginAlias":"@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","$ sfdx force:data:soql:query --soqlqueryfile query.txt","$ sfdx force:data:soql:query --soqlqueryfile query.txt -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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"query":{"name":"query","type":"option","char":"q","description":"SOQL query to execute","multiple":false,"exclusive":["soqlqueryfile"]},"soqlqueryfile":{"name":"soqlqueryfile","type":"option","char":"f","description":"A SOQL query stored in a file","multiple":false,"exclusive":["query"]},"usetoolingapi":{"name":"usetoolingapi","type":"boolean","char":"t","description":"execute query with Tooling API","allowNo":false},"bulk":{"name":"bulk","type":"boolean","char":"b","description":"use the bulk 2.0 API to query data","allowNo":false,"exclusive":["usetoolingapi"]},"wait":{"name":"wait","type":"option","char":"w","description":"wait time for command to finish in minutes","multiple":false,"dependsOn":["bulk"]},"resultformat":{"name":"resultformat","type":"option","char":"r","description":"result format emitted to stdout; --json flag overrides this parameter","helpValue":"(human|csv|json)","multiple":false,"options":["human","csv","json"],"default":"human"},"perflog":{"name":"perflog","type":"boolean","description":"get API performance data","allowNo":false,"dependsOn":["json"]}},"args":[],"requiresUsername":true,"flagsConfig":{"query":{"kind":"string","char":"q","description":"SOQL query to execute","exclusive":["soqlqueryfile"],"exactlyOne":["query","soqlqueryfile"],"input":[],"multiple":false,"type":"option"},"soqlqueryfile":{"kind":"filepath","char":"f","description":"A SOQL query stored in a file","exclusive":["query"],"exactlyOne":["query","soqlqueryfile"],"input":[],"multiple":false,"type":"option"},"usetoolingapi":{"kind":"boolean","char":"t","description":"execute query with Tooling API","allowNo":false,"type":"boolean"},"bulk":{"kind":"boolean","char":"b","default":false,"description":"use the bulk 2.0 API to query data","exclusive":["usetoolingapi"],"allowNo":false,"type":"boolean"},"wait":{"kind":"minutes","char":"w","description":"wait time for command to finish in minutes","dependsOn":["bulk"],"input":[],"multiple":false,"type":"option"},"resultformat":{"kind":"enum","helpValue":"(human|csv|json)","char":"r","description":"result format emitted to stdout; --json flag overrides this parameter","options":["human","csv","json"],"default":"human","input":[],"multiple":false,"type":"option"},"perflog":{"kind":"boolean","description":"get API performance data","dependsOn":["json"],"allowNo":false,"type":"boolean"}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"query":{"name":"query","type":"option","char":"q","description":"soql query, or filepath of file containing a soql query, to retrieve records","required":true,"multiple":false},"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","multiple":false},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"directory to store files'","multiple":false}},"args":[],"requiresUsername":true,"flagsConfig":{"query":{"kind":"string","char":"q","description":"soql query, or filepath of file containing a soql query, to retrieve records","required":true,"input":[],"multiple":false,"type":"option"},"plan":{"kind":"boolean","char":"p","description":"generate mulitple sobject tree files and a plan definition file for aggregated import","allowNo":false,"type":"boolean"},"prefix":{"kind":"string","char":"x","description":"prefix of generated files","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"directory","char":"d","description":"directory to store files'","input":[],"multiple":false,"type":"option"}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttreefiles":{"name":"sobjecttreefiles","type":"option","char":"f","description":"comma-delimited, ordered paths of json files containing collection of record trees to insert","multiple":false,"exclusive":["plan"]},"plan":{"name":"plan","type":"option","char":"p","description":"path to plan to insert multiple data files that have master-detail relationships","multiple":false},"contenttype":{"name":"contenttype","type":"option","char":"c","description":"if data file extension is not .json, provide content type (applies to all files)","hidden":true,"multiple":false},"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":[],"requiresUsername":true,"flagsConfig":{"sobjecttreefiles":{"kind":"array","char":"f","description":"comma-delimited, ordered paths of json files containing collection of record trees to insert","exclusive":["plan"],"input":[],"multiple":false,"type":"option"},"plan":{"kind":"filepath","char":"p","description":"path to plan to insert multiple data files that have master-detail relationships","input":[],"multiple":false,"type":"option"},"contenttype":{"kind":"string","char":"c","description":"if data file extension is not .json, provide content type (applies to all files)","hidden":true,"input":[],"multiple":false,"type":"option"},"confighelp":{"kind":"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,"type":"boolean"}},"result":{"tableColumnData":{"refId":{"header":"Reference ID"},"type":{"header":"Type"},"id":{"header":"ID"}}}},"force:data:soql:bulk:report":{"id":"force:data:soql:bulk:report","description":"view the status of a bulk query\nRun this command using the job ID returned from the force:data:soql:query --bulk command.","strict":true,"usage":"<%= command.id %> -i <string> [-r human|csv|json] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-data","pluginAlias":"@salesforce/plugin-data","pluginType":"core","aliases":[],"examples":["$ sfdx force:data:soql:bulk:report -i 7500x000005BdFzXXX"],"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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"bulkqueryid":{"name":"bulkqueryid","type":"option","char":"i","description":"the job ID of the bulk query","required":true,"multiple":false},"resultformat":{"name":"resultformat","type":"option","char":"r","description":"result format emitted to stdout; --json flag overrides this parameter","helpValue":"(human|csv|json)","multiple":false,"options":["human","csv","json"],"default":"human"}},"args":[],"requiresUsername":true,"flagsConfig":{"bulkqueryid":{"kind":"string","char":"i","required":true,"description":"the job ID of the bulk query","input":[],"multiple":false,"type":"option"},"resultformat":{"kind":"enum","helpValue":"(human|csv|json)","char":"r","description":"result format emitted to stdout; --json flag overrides this parameter","options":["human","csv","json"],"default":"human","input":[],"multiple":false,"type":"option"}}}}}
|