@salesforce/plugin-data 2.1.20 → 2.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +947 -320
  2. package/lib/api/data/tree/exportApi.js +66 -73
  3. package/lib/api/data/tree/exportApi.js.map +1 -1
  4. package/lib/api/data/tree/importApi.js +62 -62
  5. package/lib/api/data/tree/importApi.js.map +1 -1
  6. package/lib/batcher.js +80 -101
  7. package/lib/batcher.js.map +1 -1
  8. package/lib/commands/data/create/record.js +64 -0
  9. package/lib/commands/data/create/record.js.map +1 -0
  10. package/lib/commands/data/delete/bulk.js +78 -0
  11. package/lib/commands/data/delete/bulk.js.map +1 -0
  12. package/lib/commands/data/delete/record.js +83 -0
  13. package/lib/commands/data/delete/record.js.map +1 -0
  14. package/lib/commands/data/export/tree.js +57 -0
  15. package/lib/commands/data/export/tree.js.map +1 -0
  16. package/lib/commands/data/get/record.js +73 -0
  17. package/lib/commands/data/get/record.js.map +1 -0
  18. package/lib/commands/data/import/tree.js +85 -0
  19. package/lib/commands/data/import/tree.js.map +1 -0
  20. package/lib/commands/data/query/resume.js +55 -0
  21. package/lib/commands/data/query/resume.js.map +1 -0
  22. package/lib/commands/data/query.js +283 -0
  23. package/lib/commands/data/query.js.map +1 -0
  24. package/lib/commands/data/resume.js +64 -0
  25. package/lib/commands/data/resume.js.map +1 -0
  26. package/lib/commands/data/update/record.js +101 -0
  27. package/lib/commands/data/update/record.js.map +1 -0
  28. package/lib/commands/data/upsert/bulk.js +88 -0
  29. package/lib/commands/data/upsert/bulk.js.map +1 -0
  30. package/lib/dataCommand.js +103 -202
  31. package/lib/dataCommand.js.map +1 -1
  32. package/lib/dataSoqlQueryTypes.js +2 -6
  33. package/lib/dataSoqlQueryTypes.js.map +1 -1
  34. package/lib/flags.js +27 -0
  35. package/lib/flags.js.map +1 -0
  36. package/lib/reporters.js +58 -66
  37. package/lib/reporters.js.map +1 -1
  38. package/messages/batcher.md +39 -0
  39. package/messages/bulk.delete.md +31 -0
  40. package/messages/bulk.report.md +17 -0
  41. package/messages/bulk.status.md +29 -0
  42. package/messages/bulk.upsert.md +43 -0
  43. package/messages/exportApi.md +25 -0
  44. package/messages/importApi.md +52 -0
  45. package/messages/messages.md +20 -0
  46. package/messages/record.create.md +45 -0
  47. package/messages/record.delete.md +53 -0
  48. package/messages/record.get.md +47 -0
  49. package/messages/record.update.md +61 -0
  50. package/messages/soql.query.md +72 -0
  51. package/messages/tree.export.md +41 -0
  52. package/messages/tree.import.md +37 -0
  53. package/oclif.manifest.json +1 -1
  54. package/package.json +50 -51
  55. package/lib/api/data/tree/exportApi.d.ts +0 -77
  56. package/lib/api/data/tree/importApi.d.ts +0 -60
  57. package/lib/batcher.d.ts +0 -79
  58. package/lib/commands/force/data/bulk/delete.d.ts +0 -11
  59. package/lib/commands/force/data/bulk/delete.js +0 -58
  60. package/lib/commands/force/data/bulk/delete.js.map +0 -1
  61. package/lib/commands/force/data/bulk/status.d.ts +0 -11
  62. package/lib/commands/force/data/bulk/status.js +0 -61
  63. package/lib/commands/force/data/bulk/status.js.map +0 -1
  64. package/lib/commands/force/data/bulk/upsert.d.ts +0 -11
  65. package/lib/commands/force/data/bulk/upsert.js +0 -76
  66. package/lib/commands/force/data/bulk/upsert.js.map +0 -1
  67. package/lib/commands/force/data/record/create.d.ts +0 -10
  68. package/lib/commands/force/data/record/create.js +0 -58
  69. package/lib/commands/force/data/record/create.js.map +0 -1
  70. package/lib/commands/force/data/record/delete.d.ts +0 -10
  71. package/lib/commands/force/data/record/delete.js +0 -72
  72. package/lib/commands/force/data/record/delete.js.map +0 -1
  73. package/lib/commands/force/data/record/get.d.ts +0 -10
  74. package/lib/commands/force/data/record/get.js +0 -65
  75. package/lib/commands/force/data/record/get.js.map +0 -1
  76. package/lib/commands/force/data/record/update.d.ts +0 -10
  77. package/lib/commands/force/data/record/update.js +0 -90
  78. package/lib/commands/force/data/record/update.js.map +0 -1
  79. package/lib/commands/force/data/soql/bulk/report.d.ts +0 -9
  80. package/lib/commands/force/data/soql/bulk/report.js +0 -45
  81. package/lib/commands/force/data/soql/bulk/report.js.map +0 -1
  82. package/lib/commands/force/data/soql/query.d.ts +0 -64
  83. package/lib/commands/force/data/soql/query.js +0 -300
  84. package/lib/commands/force/data/soql/query.js.map +0 -1
  85. package/lib/commands/force/data/tree/export.d.ts +0 -10
  86. package/lib/commands/force/data/tree/export.js +0 -52
  87. package/lib/commands/force/data/tree/export.js.map +0 -1
  88. package/lib/commands/force/data/tree/import.d.ts +0 -19
  89. package/lib/commands/force/data/tree/import.js +0 -81
  90. package/lib/commands/force/data/tree/import.js.map +0 -1
  91. package/lib/dataCommand.d.ts +0 -57
  92. package/lib/dataSoqlQueryTypes.d.ts +0 -63
  93. package/lib/index.d.ts +0 -2
  94. package/lib/reporters.d.ts +0 -57
  95. package/messages/batcher.json +0 -12
  96. package/messages/bulk.delete.json +0 -12
  97. package/messages/bulk.report.json +0 -7
  98. package/messages/bulk.status.json +0 -12
  99. package/messages/bulk.upsert.json +0 -14
  100. package/messages/exportApi.json +0 -8
  101. package/messages/importApi.json +0 -16
  102. package/messages/messages.json +0 -11
  103. package/messages/record.create.json +0 -15
  104. package/messages/record.delete.json +0 -16
  105. package/messages/record.get.json +0 -14
  106. package/messages/record.update.json +0 -18
  107. package/messages/soql.query.json +0 -26
  108. package/messages/tree.export.json +0 -11
  109. package/messages/tree.import.json +0 -13
@@ -1,57 +0,0 @@
1
- import { Logger } from '@salesforce/core';
2
- import { UX } from '@salesforce/command';
3
- import { Optional } from '@salesforce/ts-types';
4
- import { CliUx } from '@oclif/core';
5
- import { Field, SoqlQueryResult } from './dataSoqlQueryTypes';
6
- export declare class Reporter {
7
- protected ux: UX;
8
- protected logger: Logger;
9
- constructor(ux: UX, logger: Logger);
10
- log(...args: string[]): void;
11
- }
12
- export declare class QueryReporter extends Reporter {
13
- protected columns: Field[];
14
- protected data: SoqlQueryResult;
15
- constructor(data: SoqlQueryResult, columns: Field[], ux: UX, logger: Logger);
16
- }
17
- type ParsedFields = {
18
- attributeNames: Array<Optional<string>>;
19
- children: string[];
20
- aggregates: Field[];
21
- };
22
- export declare class HumanReporter extends QueryReporter {
23
- constructor(data: SoqlQueryResult, columns: Field[], ux: UX, logger: Logger);
24
- display(): void;
25
- parseFields(): ParsedFields;
26
- soqlQuery(columns: Array<Optional<string>>, records: unknown[], totalCount: number): void;
27
- prepNullValues(records: unknown[]): void;
28
- prepColumns(columns: Array<Optional<string>>): CliUx.Table.table.Columns<Record<string, unknown>>;
29
- massageRows(queryResults: unknown[], children: string[], aggregates: Field[]): any;
30
- }
31
- export declare class CsvReporter extends QueryReporter {
32
- constructor(data: SoqlQueryResult, columns: Field[], ux: UX, logger: Logger);
33
- /**
34
- * Escape a value to be placed in a CSV row. We follow rfc 4180
35
- * https://tools.ietf.org/html/rfc4180#section-2 and will not surround the
36
- * value in quotes if it doesn't contain the separator, double quote, or EOL.
37
- *
38
- * @param value The escaped value
39
- */
40
- escape(value: string): string;
41
- display(): void;
42
- massageRows(): string[];
43
- }
44
- export declare class JsonReporter extends QueryReporter {
45
- constructor(data: SoqlQueryResult, columns: Field[], ux: UX, logger: Logger);
46
- log(): void;
47
- display(): void;
48
- }
49
- /**
50
- * A list of the accepted reporter types
51
- */
52
- export declare const FormatTypes: {
53
- human: typeof HumanReporter;
54
- csv: typeof CsvReporter;
55
- json: typeof JsonReporter;
56
- };
57
- export {};
@@ -1,12 +0,0 @@
1
- {
2
- "BulkBatch": "Batch #%s",
3
- "NoBatchFound": "Unable to find batch %s for job %s.",
4
- "BulkError": "Upsert errors",
5
- "BulkJobStatus": "Job Status",
6
- "BatchStatus": "Batch Status",
7
- "PollingInfo": "Will poll the batch statuses every %s seconds \nTo fetch the status on your own, press CTRL+C and use the command: \nsfdx force:data:bulk:status -i %s -b [<batchId>]",
8
- "ExternalIdRequired": "An External ID is required on %s to perform an upsert.",
9
- "TimeOut": "The operation timed out. Check the status with command: \nsfdx force:data:bulk:status -i %s -b %s",
10
- "CheckStatusCommand": "Check batch #%s’s status with the command: \nsfdx force:data:bulk:status -i %s -b %s",
11
- "BatchQueued": "Batch #%s queued (Batch ID: %s)."
12
- }
@@ -1,12 +0,0 @@
1
- {
2
- "description": "bulk delete records from a csv file\nThe file must be a CSV file with only one column: \"Id\".\nOne job can contain many batches, depending on the length of the CSV file.\nReturns a job ID and a batch ID. Use these IDs to check job status with data:bulk:status.\n\n",
3
- "examples": [
4
- "$ sfdx force:data:bulk:delete -s Account -f ./path/to/file.csv",
5
- "$ sfdx force:data:bulk:delete -s MyObject__c -f ./path/to/file.csv"
6
- ],
7
- "flags": {
8
- "sobjecttype": "the sObject type of the records you’re deleting",
9
- "csvfile": "the path to the CSV file containing the ids of the records to delete",
10
- "wait": "the number of minutes to wait for the command to complete before displaying the results"
11
- }
12
- }
@@ -1,7 +0,0 @@
1
- {
2
- "description": "view the status of a bulk query\nRun this command using the job ID returned from the force:data:soql:query --bulk command.",
3
- "examples": [
4
- "$ sfdx force:data:soql:bulk:report -i 7500x000005BdFzXXX"
5
- ],
6
- "bulkQueryIdDescription": "the job ID of the bulk query"
7
- }
@@ -1,12 +0,0 @@
1
- {
2
- "description": "view the status of a bulk data load job or batch\nRun this command using the job ID or batch ID returned from the force:data:bulk:delete or force:data:bulk:upsert commands.",
3
- "examples": [
4
- "$ sfdx force:data:bulk:status -i 750xx000000005sAAA",
5
- "$ sfdx force:data:bulk:status -i 750xx000000005sAAA -b 751xx000000005nAAA"
6
- ],
7
- "flags": {
8
- "jobid": "the ID of the job you want to view or of the job whose batch you want to view",
9
- "batchid": "the ID of the batch whose status you want to view"
10
- },
11
- "NoBatchFound": "Unable to find batch %s for job %s."
12
- }
@@ -1,14 +0,0 @@
1
- {
2
- "description": "bulk upsert records from a CSV file\nInserts or updates records from a CSV file.\n\nOne job can contain many batches, depending on the length of the CSV file.\nReturns a job ID and a batch ID. Use these IDs to check job status with data:bulk:status.\n\nFor information about formatting your CSV file, see \"Prepare CSV Files\" in the Bulk API Developer Guide. \n\nBy default, the job runs the batches in parallel. Specify --serial to run them serially.",
3
- "examples": [
4
- "$ sfdx force:data:bulk:upsert -s MyObject__c -f ./path/to/file.csv -i MyField__c",
5
- "$ sfdx force:data:bulk:upsert -s MyObject__c -f ./path/to/file.csv -i Id -w 2"
6
- ],
7
- "flags": {
8
- "sobjecttype": "the sObject type of the records you want to upsert",
9
- "csvfile": "the path to the CSV file that defines the records to upsert",
10
- "externalid": "the column name of the external ID",
11
- "wait": "the number of minutes to wait for the command to complete before displaying the results",
12
- "serial": "run batches in serial mode"
13
- }
14
- }
@@ -1,8 +0,0 @@
1
- {
2
- "queryNotProvided": "Provide a SOQL query statement or file containing a SOQL statement.",
3
- "soqlInvalid": "Invalid SOQL query: %s",
4
- "soqlMalformed": "The provided SOQL is malformed: %s",
5
- "soqlMalformedAction": "Check the SOQL syntax and try again.",
6
- "dataExportRecordCount": "Processed %s records from query: %s",
7
- "dataExportRecordCountWarning": "Query returned more than 200 records. Please run the command using the plan option instead.\n Record Count: %s \nQuery: %s"
8
- }
@@ -1,16 +0,0 @@
1
- {
2
- "dataFileNotProvided": "Provide a data plan or file(s).",
3
- "dataFileNotFound": "Cannot find data file. Indicate a valid path: %s.",
4
- "unknownContentType": "Unable to determine content type for file: %s.",
5
- "dataFileUnsupported": "Content type: %s not supported.",
6
- "dataFileEmpty": "Data file is empty: %s.",
7
- "dataFileInvalidJson": "data file is invalid JSON: %s",
8
- "dataFileNoRefId": "Found references in file, but no reference-id content found (%s). Was parent SObjects saved first?",
9
- "tooManyFiles": "Specify either sobjecttreefiles or a plan, but not both.",
10
- "dataImportFailed": "Import failed from file: %s. Results: %s.",
11
- "dataPlanValidationError": "Data plan file %s did not validate against the schema.",
12
- "dataPlanValidationErrorAction1": "Did you run the force:data:tree:export command with the --plan flag?",
13
- "dataPlanValidationErrorAction2": "Make sure you are importing a plan file.",
14
- "dataPlanValidationErrorAction3": "You can get help with the import plan schema by running $ sfdx force:data:tree:import --confighelp\n%s",
15
- "FlsError": "We couldn't process your request because you don't have access to %s on %s. To learn more about field-level security, visit Tips and Hints for Page Layouts and Field-Level Security in our Developer Documentation."
16
- }
@@ -1,11 +0,0 @@
1
- {
2
- "perfLogLevelOption": "get API performance data",
3
- "perfLogLevelOptionLong": "Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json",
4
- "NeitherSobjectidNorWhereError": "Either --where or --sobjectid flags must be specified",
5
- "NeitherSobjectidNorWhereErrorActions": "Provide values for either --where or --sobjectid flags",
6
- "BothSobjectidAndWhereError": "Both --where and --sobjectid flags are specified",
7
- "DataRecordGetNoRecord": "No matching record found",
8
- "DataRecordGetMultipleRecords": "%s is not a unique qualifier for %s; %s records were retrieved.\nRetrieve only one record.",
9
- "TextUtilMalformedKeyValuePair": "Malformed key=value pair for value: %s",
10
- "PathDoesNotExist": "The specified path [%s] does not exist"
11
- }
@@ -1,15 +0,0 @@
1
- {
2
- "description": "creates and inserts a record\nThe format of a field-value pair is <fieldName>=<value>.\nEnclose all field-value pairs in one set of double quotation marks, delimited by spaces.\nEnclose values that contain spaces in single quotes.\n\nTo get data on API performance metrics, specify both --perflog and --json.",
3
- "sObjectType": "the type of the record you’re creating",
4
- "values": "the <fieldName>=<value> pairs you’re creating",
5
- "useToolingApi": "create the record with tooling api",
6
- "examples": [
7
- "$ sfdx force:data:record:create -s Account -v \"Name=Acme\"",
8
- "$ sfdx force:data:record:create -s Account -v \"Name='Universal Containers'\"",
9
- "$ sfdx force:data:record:create -s Account -v \"Name='Universal Containers' Website=www.example.com\"",
10
- "$ sfdx force:data:record:create -t -s TraceFlag -v \"DebugLevelId=7dl170000008U36AAE StartDate=2017-12-01T00:26:04.000+0000 ExpirationDate=2017-12-01T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS\"",
11
- "$ sfdx force:data:record:create -s Account -v \"Name=Acme\" --perflog --json"
12
- ],
13
- "createSuccess": "Successfully created record: %s.",
14
- "createFailure": "Failed to create record. %s"
15
- }
@@ -1,16 +0,0 @@
1
- {
2
- "description": "deletes a single record\nSpecify an sObject type and either an ID or a list of <fieldName>=<value> pairs.\nThe format of a field-value pair is <fieldName>=<value>.\nEnclose all field-value pairs in one set of double quotation marks, delimited by spaces.\nEnclose values that contain spaces in single quotes.\n\nTo get data on API performance metrics, specify both --perflog and --json.",
3
- "sObjectType": "the type of the record you’re deleting",
4
- "sObjectId": "the ID of the record you’re deleting",
5
- "where": "a list of <fieldName>=<value> pairs to search for",
6
- "useToolingApi": "delete the record with Tooling API",
7
- "examples": [
8
- "$ sfdx force:data:record:delete -s Account -i 001D000000Kv3dl",
9
- "$ sfdx force:data:record:delete -s Account -w \"Name=Acme\"",
10
- "$ sfdx force:data:record:delete -s Account -w \"Name='Universal Containers'\"",
11
- "$ sfdx force:data:record:delete -s Account -w \"Name='Universal Containers' Phone='(123) 456-7890'\"",
12
- "$ sfdx force:data:record:delete -t -s TraceFlag -i 7tf170000009cU6AAI --perflog --json"
13
- ],
14
- "deleteSuccess": "Successfully deleted record: %s.",
15
- "deleteFailure": "Failed to delete record. %s"
16
- }
@@ -1,14 +0,0 @@
1
- {
2
- "description": "displays a single record\nSpecify an sObject type and either an ID or a list of <fieldName>=<value> pairs.\nThe format of a field-value pair is <fieldName>=<value>.\nEnclose all field-value pairs in one set of double quotation marks, delimited by spaces.\nEnclose values that contain spaces in single quotes.\n\nTo get data on API performance metrics, specify both --perflog and --json.",
3
- "sObjectType": "the type of the record you’re retrieving",
4
- "sObjectId": "the ID of the record you’re retrieving",
5
- "where": "a list of <fieldName>=<value> pairs to search for",
6
- "useToolingApi": "retrieve the record with Tooling API",
7
- "examples": [
8
- "$ sfdx force:data:record:get -s Account -i 001D000000Kv3dl",
9
- "$ sfdx force:data:record:get -s Account -w \"Name=Acme\"",
10
- "$ sfdx force:data:record:get -s Account -w \"Name='Universal Containers'\"",
11
- "$ sfdx force:data:record:get -s Account -w \"Name='Universal Containers' Phone='(123) 456-7890'\"",
12
- "$ sfdx force:data:record:get -t -s TraceFlag -i 7tf170000009cUBAAY --perflog --json"
13
- ]
14
- }
@@ -1,18 +0,0 @@
1
- {
2
- "description": "updates a single record\nThe format of a field-value pair is <fieldName>=<value>.\nEnclose all field-value pairs in one set of double quotation marks, delimited by spaces.\nEnclose values that contain spaces in single quotes.\n\nTo get data on API performance metrics, specify both --perflog and --json.",
3
- "sObjectType": "the sObject type of the record you’re updating",
4
- "sObjectId": "the ID of the record you’re updating",
5
- "where": "a list of <fieldName>=<value> pairs to search for",
6
- "useToolingApi": "update the record with Tooling API",
7
- "values": "the <fieldName>=<value> pairs you’re updating",
8
- "examples": [
9
- "$ sfdx force:data:record:update -s Account -i 001D000000Kv3dl -v \"Name=NewAcme\"",
10
- "$ sfdx force:data:record:update -s Account -w \"Name='Old Acme'\" -v \"Name='New Acme'\"",
11
- "$ sfdx force:data:record:update -s Account -i 001D000000Kv3dl -v \"Name='Acme III' Website=www.example.com\"",
12
- "$ sfdx force:data:record:update -t -s TraceFlag -i 7tf170000009cUBAAY -v \"ExpirationDate=2017-12-01T00:58:04.000+0000\"",
13
- "$sfdx force:data:record:update -s Account -i 001D000000Kv3dl -v \"Name=NewAcme\" --perflog --json"
14
- ],
15
- "updateSuccess": "Successfully updated record: %s.",
16
- "updateFailure": "Failed to update record. %s",
17
- "updateFailureWithFields": "Failed to update record with code %s. Message: %s. Fields: %s."
18
- }
@@ -1,26 +0,0 @@
1
- {
2
- "description": "execute a SOQL query\nWhen you execute this command in a project, it executes the query against the data in your default scratch org.\n\nTo get data on API performance metrics, specify both --perflog and --json.\n\n",
3
- "noResults": "Your query returned no results.",
4
- "queryToExecute": "SOQL query to execute",
5
- "queryLongDescription": "SOQL query to execute.",
6
- "queryToolingDescription": "execute query with Tooling API",
7
- "queryInvalidReporter": "Unknown result format type. Must be one of the following values: %s",
8
- "resultFormatDescription": "result format emitted to stdout; --json flag overrides this parameter",
9
- "resultFormatLongDescription": "Format to use when displaying results. If you also specify the --json flag, --json overrides this parameter.",
10
- "displayQueryRecordsRetrieved": "Total number of records retrieved: %s.",
11
- "queryNoResults": "Your query returned no results.",
12
- "queryRunningMessage": "Querying Data",
13
- "queryMoreUpdateMessage": "Result size is %d, current count is %d",
14
- "bulkDescription": "use the bulk 2.0 API to query data",
15
- "waitDescription": "wait time for command to finish in minutes",
16
- "bulkQueryTimeout": "Query ID: %s\nQuery is in progress. \n\nRun sfdx force:data:soql:bulk:report -i %s -u %s to get the latest status/results",
17
- "soqlqueryfile": "A SOQL query stored in a file",
18
- "examples": [
19
- "$ sfdx force:data:soql:query -q \"SELECT Id, Name, Account.Name FROM Contact\"",
20
- "$ sfdx force:data:soql:query -q \"SELECT Id, Name FROM Account WHERE ShippingState IN ('CA', 'NY')\"",
21
- "$ sfdx force:data:soql:query -q \"SELECT Id, Name FROM Account WHERE ShippingState IN ('CA', 'NY')\" --perflog --json",
22
- "$ sfdx force:data:soql:query -q \"SELECT Name FROM ApexTrigger\" -t",
23
- "$ sfdx force:data:soql:query --soqlqueryfile query.txt",
24
- "$ sfdx force:data:soql:query --soqlqueryfile query.txt -t"
25
- ]
26
- }
@@ -1,11 +0,0 @@
1
- {
2
- "description": "export data from an org\nExports data from an org into sObject tree format for use with the force:data:tree:import command.\nThe query for export can return a maximum of 2,000 records. For more information, see the REST API Developer Guide: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm",
3
- "query": "soql query, or filepath of file containing a soql query, to retrieve records",
4
- "plan": "generate mulitple sobject tree files and a plan definition file for aggregated import",
5
- "prefix": "prefix of generated files",
6
- "outputdir": "directory to store files'",
7
- "examples": [
8
- "$ sfdx force:data:tree:export -q \"SELECT Id, Name, (SELECT Name, Address__c FROM Properties__r) FROM Broker__c\"",
9
- "$ sfdx force:data:tree:export -q <path to file containing soql query> -x export-demo -d /tmp/sfdx-out -p"
10
- ]
11
- }
@@ -1,13 +0,0 @@
1
- {
2
- "description": "import data into an org\nIMPORTANT: Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.\n\nImports data into an org using the SObject Tree Save API. This data can include master-detail relationships.\nTo generate JSON files for use with force:data:tree:import, run \"sfdx force:data:tree:export\".\nThe SObject Tree API supports requests that contain up to 200 records. For more information, see the REST API Developer Guide: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm",
3
- "sobjecttreefiles": "comma-delimited, ordered paths of json files containing collection of record trees to insert",
4
- "plan": "path to plan to insert multiple data files that have master-detail relationships",
5
- "contenttype": "if data file extension is not .json, provide content type (applies to all files)",
6
- "confighelp": "display schema information for the --plan configuration file to stdout; if you use this option, all other options except --json are ignored",
7
- "examples": [
8
- "$ sfdx force:data:tree:import -f Contact.json,Account.json -u me@my.org",
9
- "$ sfdx force:data:tree:import -p Account-Contact-plan.json -u me@my.org"
10
- ],
11
- "importFailure": "Data plan file %s did not validate against the schema.",
12
- "importFailureActions": "Did you run the force:data:tree:export command with the --plan flag?\nMake sure you are importing a plan file.\nYou can get help with the import plan schema by running $ sfdx force:data:tree:import --confighelp"
13
- }