@salesforce/plugin-data 0.6.15 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +173 -186
  3. package/lib/api/data/tree/exportApi.d.ts +0 -1
  4. package/lib/api/data/tree/exportApi.js +17 -26
  5. package/lib/api/data/tree/exportApi.js.map +1 -1
  6. package/lib/api/data/tree/importApi.js +25 -45
  7. package/lib/api/data/tree/importApi.js.map +1 -1
  8. package/lib/batcher.d.ts +7 -4
  9. package/lib/batcher.js +3 -7
  10. package/lib/batcher.js.map +1 -1
  11. package/lib/commands/force/data/bulk/delete.d.ts +1 -1
  12. package/lib/commands/force/data/bulk/delete.js +5 -4
  13. package/lib/commands/force/data/bulk/delete.js.map +1 -1
  14. package/lib/commands/force/data/bulk/status.d.ts +2 -1
  15. package/lib/commands/force/data/bulk/status.js +1 -4
  16. package/lib/commands/force/data/bulk/status.js.map +1 -1
  17. package/lib/commands/force/data/bulk/upsert.d.ts +1 -1
  18. package/lib/commands/force/data/bulk/upsert.js +3 -2
  19. package/lib/commands/force/data/bulk/upsert.js.map +1 -1
  20. package/lib/commands/force/data/record/create.d.ts +2 -2
  21. package/lib/commands/force/data/record/create.js.map +1 -1
  22. package/lib/commands/force/data/record/delete.d.ts +2 -2
  23. package/lib/commands/force/data/record/delete.js +1 -1
  24. package/lib/commands/force/data/record/delete.js.map +1 -1
  25. package/lib/commands/force/data/record/get.d.ts +1 -2
  26. package/lib/commands/force/data/record/get.js +1 -1
  27. package/lib/commands/force/data/record/get.js.map +1 -1
  28. package/lib/commands/force/data/record/update.d.ts +2 -2
  29. package/lib/commands/force/data/record/update.js +3 -1
  30. package/lib/commands/force/data/record/update.js.map +1 -1
  31. package/lib/commands/force/data/soql/query.d.ts +3 -4
  32. package/lib/commands/force/data/soql/query.js +14 -11
  33. package/lib/commands/force/data/soql/query.js.map +1 -1
  34. package/lib/commands/force/data/tree/import.js +3 -5
  35. package/lib/commands/force/data/tree/import.js.map +1 -1
  36. package/lib/dataCommand.d.ts +12 -6
  37. package/lib/dataCommand.js +38 -23
  38. package/lib/dataCommand.js.map +1 -1
  39. package/lib/dataSoqlQueryTypes.d.ts +2 -2
  40. package/lib/dataSoqlQueryTypes.js +1 -2
  41. package/lib/dataSoqlQueryTypes.js.map +1 -1
  42. package/lib/reporters.d.ts +5 -8
  43. package/lib/reporters.js +28 -17
  44. package/lib/reporters.js.map +1 -1
  45. package/oclif.manifest.json +1 -1
  46. package/package.json +15 -13
@@ -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;AAiDM,MAAM,gBAAgB,GAAG,CAAI,OAAmC,EAA+B,EAAE;;IACtG,OAAO,KAAK,CAAC,OAAO,CAAC,MAAC,OAA4B,0CAAE,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"}
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;AAmDM,MAAM,gBAAgB,GAAG,CAAI,OAAmC,EAA+B,EAAE;IACtG,OAAO,KAAK,CAAC,OAAO,CAAE,OAA4B,aAA5B,OAAO,uBAAP,OAAO,CAAuB,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"}
@@ -1,7 +1,8 @@
1
1
  import { Logger } from '@salesforce/core';
2
2
  import { UX } from '@salesforce/command';
3
3
  import { Optional } from '@salesforce/ts-types';
4
- import { BasicRecord, Field, SoqlQueryResult } from './dataSoqlQueryTypes';
4
+ import { CliUx } from '@oclif/core';
5
+ import { Field, SoqlQueryResult } from './dataSoqlQueryTypes';
5
6
  export declare class Reporter {
6
7
  protected ux: UX;
7
8
  protected logger: Logger;
@@ -18,18 +19,14 @@ declare type ParsedFields = {
18
19
  children: string[];
19
20
  aggregates: Field[];
20
21
  };
21
- declare type ColumnAttributes = {
22
- key: string;
23
- label: string;
24
- };
25
22
  export declare class HumanReporter extends QueryReporter {
26
23
  constructor(data: SoqlQueryResult, columns: Field[], ux: UX, logger: Logger);
27
24
  display(): void;
28
25
  parseFields(): ParsedFields;
29
- soqlQuery(columns: Array<Optional<string>>, records: BasicRecord[], totalCount: number): void;
26
+ soqlQuery(columns: Array<Optional<string>>, records: unknown[], totalCount: number): void;
30
27
  prepNullValues(records: unknown[]): void;
31
- prepColumns(columns: Array<Optional<string>>): ColumnAttributes[];
32
- massageRows(queryResults: BasicRecord[], children: string[], aggregates: Field[]): BasicRecord[];
28
+ prepColumns(columns: Array<Optional<string>>): CliUx.Table.table.Columns<Record<string, unknown>>;
29
+ massageRows(queryResults: unknown[], children: string[], aggregates: Field[]): any;
33
30
  }
34
31
  export declare class CsvReporter extends QueryReporter {
35
32
  constructor(data: SoqlQueryResult, columns: Field[], ux: UX, logger: Logger);
package/lib/reporters.js CHANGED
@@ -80,7 +80,7 @@ class HumanReporter extends QueryReporter {
80
80
  }
81
81
  soqlQuery(columns, records, totalCount) {
82
82
  this.prepNullValues(records);
83
- this.ux.table(records, { columns: this.prepColumns(columns) });
83
+ this.ux.table(records, this.prepColumns(columns));
84
84
  this.log(chalk.bold(messages.getMessage('displayQueryRecordsRetrieved', [totalCount])));
85
85
  }
86
86
  prepNullValues(records) {
@@ -99,14 +99,18 @@ class HumanReporter extends QueryReporter {
99
99
  });
100
100
  }
101
101
  prepColumns(columns) {
102
- return columns
102
+ const formattedColumns = {};
103
+ columns
103
104
  .map((field) => field)
104
105
  .filter((field) => field)
105
- .map((field) => ({
106
- key: field,
107
- label: field.toUpperCase(),
106
+ .map((field) => (formattedColumns[field] = {
107
+ header: field.toUpperCase(),
108
+ get: (row) => (0, ts_types_1.get)(row, field),
108
109
  }));
110
+ return formattedColumns;
109
111
  }
112
+ // public massageRows(queryResults: BasicRecord[], children: string[], aggregates: Field[]): BasicRecord[] {
113
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
110
114
  massageRows(queryResults, children, aggregates) {
111
115
  // some fields will return a JSON object that isn't accessible via the query (SELECT Metadata FROM RemoteProxy)
112
116
  // some will return a JSON that IS accessible via the query (SELECT owner.Profile.Name FROM Lead)
@@ -131,7 +135,6 @@ class HumanReporter extends QueryReporter {
131
135
  let qr;
132
136
  if (children.length > 0 || aggregates.length > 0) {
133
137
  qr = queryResults.reduce((newResults, result) => {
134
- newResults.push(result);
135
138
  // Aggregates are soql functions that aggregate data, like "SELECT avg(total)" and
136
139
  // are returned in the data as exprX. Aggregates can have aliases, like "avg(total) totalAverage"
137
140
  // and are returned in the data as the alias.
@@ -146,24 +149,28 @@ class HumanReporter extends QueryReporter {
146
149
  if (children.length > 0) {
147
150
  const childrenRows = {};
148
151
  children.forEach((child) => {
149
- const aChild = result[child];
152
+ const aChild = (0, ts_types_1.get)(result, child);
150
153
  Reflect.set(childrenRows, child, aChild);
151
154
  Reflect.deleteProperty(result, child);
152
155
  });
153
- Object.keys(childrenRows).forEach((child) => {
154
- const childObject = childrenRows[child];
155
- if (childObject && (0, dataSoqlQueryTypes_1.hasNestedRecords)(childObject)) {
156
- childObject.records.forEach((childRecord) => {
157
- const newRecord = {};
158
- Object.entries(childRecord).forEach(([key, value]) => {
159
- Reflect.defineProperty(newRecord, `${child.toString()}.${key}`, { value });
156
+ Reflect.ownKeys(childrenRows).forEach((child) => {
157
+ const childO = (0, ts_types_1.get)(childrenRows, child);
158
+ if (childO) {
159
+ const childRecords = (0, ts_types_1.getArray)(childO, 'records', []);
160
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
161
+ childRecords.forEach((record) => {
162
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
163
+ Object.entries(record).forEach(([key, value]) => {
164
+ // merge subqueries with the "parent" so they are on the same row
165
+ Reflect.defineProperty(result, `${child.toString()}.${key}`, {
166
+ value: value ? value : chalk.bold('null'),
167
+ });
160
168
  });
161
- // I guarantee that one of the keys will be the `attributes`
162
- newResults.push(newRecord);
163
169
  });
164
170
  }
165
171
  });
166
172
  }
173
+ newResults.push(result);
167
174
  return newResults;
168
175
  }, []);
169
176
  }
@@ -204,6 +211,10 @@ class CsvReporter extends QueryReporter {
204
211
  const value = (0, ts_types_1.get)(row, name);
205
212
  if ((0, ts_types_1.isString)(value)) {
206
213
  return this.escape(value);
214
+ // if value is null, then typeof value === 'object' so check before typeof to avoid illegal csv
215
+ }
216
+ else if (value === null) {
217
+ return;
207
218
  }
208
219
  else if (typeof value === 'object') {
209
220
  return this.escape(JSON.stringify(value));
@@ -241,7 +252,7 @@ class CsvReporter extends QueryReporter {
241
252
  this.data.result.records.forEach((result) => {
242
253
  [...typeLengths.keys()].forEach((key) => {
243
254
  var _a;
244
- const record = result[key];
255
+ const record = (0, ts_types_1.get)(result, key);
245
256
  const totalSize = (0, ts_types_1.getNumber)(record, 'totalSize');
246
257
  if (!!totalSize && totalSize > ((_a = typeLengths.get(key)) !== null && _a !== void 0 ? _a : 0)) {
247
258
  typeLengths.set(key, totalSize);
@@ -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,mDAA0E;AAC1E,6DAAwG;AAExG,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;AAaD,MAAa,aAAc,SAAQ,aAAa;IAC9C,YAAmB,IAAqB,EAAE,OAAgB,EAAE,EAAM,EAAE,MAAc;QAChF,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,CA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I,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;wBACrE,CAAC,CAAC,CAAC;qBACJ;iBACF;qBAAM,IAAI,KAAK,CAAC,SAAS,KAAK,8BAAS,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;AA1HD,kCA0HC;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"}
@@ -1 +1 @@
1
- {"version":"0.6.15","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":"2.0.0","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> [-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"],"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","required":true,"multiple":false},"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","required":true,"description":"SOQL query to execute","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"}}}}}}
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-data",
3
- "version": "0.6.15",
3
+ "version": "2.0.0",
4
4
  "description": "Plugin for salesforce data commands",
5
5
  "author": "Salesforce",
6
+ "main": "lib/index.js",
6
7
  "homepage": "https://github.com/salesforcecli/plugin-data",
7
8
  "keywords": [
8
9
  "force",
@@ -80,30 +81,30 @@
80
81
  "test:command-reference": "./bin/run commandreference:generate --erroronwarnings",
81
82
  "test:deprecation-policy": "./bin/run snapshot:compare",
82
83
  "test:nuts": "nyc mocha \"./test/**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
83
- "version": "oclif-dev readme"
84
+ "version": "oclif readme"
84
85
  },
85
86
  "dependencies": {
86
- "@oclif/config": "^1",
87
- "@salesforce/command": "^4.2.0",
88
- "@salesforce/core": "^2.37.1",
87
+ "@oclif/core": "^1.6.4",
88
+ "@salesforce/command": "^5.0.5",
89
+ "@salesforce/core": "^3.16.2",
89
90
  "@salesforce/ts-types": "^1.5.20",
91
+ "@types/fs-extra": "^9.0.13",
90
92
  "chalk": "^4.1.0",
91
93
  "csv-parse": "^4.16.3",
94
+ "fs-extra": "^10.0.1",
92
95
  "csv-stringify": "^6.0.5",
93
96
  "tslib": "^2"
94
97
  },
95
98
  "devDependencies": {
96
- "@oclif/dev-cli": "^1",
97
- "@oclif/plugin-command-snapshot": "^2.1.1",
99
+ "@oclif/plugin-command-snapshot": "^3.1.3",
98
100
  "@salesforce/cli-plugins-testkit": "^1.4.24",
99
- "@salesforce/dev-config": "^2.1.3",
100
- "@salesforce/dev-scripts": "^1.0.2",
101
+ "@salesforce/dev-config": "^3.0.1",
102
+ "@salesforce/dev-scripts": "2.0.1",
101
103
  "@salesforce/plugin-command-reference": "^1.3.0",
102
104
  "@salesforce/prettier-config": "^0.0.2",
103
105
  "@salesforce/ts-sinon": "^1.3.15",
104
106
  "@types/chai-as-promised": "^7.1.3",
105
107
  "@types/graceful-fs": "^4.1.5",
106
- "@types/jsforce": "^1.9.41",
107
108
  "@types/mkdirp": "^1.0.1",
108
109
  "@typescript-eslint/eslint-plugin": "^4.33.0",
109
110
  "@typescript-eslint/parser": "^4.33.0",
@@ -121,8 +122,9 @@
121
122
  "eslint-plugin-prettier": "^3.1.3",
122
123
  "fast-xml-parser": "^3.20.3",
123
124
  "husky": "^7.0.4",
124
- "mocha": "^8.4.0",
125
+ "mocha": "^9.1.3",
125
126
  "nyc": "^15.1.0",
127
+ "oclif": "^2.6.3",
126
128
  "prettier": "^2.4.1",
127
129
  "pretty-quick": "^3.1.0",
128
130
  "shx": "^0.3.3",
@@ -131,7 +133,7 @@
131
133
  "typescript": "^4.4.4"
132
134
  },
133
135
  "sfdx": {
134
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/0.6.15.crt",
135
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/0.6.15.sig"
136
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/2.0.0.crt",
137
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/2.0.0.sig"
136
138
  }
137
139
  }