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

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.0/src/commands/data/create/file.ts)_
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)_
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.0/src/commands/data/create/record.ts)_
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)_
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.0/src/commands/data/delete/bulk.ts)_
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)_
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.0/src/commands/data/delete/record.ts)_
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)_
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.0/src/commands/data/delete/resume.ts)_
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)_
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.0/src/commands/data/export/tree.ts)_
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)_
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.0/src/commands/data/get/record.ts)_
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)_
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.0/src/commands/data/import/tree.ts)_
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)_
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.0/src/commands/data/query.ts)_
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)_
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.0/src/commands/data/query/resume.ts)_
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)_
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.0/src/commands/data/resume.ts)_
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)_
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.0/src/commands/data/search.ts)_
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)_
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.0/src/commands/data/update/record.ts)_
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)_
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.0/src/commands/data/upsert/bulk.ts)_
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)_
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.0/src/commands/data/upsert/resume.ts)_
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)_
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.0/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.1-dev.1/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.0/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.1-dev.1/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.0/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.1-dev.1/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,E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
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,14 +424,13 @@
447
424
  "search:data"
448
425
  ]
449
426
  },
450
- "data:create:file": {
427
+ "data:delete:bulk": {
451
428
  "aliases": [],
452
429
  "args": {},
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.",
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.",
454
431
  "examples": [
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"
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"
458
434
  ],
459
435
  "flags": {
460
436
  "json": {
@@ -473,7 +449,12 @@
473
449
  "type": "option"
474
450
  },
475
451
  "target-org": {
452
+ "aliases": [
453
+ "targetusername",
454
+ "u"
455
+ ],
476
456
  "char": "o",
457
+ "deprecateAliases": true,
477
458
  "name": "target-org",
478
459
  "noCacheDefault": true,
479
460
  "required": true,
@@ -483,77 +464,127 @@
483
464
  "type": "option"
484
465
  },
485
466
  "api-version": {
467
+ "aliases": [
468
+ "apiversion"
469
+ ],
470
+ "deprecateAliases": true,
486
471
  "description": "Override the api version used for api requests made by this command",
487
472
  "name": "api-version",
488
473
  "hasDynamicHelp": false,
489
474
  "multiple": false,
490
475
  "type": "option"
491
476
  },
492
- "title": {
493
- "char": "t",
494
- "name": "title",
495
- "required": false,
496
- "summary": "New title given to the file (ContentDocument) after it's uploaded.",
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",
497
483
  "hasDynamicHelp": false,
498
484
  "multiple": false,
499
485
  "type": "option"
500
486
  },
501
487
  "file": {
488
+ "aliases": [
489
+ "csvfile"
490
+ ],
502
491
  "char": "f",
492
+ "deprecateAliases": true,
503
493
  "name": "file",
504
494
  "required": true,
505
- "summary": "Path of file to upload.",
495
+ "summary": "CSV file that contains the IDs of the records to update or delete.",
506
496
  "hasDynamicHelp": false,
507
497
  "multiple": false,
508
498
  "type": "option"
509
499
  },
510
- "parent-id": {
511
- "char": "i",
512
- "name": "parent-id",
513
- "summary": "ID of the record to attach the file to.",
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.",
514
509
  "hasDynamicHelp": false,
515
510
  "multiple": false,
516
511
  "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"
517
547
  }
518
548
  },
519
549
  "hasDynamicHelp": true,
520
550
  "hiddenAliases": [],
521
- "id": "data:create:file",
551
+ "id": "data:delete:bulk",
522
552
  "pluginAlias": "@salesforce/plugin-data",
523
553
  "pluginName": "@salesforce/plugin-data",
524
554
  "pluginType": "core",
525
555
  "strict": true,
526
- "summary": "Upload a local file to an org.",
556
+ "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
527
557
  "enableJsonFlag": true,
528
558
  "isESM": true,
529
559
  "relativePath": [
530
560
  "lib",
531
561
  "commands",
532
562
  "data",
533
- "create",
534
- "file.js"
563
+ "delete",
564
+ "bulk.js"
535
565
  ],
536
566
  "aliasPermutations": [],
537
567
  "permutations": [
538
- "data:create:file",
539
- "create:data:file",
540
- "create:file:data",
541
- "data:file:create",
542
- "file:data:create",
543
- "file:create:data"
568
+ "data:delete:bulk",
569
+ "delete:data:bulk",
570
+ "delete:bulk:data",
571
+ "data:bulk:delete",
572
+ "bulk:data:delete",
573
+ "bulk:delete:data"
544
574
  ]
545
575
  },
546
- "data:create:record": {
576
+ "data:delete:record": {
547
577
  "aliases": [
548
- "force:data:record:create"
578
+ "force:data:record:delete"
549
579
  ],
550
580
  "args": {},
551
581
  "deprecateAliases": true,
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.",
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.",
553
583
  "examples": [
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\""
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"
557
588
  ],
558
589
  "flags": {
559
590
  "json": {
@@ -615,16 +646,27 @@
615
646
  "deprecateAliases": true,
616
647
  "name": "sobject",
617
648
  "required": true,
618
- "summary": "API name of the Salesforce or Tooling API object that you're inserting a record into.",
649
+ "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
619
650
  "hasDynamicHelp": false,
620
651
  "multiple": false,
621
652
  "type": "option"
622
653
  },
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.",
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.",
662
+ "hasDynamicHelp": false,
663
+ "multiple": false,
664
+ "type": "option"
665
+ },
666
+ "where": {
667
+ "char": "w",
668
+ "name": "where",
669
+ "summary": "List of <fieldName>=<value> pairs that identify the record you want to delete.",
628
670
  "hasDynamicHelp": false,
629
671
  "multiple": false,
630
672
  "type": "option"
@@ -636,7 +678,7 @@
636
678
  "char": "t",
637
679
  "deprecateAliases": true,
638
680
  "name": "use-tooling-api",
639
- "summary": "Use Tooling API so you can insert a record in a Tooling API object.",
681
+ "summary": "Use Tooling API so you can delete a record from a Tooling API object.",
640
682
  "allowNo": false,
641
683
  "type": "boolean"
642
684
  },
@@ -654,63 +696,64 @@
654
696
  },
655
697
  "hasDynamicHelp": true,
656
698
  "hiddenAliases": [],
657
- "id": "data:create:record",
699
+ "id": "data:delete:record",
658
700
  "pluginAlias": "@salesforce/plugin-data",
659
701
  "pluginName": "@salesforce/plugin-data",
660
702
  "pluginType": "core",
661
703
  "strict": true,
662
- "summary": "Create and insert a record into a Salesforce or Tooling API object.",
704
+ "summary": "Deletes a single record from a Salesforce or Tooling API object.",
663
705
  "enableJsonFlag": true,
664
706
  "isESM": true,
665
707
  "relativePath": [
666
708
  "lib",
667
709
  "commands",
668
710
  "data",
669
- "create",
711
+ "delete",
670
712
  "record.js"
671
713
  ],
672
714
  "aliasPermutations": [
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"
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"
697
739
  ],
698
740
  "permutations": [
699
- "data:create:record",
700
- "create:data:record",
701
- "create:record:data",
702
- "data:record:create",
703
- "record:data:create",
704
- "record:create:data"
741
+ "data:delete:record",
742
+ "delete:data:record",
743
+ "delete:record:data",
744
+ "data:record:delete",
745
+ "record:data:delete",
746
+ "record:delete:data"
705
747
  ]
706
748
  },
707
- "data:delete:bulk": {
749
+ "data:delete:resume": {
708
750
  "aliases": [],
709
751
  "args": {},
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.",
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.",
711
754
  "examples": [
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"
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"
714
757
  ],
715
758
  "flags": {
716
759
  "json": {
@@ -737,64 +780,33 @@
737
780
  "deprecateAliases": true,
738
781
  "name": "target-org",
739
782
  "noCacheDefault": true,
740
- "required": true,
741
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
783
+ "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
742
784
  "hasDynamicHelp": true,
743
785
  "multiple": false,
744
786
  "type": "option"
745
787
  },
746
- "api-version": {
788
+ "job-id": {
747
789
  "aliases": [
748
- "apiversion"
790
+ "jobid"
749
791
  ],
792
+ "char": "i",
750
793
  "deprecateAliases": true,
751
- "description": "Override the api version used for api requests made by this command",
752
- "name": "api-version",
794
+ "name": "job-id",
795
+ "summary": "ID of the job you want to resume.",
753
796
  "hasDynamicHelp": false,
754
797
  "multiple": false,
755
798
  "type": "option"
756
799
  },
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,
764
- "multiple": false,
765
- "type": "option"
766
- },
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.",
776
- "hasDynamicHelp": false,
777
- "multiple": false,
778
- "type": "option"
779
- },
780
- "sobject": {
781
- "aliases": [
782
- "sobjecttype"
800
+ "use-most-recent": {
801
+ "exclusive": [
802
+ "job-id"
783
803
  ],
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.",
789
- "hasDynamicHelp": false,
790
- "multiple": false,
791
- "type": "option"
804
+ "name": "use-most-recent",
805
+ "summary": "Use the ID of the most recently-run bulk job.",
806
+ "allowNo": false,
807
+ "type": "boolean"
792
808
  },
793
809
  "wait": {
794
- "char": "w",
795
- "exclusive": [
796
- "async"
797
- ],
798
810
  "name": "wait",
799
811
  "summary": "Number of minutes to wait for the command to complete before displaying the results.",
800
812
  "default": "0 minutes",
@@ -802,38 +814,32 @@
802
814
  "multiple": false,
803
815
  "type": "option"
804
816
  },
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"
817
+ "api-version": {
818
+ "description": "Override the api version used for api requests made by this command",
819
+ "name": "api-version",
820
+ "hasDynamicHelp": false,
821
+ "multiple": false,
822
+ "type": "option"
820
823
  },
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"
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",
830
+ "hasDynamicHelp": false,
831
+ "multiple": false,
832
+ "type": "option"
827
833
  }
828
834
  },
829
835
  "hasDynamicHelp": true,
830
836
  "hiddenAliases": [],
831
- "id": "data:delete:bulk",
837
+ "id": "data:delete:resume",
832
838
  "pluginAlias": "@salesforce/plugin-data",
833
839
  "pluginName": "@salesforce/plugin-data",
834
840
  "pluginType": "core",
835
841
  "strict": true,
836
- "summary": "Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.",
842
+ "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
837
843
  "enableJsonFlag": true,
838
844
  "isESM": true,
839
845
  "relativePath": [
@@ -841,30 +847,26 @@
841
847
  "commands",
842
848
  "data",
843
849
  "delete",
844
- "bulk.js"
850
+ "resume.js"
845
851
  ],
846
852
  "aliasPermutations": [],
847
853
  "permutations": [
848
- "data:delete:bulk",
849
- "delete:data:bulk",
850
- "delete:bulk:data",
851
- "data:bulk:delete",
852
- "bulk:data:delete",
853
- "bulk:delete:data"
854
+ "data:delete:resume",
855
+ "delete:data:resume",
856
+ "delete:resume:data",
857
+ "data:resume:delete",
858
+ "resume:data:delete",
859
+ "resume:delete:data"
854
860
  ]
855
861
  },
856
- "data:delete:record": {
857
- "aliases": [
858
- "force:data:record:delete"
859
- ],
862
+ "data:create:file": {
863
+ "aliases": [],
860
864
  "args": {},
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.",
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.",
863
866
  "examples": [
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"
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"
868
870
  ],
869
871
  "flags": {
870
872
  "json": {
@@ -883,12 +885,7 @@
883
885
  "type": "option"
884
886
  },
885
887
  "target-org": {
886
- "aliases": [
887
- "targetusername",
888
- "u"
889
- ],
890
888
  "char": "o",
891
- "deprecateAliases": true,
892
889
  "name": "target-org",
893
890
  "noCacheDefault": true,
894
891
  "required": true,
@@ -898,142 +895,77 @@
898
895
  "type": "option"
899
896
  },
900
897
  "api-version": {
901
- "aliases": [
902
- "apiversion"
903
- ],
904
- "deprecateAliases": true,
905
898
  "description": "Override the api version used for api requests made by this command",
906
899
  "name": "api-version",
907
900
  "hasDynamicHelp": false,
908
901
  "multiple": false,
909
902
  "type": "option"
910
903
  },
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",
904
+ "title": {
905
+ "char": "t",
906
+ "name": "title",
907
+ "required": false,
908
+ "summary": "New title given to the file (ContentDocument) after it's uploaded.",
917
909
  "hasDynamicHelp": false,
918
910
  "multiple": false,
919
911
  "type": "option"
920
912
  },
921
- "sobject": {
922
- "aliases": [
923
- "sobjecttype"
924
- ],
925
- "char": "s",
926
- "deprecateAliases": true,
927
- "name": "sobject",
913
+ "file": {
914
+ "char": "f",
915
+ "name": "file",
928
916
  "required": true,
929
- "summary": "API name of the Salesforce or Tooling API object that you're deleting a record from.",
917
+ "summary": "Path of file to upload.",
930
918
  "hasDynamicHelp": false,
931
919
  "multiple": false,
932
920
  "type": "option"
933
921
  },
934
- "record-id": {
935
- "aliases": [
936
- "sobjectid"
937
- ],
922
+ "parent-id": {
938
923
  "char": "i",
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.",
924
+ "name": "parent-id",
925
+ "summary": "ID of the record to attach the file to.",
950
926
  "hasDynamicHelp": false,
951
927
  "multiple": false,
952
928
  "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"
975
929
  }
976
930
  },
977
931
  "hasDynamicHelp": true,
978
932
  "hiddenAliases": [],
979
- "id": "data:delete:record",
933
+ "id": "data:create:file",
980
934
  "pluginAlias": "@salesforce/plugin-data",
981
935
  "pluginName": "@salesforce/plugin-data",
982
936
  "pluginType": "core",
983
937
  "strict": true,
984
- "summary": "Deletes a single record from a Salesforce or Tooling API object.",
938
+ "summary": "Upload a local file to an org.",
985
939
  "enableJsonFlag": true,
986
940
  "isESM": true,
987
941
  "relativePath": [
988
942
  "lib",
989
943
  "commands",
990
944
  "data",
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"
945
+ "create",
946
+ "file.js"
1019
947
  ],
948
+ "aliasPermutations": [],
1020
949
  "permutations": [
1021
- "data:delete:record",
1022
- "delete:data:record",
1023
- "delete:record:data",
1024
- "data:record:delete",
1025
- "record:data:delete",
1026
- "record:delete:data"
950
+ "data:create:file",
951
+ "create:data:file",
952
+ "create:file:data",
953
+ "data:file:create",
954
+ "file:data:create",
955
+ "file:create:data"
1027
956
  ]
1028
957
  },
1029
- "data:delete:resume": {
1030
- "aliases": [],
958
+ "data:create:record": {
959
+ "aliases": [
960
+ "force:data:record:create"
961
+ ],
1031
962
  "args": {},
1032
963
  "deprecateAliases": true,
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.",
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.",
1034
965
  "examples": [
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"
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\""
1037
969
  ],
1038
970
  "flags": {
1039
971
  "json": {
@@ -1060,41 +992,17 @@
1060
992
  "deprecateAliases": true,
1061
993
  "name": "target-org",
1062
994
  "noCacheDefault": true,
1063
- "summary": "Username or alias of the target org. Not required if the \"target-org\" configuration variable is already set.",
995
+ "required": true,
996
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1064
997
  "hasDynamicHelp": true,
1065
998
  "multiple": false,
1066
999
  "type": "option"
1067
1000
  },
1068
- "job-id": {
1001
+ "api-version": {
1069
1002
  "aliases": [
1070
- "jobid"
1003
+ "apiversion"
1071
1004
  ],
1072
- "char": "i",
1073
1005
  "deprecateAliases": true,
1074
- "name": "job-id",
1075
- "summary": "ID of the job you want to resume.",
1076
- "hasDynamicHelp": false,
1077
- "multiple": false,
1078
- "type": "option"
1079
- },
1080
- "use-most-recent": {
1081
- "exclusive": [
1082
- "job-id"
1083
- ],
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,
1094
- "multiple": false,
1095
- "type": "option"
1096
- },
1097
- "api-version": {
1098
1006
  "description": "Override the api version used for api requests made by this command",
1099
1007
  "name": "api-version",
1100
1008
  "hasDynamicHelp": false,
@@ -1110,33 +1018,102 @@
1110
1018
  "hasDynamicHelp": false,
1111
1019
  "multiple": false,
1112
1020
  "type": "option"
1021
+ },
1022
+ "sobject": {
1023
+ "aliases": [
1024
+ "sobjecttype"
1025
+ ],
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,
1032
+ "multiple": false,
1033
+ "type": "option"
1034
+ },
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.",
1040
+ "hasDynamicHelp": false,
1041
+ "multiple": false,
1042
+ "type": "option"
1043
+ },
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": {
1056
+ "deprecated": {
1057
+ "version": "57"
1058
+ },
1059
+ "description": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.",
1060
+ "hidden": true,
1061
+ "name": "perflog",
1062
+ "summary": "Get API performance data.",
1063
+ "allowNo": false,
1064
+ "type": "boolean"
1113
1065
  }
1114
1066
  },
1115
1067
  "hasDynamicHelp": true,
1116
1068
  "hiddenAliases": [],
1117
- "id": "data:delete:resume",
1069
+ "id": "data:create:record",
1118
1070
  "pluginAlias": "@salesforce/plugin-data",
1119
1071
  "pluginName": "@salesforce/plugin-data",
1120
1072
  "pluginType": "core",
1121
1073
  "strict": true,
1122
- "summary": "Resume a bulk delete job that you previously started. Uses Bulk API 2.0.",
1074
+ "summary": "Create and insert a record into a Salesforce or Tooling API object.",
1123
1075
  "enableJsonFlag": true,
1124
1076
  "isESM": true,
1125
1077
  "relativePath": [
1126
1078
  "lib",
1127
1079
  "commands",
1128
1080
  "data",
1129
- "delete",
1130
- "resume.js"
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"
1131
1109
  ],
1132
- "aliasPermutations": [],
1133
1110
  "permutations": [
1134
- "data:delete:resume",
1135
- "delete:data:resume",
1136
- "delete:resume:data",
1137
- "data:resume:delete",
1138
- "resume:data:delete",
1139
- "resume:delete:data"
1111
+ "data:create:record",
1112
+ "create:data:record",
1113
+ "create:record:data",
1114
+ "data:record:create",
1115
+ "record:data:create",
1116
+ "record:create:data"
1140
1117
  ]
1141
1118
  },
1142
1119
  "data:export:tree": {
@@ -3100,5 +3077,5 @@
3100
3077
  ]
3101
3078
  }
3102
3079
  },
3103
- "version": "3.6.0"
3080
+ "version": "3.6.1-dev.1"
3104
3081
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-data",
3
- "version": "3.6.0",
3
+ "version": "3.6.1-dev.1",
4
4
  "description": "Plugin for salesforce data commands",
5
5
  "author": "Salesforce",
6
6
  "homepage": "https://github.com/salesforcecli/plugin-data",
@@ -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.0.crt",
255
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.6.0.sig"
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"
256
256
  }
257
257
  }