@salesforce/plugin-data 3.6.4 → 3.6.6

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 CHANGED
@@ -142,7 +142,7 @@ EXAMPLES
142
142
  $ sf data create file --file path/to/astro.png --parent-id a03fakeLoJWPIA3
143
143
  ```
144
144
 
145
- _See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/create/file.ts)_
145
+ _See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/create/file.ts)_
146
146
 
147
147
  ## `sf data create record`
148
148
 
@@ -198,7 +198,7 @@ EXAMPLES
198
198
  TracedEntityId=01p17000000R6bLAAS"
199
199
  ```
200
200
 
201
- _See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/create/record.ts)_
201
+ _See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/create/record.ts)_
202
202
 
203
203
  ## `sf data delete bulk`
204
204
 
@@ -256,7 +256,7 @@ FLAG DESCRIPTIONS
256
256
  and can be enabled only by a system administrator.
257
257
  ```
258
258
 
259
- _See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/delete/bulk.ts)_
259
+ _See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/delete/bulk.ts)_
260
260
 
261
261
  ## `sf data delete record`
262
262
 
@@ -317,7 +317,7 @@ EXAMPLES
317
317
  $ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
318
318
  ```
319
319
 
320
- _See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/delete/record.ts)_
320
+ _See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/delete/record.ts)_
321
321
 
322
322
  ## `sf data delete resume`
323
323
 
@@ -356,7 +356,7 @@ EXAMPLES
356
356
  $ sf data delete resume --use-most-recent --target-org my-scratch
357
357
  ```
358
358
 
359
- _See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/delete/resume.ts)_
359
+ _See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/delete/resume.ts)_
360
360
 
361
361
  ## `sf data export tree`
362
362
 
@@ -417,7 +417,7 @@ EXAMPLES
417
417
  my-scratch
418
418
  ```
419
419
 
420
- _See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/export/tree.ts)_
420
+ _See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/export/tree.ts)_
421
421
 
422
422
  ## `sf data get record`
423
423
 
@@ -481,7 +481,7 @@ EXAMPLES
481
481
  $ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
482
482
  ```
483
483
 
484
- _See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/get/record.ts)_
484
+ _See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/get/record.ts)_
485
485
 
486
486
  ## `sf data import tree`
487
487
 
@@ -546,7 +546,7 @@ FLAG DESCRIPTIONS
546
546
  - files(array) - Files: An array of files paths to load
547
547
  ```
548
548
 
549
- _See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/import/tree.ts)_
549
+ _See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/import/tree.ts)_
550
550
 
551
551
  ## `sf data query`
552
552
 
@@ -610,7 +610,7 @@ EXAMPLES
610
610
  $ sf data query --query "SELECT Id FROM Contact" --bulk --wait 0
611
611
  ```
612
612
 
613
- _See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/query.ts)_
613
+ _See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/query.ts)_
614
614
 
615
615
  ## `sf data query resume`
616
616
 
@@ -648,7 +648,7 @@ EXAMPLES
648
648
  $ sf data query resume --bulk-query-id 7500x000005BdFzXXX
649
649
  ```
650
650
 
651
- _See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/query/resume.ts)_
651
+ _See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/query/resume.ts)_
652
652
 
653
653
  ## `sf data resume`
654
654
 
@@ -685,7 +685,7 @@ EXAMPLES
685
685
  $ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
686
686
  ```
687
687
 
688
- _See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/resume.ts)_
688
+ _See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/resume.ts)_
689
689
 
690
690
  ## `sf data search`
691
691
 
@@ -735,7 +735,7 @@ EXAMPLES
735
735
  $ sf data search --file query.txt --target-org my-scratch --result-format csv
736
736
  ```
737
737
 
738
- _See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/search.ts)_
738
+ _See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/search.ts)_
739
739
 
740
740
  ## `sf data update record`
741
741
 
@@ -797,7 +797,7 @@ EXAMPLES
797
797
  "ExpirationDate=2017-12-01T00:58:04.000+0000"
798
798
  ```
799
799
 
800
- _See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/update/record.ts)_
800
+ _See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/update/record.ts)_
801
801
 
802
802
  ## `sf data upsert bulk`
803
803
 
@@ -850,7 +850,7 @@ EXAMPLES
850
850
  my-scratch
851
851
  ```
852
852
 
853
- _See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/upsert/bulk.ts)_
853
+ _See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/upsert/bulk.ts)_
854
854
 
855
855
  ## `sf data upsert resume`
856
856
 
@@ -889,7 +889,7 @@ EXAMPLES
889
889
  $ sf data upsert resume --use-most-recent --target-org my-scratch
890
890
  ```
891
891
 
892
- _See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/data/upsert/resume.ts)_
892
+ _See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/data/upsert/resume.ts)_
893
893
 
894
894
  ## `sf force data bulk delete`
895
895
 
@@ -936,7 +936,7 @@ EXAMPLES
936
936
  $ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
937
937
  ```
938
938
 
939
- _See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/force/data/bulk/delete.ts)_
939
+ _See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/force/data/bulk/delete.ts)_
940
940
 
941
941
  ## `sf force data bulk status`
942
942
 
@@ -973,7 +973,7 @@ EXAMPLES
973
973
  $ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
974
974
  ```
975
975
 
976
- _See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/force/data/bulk/status.ts)_
976
+ _See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/force/data/bulk/status.ts)_
977
977
 
978
978
  ## `sf force data bulk upsert`
979
979
 
@@ -1031,6 +1031,6 @@ EXAMPLES
1031
1031
  --target-org my-scratch
1032
1032
  ```
1033
1033
 
1034
- _See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.4/src/commands/force/data/bulk/upsert.ts)_
1034
+ _See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.6/src/commands/force/data/bulk/upsert.ts)_
1035
1035
 
1036
1036
  <!-- commandsstop -->
@@ -7,8 +7,8 @@
7
7
  import fs from 'node:fs';
8
8
  import { Messages } from '@salesforce/core';
9
9
  import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
10
- import { orgFlags, resultFormatFlag } from '../../flags.js';
11
10
  import { displaySearchResults } from '../../searchUtils.js';
11
+ import { formatTypes } from '../../reporters/query/reporters.js';
12
12
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
13
13
  const messages = Messages.loadMessages('@salesforce/plugin-data', 'data.search');
14
14
  export class DataSearchCommand extends SfCommand {
@@ -16,7 +16,8 @@ export class DataSearchCommand extends SfCommand {
16
16
  static description = messages.getMessage('description');
17
17
  static examples = messages.getMessages('examples');
18
18
  static flags = {
19
- ...orgFlags,
19
+ 'target-org': Flags.requiredOrg(),
20
+ 'api-version': Flags.orgApiVersion(),
20
21
  query: Flags.string({
21
22
  char: 'q',
22
23
  summary: messages.getMessage('flags.query.summary'),
@@ -28,10 +29,13 @@ export class DataSearchCommand extends SfCommand {
28
29
  summary: messages.getMessage('flags.file.summary'),
29
30
  exactlyOne: ['query', 'file'],
30
31
  }),
31
- 'result-format': resultFormatFlag({
32
+ 'result-format': Flags.custom({
33
+ char: 'r',
32
34
  summary: messages.getMessage('flags.result-format.summary'),
35
+ options: formatTypes,
36
+ default: 'human',
33
37
  exclusive: ['json'],
34
- }),
38
+ })(),
35
39
  };
36
40
  async run() {
37
41
  const flags = (await this.parse(DataSearchCommand)).flags;
@@ -1 +1 @@
1
- {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/commands/data/search.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,aAAa,CAAC,CAAC;AAEjF,MAAM,OAAO,iBAAkB,SAAQ,SAAuB;IACrD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE5D,MAAM,CAAU,KAAK,GAAG;QAC7B,GAAG,QAAQ;QACX,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC;YAClB,IAAI,EAAE,GAAG;YACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;YACnD,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;SAC9B,CAAC;QACF,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;YACf,IAAI,EAAE,GAAG;YACT,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;YAClD,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;SAC9B,CAAC;QACF,eAAe,EAAE,gBAAgB,CAAC;YAChC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,6BAA6B,CAAC;YAC3D,SAAS,EAAE,CAAC,MAAM,CAAC;SACpB,CAAC;KACH,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,KAAK,GAAG,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC;QAE1D,IAAI,CAAC;YACH,wFAAwF;YACxF,MAAM,WAAW,GAAG,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,IAAc,EAAE,MAAM,CAAC,CAAC;YACjF,MAAM,IAAI,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;YACrE,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,MAAM;gBAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC,CAAC;YACtG,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACnD,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;gBACxB,oBAAoB,CAAC,WAAW,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;YAC5D,CAAC;YACD,OAAO,WAAW,CAAC;QACrB,CAAC;gBAAS,CAAC;YACT,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,MAAM;gBAAE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC"}
1
+ {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/commands/data/search.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAe,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAE9E,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,aAAa,CAAC,CAAC;AAEjF,MAAM,OAAO,iBAAkB,SAAQ,SAAuB;IACrD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE5D,MAAM,CAAU,KAAK,GAAG;QAC7B,YAAY,EAAE,KAAK,CAAC,WAAW,EAAE;QACjC,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE;QACpC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC;YAClB,IAAI,EAAE,GAAG;YACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;YACnD,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;SAC9B,CAAC;QACF,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;YACf,IAAI,EAAE,GAAG;YACT,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;YAClD,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;SAC9B,CAAC;QACF,eAAe,EAAE,KAAK,CAAC,MAAM,CAAc;YACzC,IAAI,EAAE,GAAG;YACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,6BAA6B,CAAC;YAC3D,OAAO,EAAE,WAAW;YACpB,OAAO,EAAE,OAAO;YAChB,SAAS,EAAE,CAAC,MAAM,CAAC;SACpB,CAAC,EAAE;KACL,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,KAAK,GAAG,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC;QAE1D,IAAI,CAAC;YACH,wFAAwF;YACxF,MAAM,WAAW,GAAG,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,IAAc,EAAE,MAAM,CAAC,CAAC;YACjF,MAAM,IAAI,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;YACrE,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,MAAM;gBAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC,CAAC;YACtG,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACnD,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;gBACxB,oBAAoB,CAAC,WAAW,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;YAC5D,CAAC;YACD,OAAO,WAAW,CAAC;QACrB,CAAC;gBAAS,CAAC;YACT,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,MAAM;gBAAE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QAC7D,CAAC;IACH,CAAC"}
@@ -352,12 +352,7 @@
352
352
  "type": "option"
353
353
  },
354
354
  "target-org": {
355
- "aliases": [
356
- "targetusername",
357
- "u"
358
- ],
359
355
  "char": "o",
360
- "deprecateAliases": true,
361
356
  "name": "target-org",
362
357
  "noCacheDefault": true,
363
358
  "required": true,
@@ -367,26 +362,12 @@
367
362
  "type": "option"
368
363
  },
369
364
  "api-version": {
370
- "aliases": [
371
- "apiversion"
372
- ],
373
- "deprecateAliases": true,
374
365
  "description": "Override the api version used for api requests made by this command",
375
366
  "name": "api-version",
376
367
  "hasDynamicHelp": false,
377
368
  "multiple": false,
378
369
  "type": "option"
379
370
  },
380
- "loglevel": {
381
- "deprecated": {
382
- "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
383
- },
384
- "hidden": true,
385
- "name": "loglevel",
386
- "hasDynamicHelp": false,
387
- "multiple": false,
388
- "type": "option"
389
- },
390
371
  "query": {
391
372
  "char": "q",
392
373
  "name": "query",
@@ -404,11 +385,7 @@
404
385
  "type": "option"
405
386
  },
406
387
  "result-format": {
407
- "aliases": [
408
- "resultformat"
409
- ],
410
388
  "char": "r",
411
- "deprecateAliases": true,
412
389
  "exclusive": [
413
390
  "json"
414
391
  ],
@@ -447,13 +424,14 @@
447
424
  "search:data"
448
425
  ]
449
426
  },
450
- "data:delete:bulk": {
427
+ "data:create:file": {
451
428
  "aliases": [],
452
429
  "args": {},
453
- "description": "The CSV file must have only one column (\"Id\") and then the list of record IDs you want to delete, one ID per line.\n\nWhen you execute this command, it starts a job, displays the ID, and then immediately returns control of the terminal to you by default. If you prefer to wait, set the --wait flag to the number of minutes; if it times out, the command outputs the IDs. Use the job ID to check the status of the job with the \"<%= config.bin %> data delete resume\" command.",
430
+ "description": "This command always creates a new file in the org; you can't update an existing file. After a successful upload, the command displays the ID of the new ContentDocument record which represents the uploaded file.\n\nBy default, the uploaded file isn't attached to a record; in the Salesforce UI the file shows up in the Files tab. You can optionally attach the file to an existing record, such as an account, as long as you know its record ID.\n\nYou can also give the file a new name after it's been uploaded; by default its name in the org is the same as the local file name.",
454
431
  "examples": [
455
- "Bulk delete Account records from your default org using the list of IDs in the \"files/delete.csv\" file:\n<%= config.bin %> <%= command.id %> --sobject Account --file files/delete.csv",
456
- "Bulk delete records from a custom object in an org with alias my-scratch and wait 5 minutes for the command to complete:\n<%= config.bin %> <%= command.id %> --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch"
432
+ "Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
433
+ "Give the file a different filename after it's uploaded to the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --file resources/astro.png --title AstroOnABoat.png --target-org my-scratch",
434
+ "Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
457
435
  ],
458
436
  "flags": {
459
437
  "json": {
@@ -472,12 +450,7 @@
472
450
  "type": "option"
473
451
  },
474
452
  "target-org": {
475
- "aliases": [
476
- "targetusername",
477
- "u"
478
- ],
479
453
  "char": "o",
480
- "deprecateAliases": true,
481
454
  "name": "target-org",
482
455
  "noCacheDefault": true,
483
456
  "required": true,
@@ -487,127 +460,77 @@
487
460
  "type": "option"
488
461
  },
489
462
  "api-version": {
490
- "aliases": [
491
- "apiversion"
492
- ],
493
- "deprecateAliases": true,
494
463
  "description": "Override the api version used for api requests made by this command",
495
464
  "name": "api-version",
496
465
  "hasDynamicHelp": false,
497
466
  "multiple": false,
498
467
  "type": "option"
499
468
  },
500
- "loglevel": {
501
- "deprecated": {
502
- "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
503
- },
504
- "hidden": true,
505
- "name": "loglevel",
469
+ "title": {
470
+ "char": "t",
471
+ "name": "title",
472
+ "required": false,
473
+ "summary": "New title given to the file (ContentDocument) after it's uploaded.",
506
474
  "hasDynamicHelp": false,
507
475
  "multiple": false,
508
476
  "type": "option"
509
477
  },
510
478
  "file": {
511
- "aliases": [
512
- "csvfile"
513
- ],
514
479
  "char": "f",
515
- "deprecateAliases": true,
516
480
  "name": "file",
517
481
  "required": true,
518
- "summary": "CSV file that contains the IDs of the records to update or delete.",
482
+ "summary": "Path of file to upload.",
519
483
  "hasDynamicHelp": false,
520
484
  "multiple": false,
521
485
  "type": "option"
522
486
  },
523
- "sobject": {
524
- "aliases": [
525
- "sobjecttype"
526
- ],
527
- "char": "s",
528
- "deprecateAliases": true,
529
- "name": "sobject",
530
- "required": true,
531
- "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
487
+ "parent-id": {
488
+ "char": "i",
489
+ "name": "parent-id",
490
+ "summary": "ID of the record to attach the file to.",
532
491
  "hasDynamicHelp": false,
533
492
  "multiple": false,
534
493
  "type": "option"
535
- },
536
- "wait": {
537
- "char": "w",
538
- "exclusive": [
539
- "async"
540
- ],
541
- "name": "wait",
542
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
543
- "default": "0 minutes",
544
- "hasDynamicHelp": true,
545
- "multiple": false,
546
- "type": "option"
547
- },
548
- "async": {
549
- "char": "a",
550
- "exclusive": [
551
- "wait"
552
- ],
553
- "name": "async",
554
- "summary": "Run the command asynchronously.",
555
- "allowNo": false,
556
- "type": "boolean"
557
- },
558
- "verbose": {
559
- "name": "verbose",
560
- "summary": "Print verbose output of failed records if result is available.",
561
- "allowNo": false,
562
- "type": "boolean"
563
- },
564
- "hard-delete": {
565
- "description": "You must have the \"Bulk API Hard Delete\" system permission to use this flag. The permission is disabled by default and can be enabled only by a system administrator.",
566
- "name": "hard-delete",
567
- "summary": "Mark the records as immediately eligible for deletion by your org. If you don't specify this flag, the deleted records go into the Recycle Bin.",
568
- "allowNo": false,
569
- "type": "boolean"
570
494
  }
571
495
  },
572
496
  "hasDynamicHelp": true,
573
497
  "hiddenAliases": [],
574
- "id": "data:delete:bulk",
498
+ "id": "data:create:file",
575
499
  "pluginAlias": "@salesforce/plugin-data",
576
500
  "pluginName": "@salesforce/plugin-data",
577
501
  "pluginType": "core",
578
502
  "strict": true,
579
- "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
503
+ "summary": "Upload a local file to an org.",
580
504
  "enableJsonFlag": true,
581
505
  "isESM": true,
582
506
  "relativePath": [
583
507
  "lib",
584
508
  "commands",
585
509
  "data",
586
- "delete",
587
- "bulk.js"
510
+ "create",
511
+ "file.js"
588
512
  ],
589
513
  "aliasPermutations": [],
590
514
  "permutations": [
591
- "data:delete:bulk",
592
- "delete:data:bulk",
593
- "delete:bulk:data",
594
- "data:bulk:delete",
595
- "bulk:data:delete",
596
- "bulk:delete:data"
515
+ "data:create:file",
516
+ "create:data:file",
517
+ "create:file:data",
518
+ "data:file:create",
519
+ "file:data:create",
520
+ "file:create:data"
597
521
  ]
598
522
  },
599
- "data:delete:record": {
523
+ "data:create:record": {
600
524
  "aliases": [
601
- "force:data:record:delete"
525
+ "force:data:record:create"
602
526
  ],
603
527
  "args": {},
604
528
  "deprecateAliases": true,
605
- "description": "Specify the record you want to delete with either its ID or with a list of field-value pairs that identify the record. If your list of fields identifies more than one record, the delete fails; the error displays how many records were found.\n\nWhen specifying field-value pairs, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command deletes a record from Salesforce objects by default. Use the --use-tooling-api flag to delete from a Tooling API object.",
529
+ "description": "You must specify a value for all required fields of the object.\n\nWhen specifying fields, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command inserts a record into Salesforce objects by default. Use the --use-tooling-api flag to insert into a Tooling API object.",
606
530
  "examples": [
607
- "Delete a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
608
- "Delete a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
609
- "Delete a record from Account identified with two field values, one that contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name='Universal Containers' Phone='(123) 456-7890'\" --target-org myscratch",
610
- "Delete a record from the Tooling API object TraceFlag with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --record-id 7tf8c"
531
+ "Insert a record into the Account object of your default org; only the required Name field has a value:\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name=Acme\"",
532
+ "Insert an Account record with values for two fields, one value contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name='Universal Containers' Website=www.example.com\" --target-org my-scratch",
533
+ "Insert a record into the Tooling API object TraceFlag:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --values \"DebugLevelId=7dl170000008U36AAE StartDate=2022-12-15T00:26:04.000+0000 ExpirationDate=2022-12-15T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS\""
611
534
  ],
612
535
  "flags": {
613
536
  "json": {
@@ -669,27 +592,16 @@
669
592
  "deprecateAliases": true,
670
593
  "name": "sobject",
671
594
  "required": true,
672
- "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
673
- "hasDynamicHelp": false,
674
- "multiple": false,
675
- "type": "option"
676
- },
677
- "record-id": {
678
- "aliases": [
679
- "sobjectid"
680
- ],
681
- "char": "i",
682
- "deprecateAliases": true,
683
- "name": "record-id",
684
- "summary": "ID of the record you’re deleting.",
595
+ "summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
685
596
  "hasDynamicHelp": false,
686
597
  "multiple": false,
687
598
  "type": "option"
688
599
  },
689
- "where": {
690
- "char": "w",
691
- "name": "where",
692
- "summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
600
+ "values": {
601
+ "char": "v",
602
+ "name": "values",
603
+ "required": true,
604
+ "summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
693
605
  "hasDynamicHelp": false,
694
606
  "multiple": false,
695
607
  "type": "option"
@@ -701,7 +613,7 @@
701
613
  "char": "t",
702
614
  "deprecateAliases": true,
703
615
  "name": "use-tooling-api",
704
- "summary": "Use Tooling API so you can delete a record from a Tooling API object.",
616
+ "summary": "Use Tooling API so you can insert a record in a Tooling API object.",
705
617
  "allowNo": false,
706
618
  "type": "boolean"
707
619
  },
@@ -719,64 +631,63 @@
719
631
  },
720
632
  "hasDynamicHelp": true,
721
633
  "hiddenAliases": [],
722
- "id": "data:delete:record",
634
+ "id": "data:create:record",
723
635
  "pluginAlias": "@salesforce/plugin-data",
724
636
  "pluginName": "@salesforce/plugin-data",
725
637
  "pluginType": "core",
726
638
  "strict": true,
727
- "summary": "Deletes a single record from a Salesforce or Tooling API object.",
639
+ "summary": "Create and insert a record into a Salesforce or Tooling API object.",
728
640
  "enableJsonFlag": true,
729
641
  "isESM": true,
730
642
  "relativePath": [
731
643
  "lib",
732
644
  "commands",
733
645
  "data",
734
- "delete",
646
+ "create",
735
647
  "record.js"
736
648
  ],
737
649
  "aliasPermutations": [
738
- "force:data:record:delete",
739
- "data:force:record:delete",
740
- "data:record:force:delete",
741
- "data:record:delete:force",
742
- "force:record:data:delete",
743
- "record:force:data:delete",
744
- "record:data:force:delete",
745
- "record:data:delete:force",
746
- "force:record:delete:data",
747
- "record:force:delete:data",
748
- "record:delete:force:data",
749
- "record:delete:data:force",
750
- "force:data:delete:record",
751
- "data:force:delete:record",
752
- "data:delete:force:record",
753
- "data:delete:record:force",
754
- "force:delete:data:record",
755
- "delete:force:data:record",
756
- "delete:data:force:record",
757
- "delete:data:record:force",
758
- "force:delete:record:data",
759
- "delete:force:record:data",
760
- "delete:record:force:data",
761
- "delete:record:data:force"
650
+ "force:data:record:create",
651
+ "data:force:record:create",
652
+ "data:record:force:create",
653
+ "data:record:create:force",
654
+ "force:record:data:create",
655
+ "record:force:data:create",
656
+ "record:data:force:create",
657
+ "record:data:create:force",
658
+ "force:record:create:data",
659
+ "record:force:create:data",
660
+ "record:create:force:data",
661
+ "record:create:data:force",
662
+ "force:data:create:record",
663
+ "data:force:create:record",
664
+ "data:create:force:record",
665
+ "data:create:record:force",
666
+ "force:create:data:record",
667
+ "create:force:data:record",
668
+ "create:data:force:record",
669
+ "create:data:record:force",
670
+ "force:create:record:data",
671
+ "create:force:record:data",
672
+ "create:record:force:data",
673
+ "create:record:data:force"
762
674
  ],
763
675
  "permutations": [
764
- "data:delete:record",
765
- "delete:data:record",
766
- "delete:record:data",
767
- "data:record:delete",
768
- "record:data:delete",
769
- "record:delete:data"
676
+ "data:create:record",
677
+ "create:data:record",
678
+ "create:record:data",
679
+ "data:record:create",
680
+ "record:data:create",
681
+ "record:create:data"
770
682
  ]
771
683
  },
772
- "data:delete:resume": {
684
+ "data:delete:bulk": {
773
685
  "aliases": [],
774
686
  "args": {},
775
- "deprecateAliases": true,
776
- "description": "The command uses the job ID returned by the \"<%= config.bin %> data delete bulk\" command or the most recently-run bulk delete job.",
687
+ "description": "The CSV file must have only one column (\"Id\") and then the list of record IDs you want to delete, one ID per line.\n\nWhen you execute this command, it starts a job, displays the ID, and then immediately returns control of the terminal to you by default. If you prefer to wait, set the --wait flag to the number of minutes; if it times out, the command outputs the IDs. Use the job ID to check the status of the job with the \"<%= config.bin %> data delete resume\" command.",
777
688
  "examples": [
778
- "Resume a bulk delete job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
779
- "Resume the most recently run bulk delete job for an org with alias my-scratch:\n<%= config.bin %> <%= command.id %> --use-most-recent --target-org my-scratch"
689
+ "Bulk delete Account records from your default org using the list of IDs in the \"files/delete.csv\" file:\n<%= config.bin %> <%= command.id %> --sobject Account --file files/delete.csv",
690
+ "Bulk delete records from a custom object in an org with alias my-scratch and wait 5 minutes for the command to complete:\n<%= config.bin %> <%= command.id %> --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch"
780
691
  ],
781
692
  "flags": {
782
693
  "json": {
@@ -803,66 +714,103 @@
803
714
  "deprecateAliases": true,
804
715
  "name": "target-org",
805
716
  "noCacheDefault": true,
806
- "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
717
+ "required": true,
718
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
807
719
  "hasDynamicHelp": true,
808
720
  "multiple": false,
809
721
  "type": "option"
810
722
  },
811
- "job-id": {
723
+ "api-version": {
812
724
  "aliases": [
813
- "jobid"
725
+ "apiversion"
814
726
  ],
815
- "char": "i",
816
727
  "deprecateAliases": true,
817
- "name": "job-id",
818
- "summary": "ID of the job you want to resume.",
728
+ "description": "Override the api version used for api requests made by this command",
729
+ "name": "api-version",
819
730
  "hasDynamicHelp": false,
820
731
  "multiple": false,
821
732
  "type": "option"
822
733
  },
823
- "use-most-recent": {
824
- "exclusive": [
825
- "job-id"
826
- ],
827
- "name": "use-most-recent",
828
- "summary": "Use the ID of the most recently-run bulk job.",
829
- "allowNo": false,
830
- "type": "boolean"
831
- },
832
- "wait": {
833
- "name": "wait",
834
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
835
- "default": "0 minutes",
836
- "hasDynamicHelp": true,
734
+ "loglevel": {
735
+ "deprecated": {
736
+ "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
737
+ },
738
+ "hidden": true,
739
+ "name": "loglevel",
740
+ "hasDynamicHelp": false,
837
741
  "multiple": false,
838
742
  "type": "option"
839
743
  },
840
- "api-version": {
841
- "description": "Override the api version used for api requests made by this command",
842
- "name": "api-version",
744
+ "file": {
745
+ "aliases": [
746
+ "csvfile"
747
+ ],
748
+ "char": "f",
749
+ "deprecateAliases": true,
750
+ "name": "file",
751
+ "required": true,
752
+ "summary": "CSV file that contains the IDs of the records to update or delete.",
843
753
  "hasDynamicHelp": false,
844
754
  "multiple": false,
845
755
  "type": "option"
846
756
  },
847
- "loglevel": {
848
- "deprecated": {
849
- "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
850
- },
851
- "hidden": true,
852
- "name": "loglevel",
757
+ "sobject": {
758
+ "aliases": [
759
+ "sobjecttype"
760
+ ],
761
+ "char": "s",
762
+ "deprecateAliases": true,
763
+ "name": "sobject",
764
+ "required": true,
765
+ "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
853
766
  "hasDynamicHelp": false,
854
767
  "multiple": false,
855
768
  "type": "option"
769
+ },
770
+ "wait": {
771
+ "char": "w",
772
+ "exclusive": [
773
+ "async"
774
+ ],
775
+ "name": "wait",
776
+ "summary": "Number of minutes to wait for the command to complete before displaying the results.",
777
+ "default": "0 minutes",
778
+ "hasDynamicHelp": true,
779
+ "multiple": false,
780
+ "type": "option"
781
+ },
782
+ "async": {
783
+ "char": "a",
784
+ "exclusive": [
785
+ "wait"
786
+ ],
787
+ "name": "async",
788
+ "summary": "Run the command asynchronously.",
789
+ "allowNo": false,
790
+ "type": "boolean"
791
+ },
792
+ "verbose": {
793
+ "name": "verbose",
794
+ "summary": "Print verbose output of failed records if result is available.",
795
+ "allowNo": false,
796
+ "type": "boolean"
797
+ },
798
+ "hard-delete": {
799
+ "description": "You must have the \"Bulk API Hard Delete\" system permission to use this flag. The permission is disabled by default and can be enabled only by a system administrator.",
800
+ "name": "hard-delete",
801
+ "summary": "Mark the records as immediately eligible for deletion by your org. If you don't specify this flag, the deleted records go into the Recycle Bin.",
802
+ "allowNo": false,
803
+ "type": "boolean"
856
804
  }
857
805
  },
858
806
  "hasDynamicHelp": true,
859
807
  "hiddenAliases": [],
860
- "id": "data:delete:resume",
808
+ "id": "data:delete:bulk",
861
809
  "pluginAlias": "@salesforce/plugin-data",
862
810
  "pluginName": "@salesforce/plugin-data",
863
811
  "pluginType": "core",
864
812
  "strict": true,
865
- "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
813
+ "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
866
814
  "enableJsonFlag": true,
867
815
  "isESM": true,
868
816
  "relativePath": [
@@ -870,26 +818,30 @@
870
818
  "commands",
871
819
  "data",
872
820
  "delete",
873
- "resume.js"
821
+ "bulk.js"
874
822
  ],
875
823
  "aliasPermutations": [],
876
824
  "permutations": [
877
- "data:delete:resume",
878
- "delete:data:resume",
879
- "delete:resume:data",
880
- "data:resume:delete",
881
- "resume:data:delete",
882
- "resume:delete:data"
825
+ "data:delete:bulk",
826
+ "delete:data:bulk",
827
+ "delete:bulk:data",
828
+ "data:bulk:delete",
829
+ "bulk:data:delete",
830
+ "bulk:delete:data"
883
831
  ]
884
832
  },
885
- "data:create:file": {
886
- "aliases": [],
833
+ "data:delete:record": {
834
+ "aliases": [
835
+ "force:data:record:delete"
836
+ ],
887
837
  "args": {},
888
- "description": "This command always creates a new file in the org; you can't update an existing file. After a successful upload, the command displays the ID of the new ContentDocument record which represents the uploaded file.\n\nBy default, the uploaded file isn't attached to a record; in the Salesforce UI the file shows up in the Files tab. You can optionally attach the file to an existing record, such as an account, as long as you know its record ID.\n\nYou can also give the file a new name after it's been uploaded; by default its name in the org is the same as the local file name.",
838
+ "deprecateAliases": true,
839
+ "description": "Specify the record you want to delete with either its ID or with a list of field-value pairs that identify the record. If your list of fields identifies more than one record, the delete fails; the error displays how many records were found.\n\nWhen specifying field-value pairs, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command deletes a record from Salesforce objects by default. Use the --use-tooling-api flag to delete from a Tooling API object.",
889
840
  "examples": [
890
- "Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
891
- "Give the file a different filename after it's uploaded to the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --file resources/astro.png --title AstroOnABoat.png --target-org my-scratch",
892
- "Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
841
+ "Delete a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
842
+ "Delete a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
843
+ "Delete a record from Account identified with two field values, one that contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name='Universal Containers' Phone='(123) 456-7890'\" --target-org myscratch",
844
+ "Delete a record from the Tooling API object TraceFlag with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --record-id 7tf8c"
893
845
  ],
894
846
  "flags": {
895
847
  "json": {
@@ -908,7 +860,12 @@
908
860
  "type": "option"
909
861
  },
910
862
  "target-org": {
863
+ "aliases": [
864
+ "targetusername",
865
+ "u"
866
+ ],
911
867
  "char": "o",
868
+ "deprecateAliases": true,
912
869
  "name": "target-org",
913
870
  "noCacheDefault": true,
914
871
  "required": true,
@@ -918,77 +875,142 @@
918
875
  "type": "option"
919
876
  },
920
877
  "api-version": {
878
+ "aliases": [
879
+ "apiversion"
880
+ ],
881
+ "deprecateAliases": true,
921
882
  "description": "Override the api version used for api requests made by this command",
922
883
  "name": "api-version",
923
884
  "hasDynamicHelp": false,
924
885
  "multiple": false,
925
886
  "type": "option"
926
887
  },
927
- "title": {
928
- "char": "t",
929
- "name": "title",
930
- "required": false,
931
- "summary": "New title given to the file (ContentDocument) after it's uploaded.",
888
+ "loglevel": {
889
+ "deprecated": {
890
+ "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
891
+ },
892
+ "hidden": true,
893
+ "name": "loglevel",
932
894
  "hasDynamicHelp": false,
933
895
  "multiple": false,
934
896
  "type": "option"
935
897
  },
936
- "file": {
937
- "char": "f",
938
- "name": "file",
898
+ "sobject": {
899
+ "aliases": [
900
+ "sobjecttype"
901
+ ],
902
+ "char": "s",
903
+ "deprecateAliases": true,
904
+ "name": "sobject",
939
905
  "required": true,
940
- "summary": "Path of file to upload.",
906
+ "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
941
907
  "hasDynamicHelp": false,
942
908
  "multiple": false,
943
909
  "type": "option"
944
910
  },
945
- "parent-id": {
911
+ "record-id": {
912
+ "aliases": [
913
+ "sobjectid"
914
+ ],
946
915
  "char": "i",
947
- "name": "parent-id",
948
- "summary": "ID of the record to attach the file to.",
916
+ "deprecateAliases": true,
917
+ "name": "record-id",
918
+ "summary": "ID of the record you’re deleting.",
919
+ "hasDynamicHelp": false,
920
+ "multiple": false,
921
+ "type": "option"
922
+ },
923
+ "where": {
924
+ "char": "w",
925
+ "name": "where",
926
+ "summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
949
927
  "hasDynamicHelp": false,
950
928
  "multiple": false,
951
929
  "type": "option"
930
+ },
931
+ "use-tooling-api": {
932
+ "aliases": [
933
+ "usetoolingapi"
934
+ ],
935
+ "char": "t",
936
+ "deprecateAliases": true,
937
+ "name": "use-tooling-api",
938
+ "summary": "Use Tooling API so you can delete a record from a Tooling API object.",
939
+ "allowNo": false,
940
+ "type": "boolean"
941
+ },
942
+ "perflog": {
943
+ "deprecated": {
944
+ "version": "57"
945
+ },
946
+ "description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
947
+ "hidden": true,
948
+ "name": "perflog",
949
+ "summary": "Get API performance data.",
950
+ "allowNo": false,
951
+ "type": "boolean"
952
952
  }
953
953
  },
954
954
  "hasDynamicHelp": true,
955
955
  "hiddenAliases": [],
956
- "id": "data:create:file",
956
+ "id": "data:delete:record",
957
957
  "pluginAlias": "@salesforce/plugin-data",
958
958
  "pluginName": "@salesforce/plugin-data",
959
959
  "pluginType": "core",
960
960
  "strict": true,
961
- "summary": "Upload a local file to an org.",
961
+ "summary": "Deletes a single record from a Salesforce or Tooling API object.",
962
962
  "enableJsonFlag": true,
963
963
  "isESM": true,
964
964
  "relativePath": [
965
965
  "lib",
966
966
  "commands",
967
967
  "data",
968
- "create",
969
- "file.js"
968
+ "delete",
969
+ "record.js"
970
+ ],
971
+ "aliasPermutations": [
972
+ "force:data:record:delete",
973
+ "data:force:record:delete",
974
+ "data:record:force:delete",
975
+ "data:record:delete:force",
976
+ "force:record:data:delete",
977
+ "record:force:data:delete",
978
+ "record:data:force:delete",
979
+ "record:data:delete:force",
980
+ "force:record:delete:data",
981
+ "record:force:delete:data",
982
+ "record:delete:force:data",
983
+ "record:delete:data:force",
984
+ "force:data:delete:record",
985
+ "data:force:delete:record",
986
+ "data:delete:force:record",
987
+ "data:delete:record:force",
988
+ "force:delete:data:record",
989
+ "delete:force:data:record",
990
+ "delete:data:force:record",
991
+ "delete:data:record:force",
992
+ "force:delete:record:data",
993
+ "delete:force:record:data",
994
+ "delete:record:force:data",
995
+ "delete:record:data:force"
970
996
  ],
971
- "aliasPermutations": [],
972
997
  "permutations": [
973
- "data:create:file",
974
- "create:data:file",
975
- "create:file:data",
976
- "data:file:create",
977
- "file:data:create",
978
- "file:create:data"
998
+ "data:delete:record",
999
+ "delete:data:record",
1000
+ "delete:record:data",
1001
+ "data:record:delete",
1002
+ "record:data:delete",
1003
+ "record:delete:data"
979
1004
  ]
980
1005
  },
981
- "data:create:record": {
982
- "aliases": [
983
- "force:data:record:create"
984
- ],
1006
+ "data:delete:resume": {
1007
+ "aliases": [],
985
1008
  "args": {},
986
1009
  "deprecateAliases": true,
987
- "description": "You must specify a value for all required fields of the object.\n\nWhen specifying fields, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.\n\nThis command inserts a record into Salesforce objects by default. Use the --use-tooling-api flag to insert into a Tooling API object.",
1010
+ "description": "The command uses the job ID returned by the \"<%= config.bin %> data delete bulk\" command or the most recently-run bulk delete job.",
988
1011
  "examples": [
989
- "Insert a record into the Account object of your default org; only the required Name field has a value:\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name=Acme\"",
990
- "Insert an Account record with values for two fields, one value contains a space; the command uses the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --sobject Account --values \"Name='Universal Containers' Website=www.example.com\" --target-org my-scratch",
991
- "Insert a record into the Tooling API object TraceFlag:\n<%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --values \"DebugLevelId=7dl170000008U36AAE StartDate=2022-12-15T00:26:04.000+0000 ExpirationDate=2022-12-15T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS\""
1012
+ "Resume a bulk delete job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
1013
+ "Resume the most recently run bulk delete job for an org with alias my-scratch:\n<%= config.bin %> <%= command.id %> --use-most-recent --target-org my-scratch"
992
1014
  ],
993
1015
  "flags": {
994
1016
  "json": {
@@ -1015,128 +1037,83 @@
1015
1037
  "deprecateAliases": true,
1016
1038
  "name": "target-org",
1017
1039
  "noCacheDefault": true,
1018
- "required": true,
1019
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1040
+ "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
1020
1041
  "hasDynamicHelp": true,
1021
1042
  "multiple": false,
1022
1043
  "type": "option"
1023
1044
  },
1024
- "api-version": {
1045
+ "job-id": {
1025
1046
  "aliases": [
1026
- "apiversion"
1047
+ "jobid"
1027
1048
  ],
1049
+ "char": "i",
1028
1050
  "deprecateAliases": true,
1029
- "description": "Override the api version used for api requests made by this command",
1030
- "name": "api-version",
1031
- "hasDynamicHelp": false,
1032
- "multiple": false,
1033
- "type": "option"
1034
- },
1035
- "loglevel": {
1036
- "deprecated": {
1037
- "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
1038
- },
1039
- "hidden": true,
1040
- "name": "loglevel",
1051
+ "name": "job-id",
1052
+ "summary": "ID of the job you want to resume.",
1041
1053
  "hasDynamicHelp": false,
1042
1054
  "multiple": false,
1043
1055
  "type": "option"
1044
1056
  },
1045
- "sobject": {
1046
- "aliases": [
1047
- "sobjecttype"
1057
+ "use-most-recent": {
1058
+ "exclusive": [
1059
+ "job-id"
1048
1060
  ],
1049
- "char": "s",
1050
- "deprecateAliases": true,
1051
- "name": "sobject",
1052
- "required": true,
1053
- "summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
1054
- "hasDynamicHelp": false,
1061
+ "name": "use-most-recent",
1062
+ "summary": "Use the ID of the most recently-run bulk job.",
1063
+ "allowNo": false,
1064
+ "type": "boolean"
1065
+ },
1066
+ "wait": {
1067
+ "name": "wait",
1068
+ "summary": "Number of minutes to wait for the command to complete before displaying the results.",
1069
+ "default": "0 minutes",
1070
+ "hasDynamicHelp": true,
1055
1071
  "multiple": false,
1056
1072
  "type": "option"
1057
1073
  },
1058
- "values": {
1059
- "char": "v",
1060
- "name": "values",
1061
- "required": true,
1062
- "summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
1074
+ "api-version": {
1075
+ "description": "Override the api version used for api requests made by this command",
1076
+ "name": "api-version",
1063
1077
  "hasDynamicHelp": false,
1064
1078
  "multiple": false,
1065
1079
  "type": "option"
1066
1080
  },
1067
- "use-tooling-api": {
1068
- "aliases": [
1069
- "usetoolingapi"
1070
- ],
1071
- "char": "t",
1072
- "deprecateAliases": true,
1073
- "name": "use-tooling-api",
1074
- "summary": "Use Tooling API so you can insert a record in a Tooling API object.",
1075
- "allowNo": false,
1076
- "type": "boolean"
1077
- },
1078
- "perflog": {
1081
+ "loglevel": {
1079
1082
  "deprecated": {
1080
- "version": "57"
1083
+ "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
1081
1084
  },
1082
- "description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
1083
1085
  "hidden": true,
1084
- "name": "perflog",
1085
- "summary": "Get API performance data.",
1086
- "allowNo": false,
1087
- "type": "boolean"
1086
+ "name": "loglevel",
1087
+ "hasDynamicHelp": false,
1088
+ "multiple": false,
1089
+ "type": "option"
1088
1090
  }
1089
1091
  },
1090
1092
  "hasDynamicHelp": true,
1091
1093
  "hiddenAliases": [],
1092
- "id": "data:create:record",
1094
+ "id": "data:delete:resume",
1093
1095
  "pluginAlias": "@salesforce/plugin-data",
1094
1096
  "pluginName": "@salesforce/plugin-data",
1095
1097
  "pluginType": "core",
1096
1098
  "strict": true,
1097
- "summary": "Create and insert a record into a Salesforce or Tooling API object.",
1099
+ "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
1098
1100
  "enableJsonFlag": true,
1099
1101
  "isESM": true,
1100
1102
  "relativePath": [
1101
1103
  "lib",
1102
1104
  "commands",
1103
1105
  "data",
1104
- "create",
1105
- "record.js"
1106
- ],
1107
- "aliasPermutations": [
1108
- "force:data:record:create",
1109
- "data:force:record:create",
1110
- "data:record:force:create",
1111
- "data:record:create:force",
1112
- "force:record:data:create",
1113
- "record:force:data:create",
1114
- "record:data:force:create",
1115
- "record:data:create:force",
1116
- "force:record:create:data",
1117
- "record:force:create:data",
1118
- "record:create:force:data",
1119
- "record:create:data:force",
1120
- "force:data:create:record",
1121
- "data:force:create:record",
1122
- "data:create:force:record",
1123
- "data:create:record:force",
1124
- "force:create:data:record",
1125
- "create:force:data:record",
1126
- "create:data:force:record",
1127
- "create:data:record:force",
1128
- "force:create:record:data",
1129
- "create:force:record:data",
1130
- "create:record:force:data",
1131
- "create:record:data:force"
1106
+ "delete",
1107
+ "resume.js"
1132
1108
  ],
1109
+ "aliasPermutations": [],
1133
1110
  "permutations": [
1134
- "data:create:record",
1135
- "create:data:record",
1136
- "create:record:data",
1137
- "data:record:create",
1138
- "record:data:create",
1139
- "record:create:data"
1111
+ "data:delete:resume",
1112
+ "delete:data:resume",
1113
+ "delete:resume:data",
1114
+ "data:resume:delete",
1115
+ "resume:data:delete",
1116
+ "resume:delete:data"
1140
1117
  ]
1141
1118
  },
1142
1119
  "data:export:tree": {
@@ -3100,5 +3077,5 @@
3100
3077
  ]
3101
3078
  }
3102
3079
  },
3103
- "version": "3.6.4"
3080
+ "version": "3.6.6"
3104
3081
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-data",
3
- "version": "3.6.4",
3
+ "version": "3.6.6",
4
4
  "description": "Plugin for salesforce data commands",
5
5
  "author": "Salesforce",
6
6
  "homepage": "https://github.com/salesforcecli/plugin-data",
@@ -108,7 +108,7 @@
108
108
  },
109
109
  "dependencies": {
110
110
  "@jsforce/jsforce-node": "^3.4.1",
111
- "@salesforce/core": "^8.3.0",
111
+ "@salesforce/core": "^8.5.2",
112
112
  "@salesforce/kit": "^3.2.2",
113
113
  "@salesforce/sf-plugins-core": "^11.3.4",
114
114
  "@salesforce/ts-types": "^2.0.11",
@@ -120,13 +120,13 @@
120
120
  },
121
121
  "devDependencies": {
122
122
  "@oclif/core": "^4.0.19",
123
- "@oclif/plugin-command-snapshot": "^5.2.14",
124
- "@salesforce/cli-plugins-testkit": "^5.3.26",
125
- "@salesforce/dev-scripts": "^10.2.9",
126
- "@salesforce/plugin-command-reference": "^3.1.18",
123
+ "@oclif/plugin-command-snapshot": "^5.2.15",
124
+ "@salesforce/cli-plugins-testkit": "^5.3.32",
125
+ "@salesforce/dev-scripts": "^10.2.10",
126
+ "@salesforce/plugin-command-reference": "^3.1.23",
127
127
  "@salesforce/types": "^1.2.0",
128
- "eslint-plugin-sf-plugin": "^1.20.5",
129
- "oclif": "^4.14.24",
128
+ "eslint-plugin-sf-plugin": "^1.20.7",
129
+ "oclif": "^4.14.34",
130
130
  "ts-node": "^10.9.2",
131
131
  "typescript": "^5.5.4"
132
132
  },
@@ -251,7 +251,7 @@
251
251
  "exports": "./lib/index.js",
252
252
  "type": "module",
253
253
  "sfdx": {
254
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.6.4.crt",
255
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.6.4.sig"
254
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.6.6.crt",
255
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.6.6.sig"
256
256
  }
257
257
  }