@salesforce/plugin-data 3.6.1-dev.1 → 3.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md 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.1-dev.1/src/commands/data/create/file.ts)_
145
+ _See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/create/record.ts)_
201
+ _See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/delete/bulk.ts)_
259
+ _See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/delete/record.ts)_
320
+ _See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/delete/resume.ts)_
359
+ _See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/export/tree.ts)_
420
+ _See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/get/record.ts)_
484
+ _See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/import/tree.ts)_
549
+ _See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/query.ts)_
613
+ _See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/query/resume.ts)_
651
+ _See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/resume.ts)_
688
+ _See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/search.ts)_
738
+ _See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/update/record.ts)_
800
+ _See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/upsert/bulk.ts)_
853
+ _See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/src/commands/data/upsert/resume.ts)_
892
+ _See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.2/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.1-dev.1/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.2/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.1-dev.1/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.2/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.1-dev.1/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.2/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';
10
11
  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,8 +16,7 @@ export class DataSearchCommand extends SfCommand {
16
16
  static description = messages.getMessage('description');
17
17
  static examples = messages.getMessages('examples');
18
18
  static flags = {
19
- 'target-org': Flags.requiredOrg(),
20
- 'api-version': Flags.orgApiVersion(),
19
+ ...orgFlags,
21
20
  query: Flags.string({
22
21
  char: 'q',
23
22
  summary: messages.getMessage('flags.query.summary'),
@@ -29,13 +28,10 @@ export class DataSearchCommand extends SfCommand {
29
28
  summary: messages.getMessage('flags.file.summary'),
30
29
  exactlyOne: ['query', 'file'],
31
30
  }),
32
- 'result-format': Flags.custom({
33
- char: 'r',
31
+ 'result-format': resultFormatFlag({
34
32
  summary: messages.getMessage('flags.result-format.summary'),
35
- options: formatTypes,
36
- default: 'human',
37
33
  exclusive: ['json'],
38
- })(),
34
+ }),
39
35
  };
40
36
  async run() {
41
37
  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,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,IA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
355
359
  "char": "o",
360
+ "deprecateAliases": true,
356
361
  "name": "target-org",
357
362
  "noCacheDefault": true,
358
363
  "required": true,
@@ -362,12 +367,26 @@
362
367
  "type": "option"
363
368
  },
364
369
  "api-version": {
370
+ "aliases": [
371
+ "apiversion"
372
+ ],
373
+ "deprecateAliases": true,
365
374
  "description": "Override the api version used for api requests made by this command",
366
375
  "name": "api-version",
367
376
  "hasDynamicHelp": false,
368
377
  "multiple": false,
369
378
  "type": "option"
370
379
  },
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
+ },
371
390
  "query": {
372
391
  "char": "q",
373
392
  "name": "query",
@@ -385,7 +404,11 @@
385
404
  "type": "option"
386
405
  },
387
406
  "result-format": {
407
+ "aliases": [
408
+ "resultformat"
409
+ ],
388
410
  "char": "r",
411
+ "deprecateAliases": true,
389
412
  "exclusive": [
390
413
  "json"
391
414
  ],
@@ -424,13 +447,14 @@
424
447
  "search:data"
425
448
  ]
426
449
  },
427
- "data:delete:bulk": {
450
+ "data:create:file": {
428
451
  "aliases": [],
429
452
  "args": {},
430
- "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.",
453
+ "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.",
431
454
  "examples": [
432
- "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",
433
- "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"
455
+ "Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
456
+ "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",
457
+ "Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
434
458
  ],
435
459
  "flags": {
436
460
  "json": {
@@ -449,12 +473,7 @@
449
473
  "type": "option"
450
474
  },
451
475
  "target-org": {
452
- "aliases": [
453
- "targetusername",
454
- "u"
455
- ],
456
476
  "char": "o",
457
- "deprecateAliases": true,
458
477
  "name": "target-org",
459
478
  "noCacheDefault": true,
460
479
  "required": true,
@@ -464,127 +483,77 @@
464
483
  "type": "option"
465
484
  },
466
485
  "api-version": {
467
- "aliases": [
468
- "apiversion"
469
- ],
470
- "deprecateAliases": true,
471
486
  "description": "Override the api version used for api requests made by this command",
472
487
  "name": "api-version",
473
488
  "hasDynamicHelp": false,
474
489
  "multiple": false,
475
490
  "type": "option"
476
491
  },
477
- "loglevel": {
478
- "deprecated": {
479
- "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."
480
- },
481
- "hidden": true,
482
- "name": "loglevel",
492
+ "title": {
493
+ "char": "t",
494
+ "name": "title",
495
+ "required": false,
496
+ "summary": "New title given to the file (ContentDocument) after it's uploaded.",
483
497
  "hasDynamicHelp": false,
484
498
  "multiple": false,
485
499
  "type": "option"
486
500
  },
487
501
  "file": {
488
- "aliases": [
489
- "csvfile"
490
- ],
491
502
  "char": "f",
492
- "deprecateAliases": true,
493
503
  "name": "file",
494
504
  "required": true,
495
- "summary": "CSV file that contains the IDs of the records to update or delete.",
505
+ "summary": "Path of file to upload.",
496
506
  "hasDynamicHelp": false,
497
507
  "multiple": false,
498
508
  "type": "option"
499
509
  },
500
- "sobject": {
501
- "aliases": [
502
- "sobjecttype"
503
- ],
504
- "char": "s",
505
- "deprecateAliases": true,
506
- "name": "sobject",
507
- "required": true,
508
- "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
510
+ "parent-id": {
511
+ "char": "i",
512
+ "name": "parent-id",
513
+ "summary": "ID of the record to attach the file to.",
509
514
  "hasDynamicHelp": false,
510
515
  "multiple": false,
511
516
  "type": "option"
512
- },
513
- "wait": {
514
- "char": "w",
515
- "exclusive": [
516
- "async"
517
- ],
518
- "name": "wait",
519
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
520
- "default": "0 minutes",
521
- "hasDynamicHelp": true,
522
- "multiple": false,
523
- "type": "option"
524
- },
525
- "async": {
526
- "char": "a",
527
- "exclusive": [
528
- "wait"
529
- ],
530
- "name": "async",
531
- "summary": "Run the command asynchronously.",
532
- "allowNo": false,
533
- "type": "boolean"
534
- },
535
- "verbose": {
536
- "name": "verbose",
537
- "summary": "Print verbose output of failed records if result is available.",
538
- "allowNo": false,
539
- "type": "boolean"
540
- },
541
- "hard-delete": {
542
- "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.",
543
- "name": "hard-delete",
544
- "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.",
545
- "allowNo": false,
546
- "type": "boolean"
547
517
  }
548
518
  },
549
519
  "hasDynamicHelp": true,
550
520
  "hiddenAliases": [],
551
- "id": "data:delete:bulk",
521
+ "id": "data:create:file",
552
522
  "pluginAlias": "@salesforce/plugin-data",
553
523
  "pluginName": "@salesforce/plugin-data",
554
524
  "pluginType": "core",
555
525
  "strict": true,
556
- "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
526
+ "summary": "Upload a local file to an org.",
557
527
  "enableJsonFlag": true,
558
528
  "isESM": true,
559
529
  "relativePath": [
560
530
  "lib",
561
531
  "commands",
562
532
  "data",
563
- "delete",
564
- "bulk.js"
533
+ "create",
534
+ "file.js"
565
535
  ],
566
536
  "aliasPermutations": [],
567
537
  "permutations": [
568
- "data:delete:bulk",
569
- "delete:data:bulk",
570
- "delete:bulk:data",
571
- "data:bulk:delete",
572
- "bulk:data:delete",
573
- "bulk:delete:data"
538
+ "data:create:file",
539
+ "create:data:file",
540
+ "create:file:data",
541
+ "data:file:create",
542
+ "file:data:create",
543
+ "file:create:data"
574
544
  ]
575
545
  },
576
- "data:delete:record": {
546
+ "data:create:record": {
577
547
  "aliases": [
578
- "force:data:record:delete"
548
+ "force:data:record:create"
579
549
  ],
580
550
  "args": {},
581
551
  "deprecateAliases": true,
582
- "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.",
552
+ "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.",
583
553
  "examples": [
584
- "Delete a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
585
- "Delete a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
586
- "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",
587
- "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"
554
+ "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\"",
555
+ "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",
556
+ "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\""
588
557
  ],
589
558
  "flags": {
590
559
  "json": {
@@ -646,27 +615,16 @@
646
615
  "deprecateAliases": true,
647
616
  "name": "sobject",
648
617
  "required": true,
649
- "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
650
- "hasDynamicHelp": false,
651
- "multiple": false,
652
- "type": "option"
653
- },
654
- "record-id": {
655
- "aliases": [
656
- "sobjectid"
657
- ],
658
- "char": "i",
659
- "deprecateAliases": true,
660
- "name": "record-id",
661
- "summary": "ID of the record you’re deleting.",
618
+ "summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
662
619
  "hasDynamicHelp": false,
663
620
  "multiple": false,
664
621
  "type": "option"
665
622
  },
666
- "where": {
667
- "char": "w",
668
- "name": "where",
669
- "summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
623
+ "values": {
624
+ "char": "v",
625
+ "name": "values",
626
+ "required": true,
627
+ "summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
670
628
  "hasDynamicHelp": false,
671
629
  "multiple": false,
672
630
  "type": "option"
@@ -678,7 +636,7 @@
678
636
  "char": "t",
679
637
  "deprecateAliases": true,
680
638
  "name": "use-tooling-api",
681
- "summary": "Use Tooling API so you can delete a record from a Tooling API object.",
639
+ "summary": "Use Tooling API so you can insert a record in a Tooling API object.",
682
640
  "allowNo": false,
683
641
  "type": "boolean"
684
642
  },
@@ -696,64 +654,63 @@
696
654
  },
697
655
  "hasDynamicHelp": true,
698
656
  "hiddenAliases": [],
699
- "id": "data:delete:record",
657
+ "id": "data:create:record",
700
658
  "pluginAlias": "@salesforce/plugin-data",
701
659
  "pluginName": "@salesforce/plugin-data",
702
660
  "pluginType": "core",
703
661
  "strict": true,
704
- "summary": "Deletes a single record from a Salesforce or Tooling API object.",
662
+ "summary": "Create and insert a record into a Salesforce or Tooling API object.",
705
663
  "enableJsonFlag": true,
706
664
  "isESM": true,
707
665
  "relativePath": [
708
666
  "lib",
709
667
  "commands",
710
668
  "data",
711
- "delete",
669
+ "create",
712
670
  "record.js"
713
671
  ],
714
672
  "aliasPermutations": [
715
- "force:data:record:delete",
716
- "data:force:record:delete",
717
- "data:record:force:delete",
718
- "data:record:delete:force",
719
- "force:record:data:delete",
720
- "record:force:data:delete",
721
- "record:data:force:delete",
722
- "record:data:delete:force",
723
- "force:record:delete:data",
724
- "record:force:delete:data",
725
- "record:delete:force:data",
726
- "record:delete:data:force",
727
- "force:data:delete:record",
728
- "data:force:delete:record",
729
- "data:delete:force:record",
730
- "data:delete:record:force",
731
- "force:delete:data:record",
732
- "delete:force:data:record",
733
- "delete:data:force:record",
734
- "delete:data:record:force",
735
- "force:delete:record:data",
736
- "delete:force:record:data",
737
- "delete:record:force:data",
738
- "delete:record:data:force"
673
+ "force:data:record:create",
674
+ "data:force:record:create",
675
+ "data:record:force:create",
676
+ "data:record:create:force",
677
+ "force:record:data:create",
678
+ "record:force:data:create",
679
+ "record:data:force:create",
680
+ "record:data:create:force",
681
+ "force:record:create:data",
682
+ "record:force:create:data",
683
+ "record:create:force:data",
684
+ "record:create:data:force",
685
+ "force:data:create:record",
686
+ "data:force:create:record",
687
+ "data:create:force:record",
688
+ "data:create:record:force",
689
+ "force:create:data:record",
690
+ "create:force:data:record",
691
+ "create:data:force:record",
692
+ "create:data:record:force",
693
+ "force:create:record:data",
694
+ "create:force:record:data",
695
+ "create:record:force:data",
696
+ "create:record:data:force"
739
697
  ],
740
698
  "permutations": [
741
- "data:delete:record",
742
- "delete:data:record",
743
- "delete:record:data",
744
- "data:record:delete",
745
- "record:data:delete",
746
- "record:delete:data"
699
+ "data:create:record",
700
+ "create:data:record",
701
+ "create:record:data",
702
+ "data:record:create",
703
+ "record:data:create",
704
+ "record:create:data"
747
705
  ]
748
706
  },
749
- "data:delete:resume": {
707
+ "data:delete:bulk": {
750
708
  "aliases": [],
751
709
  "args": {},
752
- "deprecateAliases": true,
753
- "description": "The command uses the job ID returned by the \"<%= config.bin %> data delete bulk\" command or the most recently-run bulk delete job.",
710
+ "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.",
754
711
  "examples": [
755
- "Resume a bulk delete job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
756
- "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"
712
+ "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",
713
+ "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"
757
714
  ],
758
715
  "flags": {
759
716
  "json": {
@@ -780,66 +737,103 @@
780
737
  "deprecateAliases": true,
781
738
  "name": "target-org",
782
739
  "noCacheDefault": true,
783
- "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
740
+ "required": true,
741
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
784
742
  "hasDynamicHelp": true,
785
743
  "multiple": false,
786
744
  "type": "option"
787
745
  },
788
- "job-id": {
746
+ "api-version": {
789
747
  "aliases": [
790
- "jobid"
748
+ "apiversion"
791
749
  ],
792
- "char": "i",
793
750
  "deprecateAliases": true,
794
- "name": "job-id",
795
- "summary": "ID of the job you want to resume.",
751
+ "description": "Override the api version used for api requests made by this command",
752
+ "name": "api-version",
796
753
  "hasDynamicHelp": false,
797
754
  "multiple": false,
798
755
  "type": "option"
799
756
  },
800
- "use-most-recent": {
801
- "exclusive": [
802
- "job-id"
803
- ],
804
- "name": "use-most-recent",
805
- "summary": "Use the ID of the most recently-run bulk job.",
806
- "allowNo": false,
807
- "type": "boolean"
808
- },
809
- "wait": {
810
- "name": "wait",
811
- "summary": "Number of minutes to wait for the command to complete before displaying the results.",
812
- "default": "0 minutes",
813
- "hasDynamicHelp": true,
757
+ "loglevel": {
758
+ "deprecated": {
759
+ "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."
760
+ },
761
+ "hidden": true,
762
+ "name": "loglevel",
763
+ "hasDynamicHelp": false,
814
764
  "multiple": false,
815
765
  "type": "option"
816
766
  },
817
- "api-version": {
818
- "description": "Override the api version used for api requests made by this command",
819
- "name": "api-version",
767
+ "file": {
768
+ "aliases": [
769
+ "csvfile"
770
+ ],
771
+ "char": "f",
772
+ "deprecateAliases": true,
773
+ "name": "file",
774
+ "required": true,
775
+ "summary": "CSV file that contains the IDs of the records to update or delete.",
820
776
  "hasDynamicHelp": false,
821
777
  "multiple": false,
822
778
  "type": "option"
823
779
  },
824
- "loglevel": {
825
- "deprecated": {
826
- "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."
827
- },
828
- "hidden": true,
829
- "name": "loglevel",
780
+ "sobject": {
781
+ "aliases": [
782
+ "sobjecttype"
783
+ ],
784
+ "char": "s",
785
+ "deprecateAliases": true,
786
+ "name": "sobject",
787
+ "required": true,
788
+ "summary": "API name of the Salesforce object, either standard or custom, that you want to update or delete records from.",
830
789
  "hasDynamicHelp": false,
831
790
  "multiple": false,
832
791
  "type": "option"
792
+ },
793
+ "wait": {
794
+ "char": "w",
795
+ "exclusive": [
796
+ "async"
797
+ ],
798
+ "name": "wait",
799
+ "summary": "Number of minutes to wait for the command to complete before displaying the results.",
800
+ "default": "0 minutes",
801
+ "hasDynamicHelp": true,
802
+ "multiple": false,
803
+ "type": "option"
804
+ },
805
+ "async": {
806
+ "char": "a",
807
+ "exclusive": [
808
+ "wait"
809
+ ],
810
+ "name": "async",
811
+ "summary": "Run the command asynchronously.",
812
+ "allowNo": false,
813
+ "type": "boolean"
814
+ },
815
+ "verbose": {
816
+ "name": "verbose",
817
+ "summary": "Print verbose output of failed records if result is available.",
818
+ "allowNo": false,
819
+ "type": "boolean"
820
+ },
821
+ "hard-delete": {
822
+ "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.",
823
+ "name": "hard-delete",
824
+ "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.",
825
+ "allowNo": false,
826
+ "type": "boolean"
833
827
  }
834
828
  },
835
829
  "hasDynamicHelp": true,
836
830
  "hiddenAliases": [],
837
- "id": "data:delete:resume",
831
+ "id": "data:delete:bulk",
838
832
  "pluginAlias": "@salesforce/plugin-data",
839
833
  "pluginName": "@salesforce/plugin-data",
840
834
  "pluginType": "core",
841
835
  "strict": true,
842
- "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
836
+ "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
843
837
  "enableJsonFlag": true,
844
838
  "isESM": true,
845
839
  "relativePath": [
@@ -847,26 +841,30 @@
847
841
  "commands",
848
842
  "data",
849
843
  "delete",
850
- "resume.js"
844
+ "bulk.js"
851
845
  ],
852
846
  "aliasPermutations": [],
853
847
  "permutations": [
854
- "data:delete:resume",
855
- "delete:data:resume",
856
- "delete:resume:data",
857
- "data:resume:delete",
858
- "resume:data:delete",
859
- "resume:delete:data"
848
+ "data:delete:bulk",
849
+ "delete:data:bulk",
850
+ "delete:bulk:data",
851
+ "data:bulk:delete",
852
+ "bulk:data:delete",
853
+ "bulk:delete:data"
860
854
  ]
861
855
  },
862
- "data:create:file": {
863
- "aliases": [],
856
+ "data:delete:record": {
857
+ "aliases": [
858
+ "force:data:record:delete"
859
+ ],
864
860
  "args": {},
865
- "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.",
861
+ "deprecateAliases": true,
862
+ "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.",
866
863
  "examples": [
867
- "Upload the local file \"resources/astro.png\" to your default org:\n<%= config.bin %> <%= command.id %> --file resources/astro.png",
868
- "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",
869
- "Attach the file to a record in the org:\n<%= config.bin %> <%= command.id %> --file path/to/astro.png --parent-id a03fakeLoJWPIA3"
864
+ "Delete a record from Account with the specified (truncated) ID:\n<%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX",
865
+ "Delete a record from Account whose name equals \"Acme\":\n<%= config.bin %> <%= command.id %> --sobject Account --where \"Name=Acme\"",
866
+ "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",
867
+ "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"
870
868
  ],
871
869
  "flags": {
872
870
  "json": {
@@ -885,7 +883,12 @@
885
883
  "type": "option"
886
884
  },
887
885
  "target-org": {
886
+ "aliases": [
887
+ "targetusername",
888
+ "u"
889
+ ],
888
890
  "char": "o",
891
+ "deprecateAliases": true,
889
892
  "name": "target-org",
890
893
  "noCacheDefault": true,
891
894
  "required": true,
@@ -895,77 +898,142 @@
895
898
  "type": "option"
896
899
  },
897
900
  "api-version": {
901
+ "aliases": [
902
+ "apiversion"
903
+ ],
904
+ "deprecateAliases": true,
898
905
  "description": "Override the api version used for api requests made by this command",
899
906
  "name": "api-version",
900
907
  "hasDynamicHelp": false,
901
908
  "multiple": false,
902
909
  "type": "option"
903
910
  },
904
- "title": {
905
- "char": "t",
906
- "name": "title",
907
- "required": false,
908
- "summary": "New title given to the file (ContentDocument) after it's uploaded.",
911
+ "loglevel": {
912
+ "deprecated": {
913
+ "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."
914
+ },
915
+ "hidden": true,
916
+ "name": "loglevel",
909
917
  "hasDynamicHelp": false,
910
918
  "multiple": false,
911
919
  "type": "option"
912
920
  },
913
- "file": {
914
- "char": "f",
915
- "name": "file",
921
+ "sobject": {
922
+ "aliases": [
923
+ "sobjecttype"
924
+ ],
925
+ "char": "s",
926
+ "deprecateAliases": true,
927
+ "name": "sobject",
916
928
  "required": true,
917
- "summary": "Path of file to upload.",
929
+ "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
918
930
  "hasDynamicHelp": false,
919
931
  "multiple": false,
920
932
  "type": "option"
921
933
  },
922
- "parent-id": {
934
+ "record-id": {
935
+ "aliases": [
936
+ "sobjectid"
937
+ ],
923
938
  "char": "i",
924
- "name": "parent-id",
925
- "summary": "ID of the record to attach the file to.",
939
+ "deprecateAliases": true,
940
+ "name": "record-id",
941
+ "summary": "ID of the record you’re deleting.",
942
+ "hasDynamicHelp": false,
943
+ "multiple": false,
944
+ "type": "option"
945
+ },
946
+ "where": {
947
+ "char": "w",
948
+ "name": "where",
949
+ "summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
926
950
  "hasDynamicHelp": false,
927
951
  "multiple": false,
928
952
  "type": "option"
953
+ },
954
+ "use-tooling-api": {
955
+ "aliases": [
956
+ "usetoolingapi"
957
+ ],
958
+ "char": "t",
959
+ "deprecateAliases": true,
960
+ "name": "use-tooling-api",
961
+ "summary": "Use Tooling API so you can delete a record from a Tooling API object.",
962
+ "allowNo": false,
963
+ "type": "boolean"
964
+ },
965
+ "perflog": {
966
+ "deprecated": {
967
+ "version": "57"
968
+ },
969
+ "description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
970
+ "hidden": true,
971
+ "name": "perflog",
972
+ "summary": "Get API performance data.",
973
+ "allowNo": false,
974
+ "type": "boolean"
929
975
  }
930
976
  },
931
977
  "hasDynamicHelp": true,
932
978
  "hiddenAliases": [],
933
- "id": "data:create:file",
979
+ "id": "data:delete:record",
934
980
  "pluginAlias": "@salesforce/plugin-data",
935
981
  "pluginName": "@salesforce/plugin-data",
936
982
  "pluginType": "core",
937
983
  "strict": true,
938
- "summary": "Upload a local file to an org.",
984
+ "summary": "Deletes a single record from a Salesforce or Tooling API object.",
939
985
  "enableJsonFlag": true,
940
986
  "isESM": true,
941
987
  "relativePath": [
942
988
  "lib",
943
989
  "commands",
944
990
  "data",
945
- "create",
946
- "file.js"
991
+ "delete",
992
+ "record.js"
993
+ ],
994
+ "aliasPermutations": [
995
+ "force:data:record:delete",
996
+ "data:force:record:delete",
997
+ "data:record:force:delete",
998
+ "data:record:delete:force",
999
+ "force:record:data:delete",
1000
+ "record:force:data:delete",
1001
+ "record:data:force:delete",
1002
+ "record:data:delete:force",
1003
+ "force:record:delete:data",
1004
+ "record:force:delete:data",
1005
+ "record:delete:force:data",
1006
+ "record:delete:data:force",
1007
+ "force:data:delete:record",
1008
+ "data:force:delete:record",
1009
+ "data:delete:force:record",
1010
+ "data:delete:record:force",
1011
+ "force:delete:data:record",
1012
+ "delete:force:data:record",
1013
+ "delete:data:force:record",
1014
+ "delete:data:record:force",
1015
+ "force:delete:record:data",
1016
+ "delete:force:record:data",
1017
+ "delete:record:force:data",
1018
+ "delete:record:data:force"
947
1019
  ],
948
- "aliasPermutations": [],
949
1020
  "permutations": [
950
- "data:create:file",
951
- "create:data:file",
952
- "create:file:data",
953
- "data:file:create",
954
- "file:data:create",
955
- "file:create:data"
1021
+ "data:delete:record",
1022
+ "delete:data:record",
1023
+ "delete:record:data",
1024
+ "data:record:delete",
1025
+ "record:data:delete",
1026
+ "record:delete:data"
956
1027
  ]
957
1028
  },
958
- "data:create:record": {
959
- "aliases": [
960
- "force:data:record:create"
961
- ],
1029
+ "data:delete:resume": {
1030
+ "aliases": [],
962
1031
  "args": {},
963
1032
  "deprecateAliases": true,
964
- "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.",
1033
+ "description": "The command uses the job ID returned by the \"<%= config.bin %> data delete bulk\" command or the most recently-run bulk delete job.",
965
1034
  "examples": [
966
- "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\"",
967
- "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",
968
- "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\""
1035
+ "Resume a bulk delete job from your default org using an ID:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
1036
+ "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"
969
1037
  ],
970
1038
  "flags": {
971
1039
  "json": {
@@ -992,128 +1060,83 @@
992
1060
  "deprecateAliases": true,
993
1061
  "name": "target-org",
994
1062
  "noCacheDefault": true,
995
- "required": true,
996
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1063
+ "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
997
1064
  "hasDynamicHelp": true,
998
1065
  "multiple": false,
999
1066
  "type": "option"
1000
1067
  },
1001
- "api-version": {
1068
+ "job-id": {
1002
1069
  "aliases": [
1003
- "apiversion"
1070
+ "jobid"
1004
1071
  ],
1072
+ "char": "i",
1005
1073
  "deprecateAliases": true,
1006
- "description": "Override the api version used for api requests made by this command",
1007
- "name": "api-version",
1008
- "hasDynamicHelp": false,
1009
- "multiple": false,
1010
- "type": "option"
1011
- },
1012
- "loglevel": {
1013
- "deprecated": {
1014
- "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."
1015
- },
1016
- "hidden": true,
1017
- "name": "loglevel",
1074
+ "name": "job-id",
1075
+ "summary": "ID of the job you want to resume.",
1018
1076
  "hasDynamicHelp": false,
1019
1077
  "multiple": false,
1020
1078
  "type": "option"
1021
1079
  },
1022
- "sobject": {
1023
- "aliases": [
1024
- "sobjecttype"
1080
+ "use-most-recent": {
1081
+ "exclusive": [
1082
+ "job-id"
1025
1083
  ],
1026
- "char": "s",
1027
- "deprecateAliases": true,
1028
- "name": "sobject",
1029
- "required": true,
1030
- "summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
1031
- "hasDynamicHelp": false,
1084
+ "name": "use-most-recent",
1085
+ "summary": "Use the ID of the most recently-run bulk job.",
1086
+ "allowNo": false,
1087
+ "type": "boolean"
1088
+ },
1089
+ "wait": {
1090
+ "name": "wait",
1091
+ "summary": "Number of minutes to wait for the command to complete before displaying the results.",
1092
+ "default": "0 minutes",
1093
+ "hasDynamicHelp": true,
1032
1094
  "multiple": false,
1033
1095
  "type": "option"
1034
1096
  },
1035
- "values": {
1036
- "char": "v",
1037
- "name": "values",
1038
- "required": true,
1039
- "summary": "Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.",
1097
+ "api-version": {
1098
+ "description": "Override the api version used for api requests made by this command",
1099
+ "name": "api-version",
1040
1100
  "hasDynamicHelp": false,
1041
1101
  "multiple": false,
1042
1102
  "type": "option"
1043
1103
  },
1044
- "use-tooling-api": {
1045
- "aliases": [
1046
- "usetoolingapi"
1047
- ],
1048
- "char": "t",
1049
- "deprecateAliases": true,
1050
- "name": "use-tooling-api",
1051
- "summary": "Use Tooling API so you can insert a record in a Tooling API object.",
1052
- "allowNo": false,
1053
- "type": "boolean"
1054
- },
1055
- "perflog": {
1104
+ "loglevel": {
1056
1105
  "deprecated": {
1057
- "version": "57"
1106
+ "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."
1058
1107
  },
1059
- "description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
1060
1108
  "hidden": true,
1061
- "name": "perflog",
1062
- "summary": "Get API performance data.",
1063
- "allowNo": false,
1064
- "type": "boolean"
1109
+ "name": "loglevel",
1110
+ "hasDynamicHelp": false,
1111
+ "multiple": false,
1112
+ "type": "option"
1065
1113
  }
1066
1114
  },
1067
1115
  "hasDynamicHelp": true,
1068
1116
  "hiddenAliases": [],
1069
- "id": "data:create:record",
1117
+ "id": "data:delete:resume",
1070
1118
  "pluginAlias": "@salesforce/plugin-data",
1071
1119
  "pluginName": "@salesforce/plugin-data",
1072
1120
  "pluginType": "core",
1073
1121
  "strict": true,
1074
- "summary": "Create and insert a record into a Salesforce or Tooling API object.",
1122
+ "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
1075
1123
  "enableJsonFlag": true,
1076
1124
  "isESM": true,
1077
1125
  "relativePath": [
1078
1126
  "lib",
1079
1127
  "commands",
1080
1128
  "data",
1081
- "create",
1082
- "record.js"
1083
- ],
1084
- "aliasPermutations": [
1085
- "force:data:record:create",
1086
- "data:force:record:create",
1087
- "data:record:force:create",
1088
- "data:record:create:force",
1089
- "force:record:data:create",
1090
- "record:force:data:create",
1091
- "record:data:force:create",
1092
- "record:data:create:force",
1093
- "force:record:create:data",
1094
- "record:force:create:data",
1095
- "record:create:force:data",
1096
- "record:create:data:force",
1097
- "force:data:create:record",
1098
- "data:force:create:record",
1099
- "data:create:force:record",
1100
- "data:create:record:force",
1101
- "force:create:data:record",
1102
- "create:force:data:record",
1103
- "create:data:force:record",
1104
- "create:data:record:force",
1105
- "force:create:record:data",
1106
- "create:force:record:data",
1107
- "create:record:force:data",
1108
- "create:record:data:force"
1129
+ "delete",
1130
+ "resume.js"
1109
1131
  ],
1132
+ "aliasPermutations": [],
1110
1133
  "permutations": [
1111
- "data:create:record",
1112
- "create:data:record",
1113
- "create:record:data",
1114
- "data:record:create",
1115
- "record:data:create",
1116
- "record:create:data"
1134
+ "data:delete:resume",
1135
+ "delete:data:resume",
1136
+ "delete:resume:data",
1137
+ "data:resume:delete",
1138
+ "resume:data:delete",
1139
+ "resume:delete:data"
1117
1140
  ]
1118
1141
  },
1119
1142
  "data:export:tree": {
@@ -3077,5 +3100,5 @@
3077
3100
  ]
3078
3101
  }
3079
3102
  },
3080
- "version": "3.6.1-dev.1"
3103
+ "version": "3.6.2"
3081
3104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-data",
3
- "version": "3.6.1-dev.1",
3
+ "version": "3.6.2",
4
4
  "description": "Plugin for salesforce data commands",
5
5
  "author": "Salesforce",
6
6
  "homepage": "https://github.com/salesforcecli/plugin-data",
@@ -110,7 +110,7 @@
110
110
  "@jsforce/jsforce-node": "^3.4.1",
111
111
  "@salesforce/core": "^8.3.0",
112
112
  "@salesforce/kit": "^3.1.6",
113
- "@salesforce/sf-plugins-core": "^11.2.4",
113
+ "@salesforce/sf-plugins-core": "^11.3.4",
114
114
  "@salesforce/ts-types": "^2.0.11",
115
115
  "ansis": "^3.2.0",
116
116
  "change-case": "^5.4.4",
@@ -121,12 +121,12 @@
121
121
  "devDependencies": {
122
122
  "@oclif/core": "^4.0.17",
123
123
  "@oclif/plugin-command-snapshot": "^5.2.12",
124
- "@salesforce/cli-plugins-testkit": "^5.3.25",
124
+ "@salesforce/cli-plugins-testkit": "^5.3.26",
125
125
  "@salesforce/dev-scripts": "^10.2.9",
126
126
  "@salesforce/plugin-command-reference": "^3.1.5",
127
127
  "@salesforce/types": "^1.2.0",
128
- "eslint-plugin-sf-plugin": "^1.20.4",
129
- "oclif": "^4.14.17",
128
+ "eslint-plugin-sf-plugin": "^1.20.5",
129
+ "oclif": "^4.14.19",
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.1-dev.1.crt",
255
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.6.1-dev.1.sig"
254
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.6.2.crt",
255
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.6.2.sig"
256
256
  }
257
257
  }