@salesforce/plugin-data 3.5.2 → 3.5.4
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 +38 -126
- package/lib/commands/data/export/{beta → legacy}/tree.js +11 -8
- package/lib/commands/data/export/legacy/tree.js.map +1 -0
- package/lib/commands/data/export/tree.js +10 -7
- package/lib/commands/data/export/tree.js.map +1 -1
- package/lib/commands/data/import/legacy/tree.js +85 -0
- package/lib/commands/data/import/legacy/tree.js.map +1 -0
- package/lib/commands/data/import/tree.js +10 -40
- package/lib/commands/data/import/tree.js.map +1 -1
- package/lib/commands/data/query.js +4 -4
- package/lib/commands/data/query.js.map +1 -1
- package/lib/commands/data/resume.js +0 -5
- package/lib/commands/data/resume.js.map +1 -1
- package/messages/tree.export.md +8 -0
- package/messages/tree.import.legacy.md +60 -0
- package/messages/tree.import.md +11 -24
- package/oclif.manifest.json +156 -101
- package/package.json +9 -9
- package/lib/commands/data/export/beta/tree.js.map +0 -1
- package/lib/commands/data/import/beta/tree.js +0 -52
- package/lib/commands/data/import/beta/tree.js.map +0 -1
- package/messages/tree.import.beta.md +0 -43
|
@@ -77,7 +77,7 @@ export class DataSoqlQueryCommand extends SfCommand {
|
|
|
77
77
|
* When the user is using global '--json' flag an instance of SfdxResult is returned.
|
|
78
78
|
* This is necessary since '--json' flag reports results in the form of SfdxResult
|
|
79
79
|
* and bypasses the definition of start result. The goal is to have the output
|
|
80
|
-
* from '--json' and '--
|
|
80
|
+
* from '--json' and '--result-format json' be the same.
|
|
81
81
|
*
|
|
82
82
|
* The DataSoqlQueryResult is necessary to communicate user selections to the reporters.
|
|
83
83
|
* The 'this' object available during display() function does not include user input to
|
|
@@ -88,7 +88,7 @@ export class DataSoqlQueryCommand extends SfCommand {
|
|
|
88
88
|
this.logger = await Logger.child('data:soql:query');
|
|
89
89
|
const flags = (await this.parse(DataSoqlQueryCommand)).flags;
|
|
90
90
|
try {
|
|
91
|
-
//
|
|
91
|
+
// --file will be present if flags.query isn't. Oclif exactlyOne isn't quite that clever
|
|
92
92
|
const queryString = flags.query ?? fs.readFileSync(flags.file, 'utf8');
|
|
93
93
|
const conn = flags['target-org'].getConnection(flags['api-version']);
|
|
94
94
|
if (flags['result-format'] !== 'json')
|
|
@@ -144,11 +144,11 @@ export class DataSoqlQueryCommand extends SfCommand {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
async runSoqlQuery(connection, query, logger, maxFetch, allRows = false) {
|
|
147
|
+
async runSoqlQuery(connection, query, logger, maxFetch = 50_000, allRows = false) {
|
|
148
148
|
logger.debug('running query');
|
|
149
149
|
const result = await connection.query(query, {
|
|
150
150
|
autoFetch: true,
|
|
151
|
-
maxFetch
|
|
151
|
+
maxFetch,
|
|
152
152
|
scanAll: allRows,
|
|
153
153
|
});
|
|
154
154
|
if (result.records.length && result.totalSize > result.records.length) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/commands/data/query.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAc,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAAO,EAEL,eAAe,EACf,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,WAAW,EAEX,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAS,SAAS,EAAmB,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAA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AAC;gBACH,CAAC;gBACD,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACtB,CAAC;iBAAM,CAAC;gBACN,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;oBAC3C,MAAM,gBAAgB,GAAG,2BAA2B,CAAC,SAAS,CAAC,CAAC;oBAChE,KAAK,MAAM,SAAS,IAAI,gBAAgB,EAAE,CAAC;wBACzC,OAAO,CAAC,IAAI,CAAC;4BACX,SAAS,EAAE,SAAS,CAAC,KAAK;4BAC1B,IAAI,EAAE,GAAG,IAAI,IAAI,SAAS,EAAE;yBAC7B,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;aAAM,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;YAC5B,MAAM,KAAK,GAAU;gBACnB,SAAS,EAAE,SAAS,CAAC,aAAa;gBAClC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC;aACvC,CAAC;YACF,6EAA6E;YAC7E,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC7B,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;YACrB,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,KAAK,EAAE,IAAI,EAAW,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -11,11 +11,6 @@ import { Batcher } from '../../batcher.js';
|
|
|
11
11
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
12
12
|
const messages = Messages.loadMessages('@salesforce/plugin-data', 'data.resume');
|
|
13
13
|
export default class Status extends SfCommand {
|
|
14
|
-
static state = 'deprecated';
|
|
15
|
-
static deprecationOptions = {
|
|
16
|
-
to: 'force:data:bulk:status',
|
|
17
|
-
message: 'Use force:data:bulk:status instead',
|
|
18
|
-
};
|
|
19
14
|
static summary = messages.getMessage('summary');
|
|
20
15
|
static description = messages.getMessage('description');
|
|
21
16
|
static examples = messages.getMessages('examples');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resume.js","sourceRoot":"","sources":["../../../src/commands/data/resume.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,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,CAAC,OAAO,OAAO,MAAO,SAAQ,SAAuB;IAClD,MAAM,CAAU,
|
|
1
|
+
{"version":3,"file":"resume.js","sourceRoot":"","sources":["../../../src/commands/data/resume.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAA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,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC;QAC/E,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;YACzC,oBAAoB;YACpB,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;YAE3C,MAAM,OAAO,GAAgB,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;YAC9C,MAAM,UAAU,GAAG,OAAO;iBACvB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,CAAC,UAAU,CAAC,CAAC;iBACjD,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;YAE7C,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;gBACvB,MAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;YAC/G,CAAC;YAED,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACpB,OAAO,OAAO,CAAC;QACjB,CAAC;QACD,kBAAkB;QAClB,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC1E,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,OAAO,SAAS,CAAC;IACnB,CAAC"}
|
package/messages/tree.export.md
CHANGED
|
@@ -43,3 +43,11 @@ Directory in which to generate the JSON files; default is current directory.
|
|
|
43
43
|
# PrefixSlashError
|
|
44
44
|
|
|
45
45
|
`--prefix` cannot contain a forward slash or backslash.
|
|
46
|
+
|
|
47
|
+
# PlanJsonWarning
|
|
48
|
+
|
|
49
|
+
Starting on Nov 10, 2024, the JSON output for `--plan` will no longer include the `saveRefs` and `resolveRefs` properties.
|
|
50
|
+
|
|
51
|
+
# LegacyDeprecation
|
|
52
|
+
|
|
53
|
+
Starting on Nov 10, 2024, this command will no longer be available. Use `data export tree` instead.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Import data from one or more JSON files into an org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
The JSON files that contain the data are in sObject tree format, which is a collection of nested, parent-child records with a single root record. Use the "<%= config.bin %> data export tree" command to generate these JSON files.
|
|
8
|
+
|
|
9
|
+
If you used the --plan flag when exporting the data to generate a plan definition file, use the --plan flag to reference the file when you import. If you're not using a plan, use the --files flag to list the files. If you specify multiple JSON files that depend on each other in a parent-child relationship, be sure you list them in the correct order.
|
|
10
|
+
|
|
11
|
+
The 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)
|
|
12
|
+
|
|
13
|
+
# flags.files.summary
|
|
14
|
+
|
|
15
|
+
Comma-separated and in-order JSON files that contain the records, in sObject tree format, that you want to insert.
|
|
16
|
+
|
|
17
|
+
# flags.plan.summary
|
|
18
|
+
|
|
19
|
+
Plan definition file to insert multiple data files.
|
|
20
|
+
|
|
21
|
+
# flags.content-type.summary
|
|
22
|
+
|
|
23
|
+
Content type of import files if their extention is not .json.
|
|
24
|
+
|
|
25
|
+
# flags.content-type.deprecation
|
|
26
|
+
|
|
27
|
+
The `config-type` flag is deprecated and will be moved to a `legacy` command after July 10, 2024. It will be completely removed after Nov 10, 2024. Use the new `data tree beta import` command.
|
|
28
|
+
|
|
29
|
+
# flags.config-help.summary
|
|
30
|
+
|
|
31
|
+
Display schema information for the --plan configuration file to stdout; if you specify this flag, all other flags except --json are ignored.
|
|
32
|
+
|
|
33
|
+
# flags.config-help.deprecation
|
|
34
|
+
|
|
35
|
+
The `config-help` flag is deprecated and will be moved to a `legacy` command after July 10, 2024. It will be completely removed after Nov 10, 2024. Use the new `data tree beta import` command.
|
|
36
|
+
|
|
37
|
+
# examples
|
|
38
|
+
|
|
39
|
+
- Import the records contained in two JSON files into the org with alias "my-scratch":
|
|
40
|
+
|
|
41
|
+
<%= config.bin %> <%= command.id %> --files Contact.json,Account.json --target-org my-scratch
|
|
42
|
+
|
|
43
|
+
- Import records using a plan definition file into your default org:
|
|
44
|
+
|
|
45
|
+
<%= config.bin %> <%= command.id %> --plan Account-Contact-plan.json
|
|
46
|
+
|
|
47
|
+
# schema-help
|
|
48
|
+
|
|
49
|
+
schema(array) - Data Import Plan: Schema for SFDX Toolbelt's data import plan JSON.
|
|
50
|
+
|
|
51
|
+
- items(object) - SObject Type: Definition of records to be insert per SObject Type
|
|
52
|
+
- sobject(string) - Name of SObject: Child file references must have SObject roots of this type
|
|
53
|
+
- saveRefs(boolean) - Save References: Post-save, save references (Name/ID) to be used for reference replacement in subsequent saves. Applies to all data files for this SObject type.
|
|
54
|
+
- resolveRefs(boolean) - Resolve References: Pre-save, replace @<reference> with ID from previous save. Applies to all data files for this SObject type.
|
|
55
|
+
- files(array) - Files: An array of files paths to load
|
|
56
|
+
- items(string|object) - Filepath: Filepath string or object to point to a JSON or XML file having data defined in SObject Tree format.
|
|
57
|
+
|
|
58
|
+
# deprecation
|
|
59
|
+
|
|
60
|
+
After Nov 10, 2024, this command will no longer be available. Use `data export tree`.
|
package/messages/tree.import.md
CHANGED
|
@@ -8,31 +8,29 @@ The JSON files that contain the data are in sObject tree format, which is a coll
|
|
|
8
8
|
|
|
9
9
|
If you used the --plan flag when exporting the data to generate a plan definition file, use the --plan flag to reference the file when you import. If you're not using a plan, use the --files flag to list the files. If you specify multiple JSON files that depend on each other in a parent-child relationship, be sure you list them in the correct order.
|
|
10
10
|
|
|
11
|
-
The 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)
|
|
12
|
-
|
|
13
11
|
# flags.files.summary
|
|
14
12
|
|
|
15
13
|
Comma-separated and in-order JSON files that contain the records, in sObject tree format, that you want to insert.
|
|
16
14
|
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
Plan definition file to insert multiple data files.
|
|
15
|
+
# flag.files.description
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
Each file can contain up to 200 total 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)
|
|
22
18
|
|
|
23
|
-
|
|
19
|
+
# flags.plan.summary
|
|
24
20
|
|
|
25
|
-
|
|
21
|
+
Plan definition file to insert multiple data files.
|
|
26
22
|
|
|
27
|
-
|
|
23
|
+
# flags.plan.description
|
|
28
24
|
|
|
29
|
-
|
|
25
|
+
Unlike when you use the `--files` flag, the files listed in the plan definition file **can** contain more then 200 records. When the CLI executes the import, it automatically batches the records to comply with the 200 record limit set by the API.
|
|
30
26
|
|
|
31
|
-
|
|
27
|
+
The order in which you list the files in the plan definition file matters. Specifically, records with lookups to records in another file should be listed AFTER that file. For example, let's say you're loading Account and Contact records, and the contacts have references to those accounts. Be sure you list the Accounts file before the Contacts file.
|
|
32
28
|
|
|
33
|
-
|
|
29
|
+
The plan definition file has the following schema:
|
|
34
30
|
|
|
35
|
-
|
|
31
|
+
- items(object) - SObject Type: Definition of records to be insert per SObject Type
|
|
32
|
+
- sobject(string) - Name of SObject: Child file references must have SObject roots of this type
|
|
33
|
+
- files(array) - Files: An array of files paths to load
|
|
36
34
|
|
|
37
35
|
# examples
|
|
38
36
|
|
|
@@ -43,14 +41,3 @@ The `config-help` flag is deprecated and will be moved to a `legacy` command aft
|
|
|
43
41
|
- Import records using a plan definition file into your default org:
|
|
44
42
|
|
|
45
43
|
<%= config.bin %> <%= command.id %> --plan Account-Contact-plan.json
|
|
46
|
-
|
|
47
|
-
# schema-help
|
|
48
|
-
|
|
49
|
-
schema(array) - Data Import Plan: Schema for SFDX Toolbelt's data import plan JSON.
|
|
50
|
-
|
|
51
|
-
- items(object) - SObject Type: Definition of records to be insert per SObject Type
|
|
52
|
-
- sobject(string) - Name of SObject: Child file references must have SObject roots of this type
|
|
53
|
-
- saveRefs(boolean) - Save References: Post-save, save references (Name/ID) to be used for reference replacement in subsequent saves. Applies to all data files for this SObject type.
|
|
54
|
-
- resolveRefs(boolean) - Resolve References: Pre-save, replace @<reference> with ID from previous save. Applies to all data files for this SObject type.
|
|
55
|
-
- files(array) - Files: An array of files paths to load
|
|
56
|
-
- items(string|object) - Filepath: Filepath string or object to point to a JSON or XML file having data defined in SObject Tree format.
|
package/oclif.manifest.json
CHANGED
|
@@ -221,10 +221,6 @@
|
|
|
221
221
|
"data:resume": {
|
|
222
222
|
"aliases": [],
|
|
223
223
|
"args": {},
|
|
224
|
-
"deprecationOptions": {
|
|
225
|
-
"to": "force:data:bulk:status",
|
|
226
|
-
"message": "Use force:data:bulk:status instead"
|
|
227
|
-
},
|
|
228
224
|
"description": "Run this command using the job ID or batch ID returned from the \"<%= config.bin %> data delete bulk\" or \"<%= config.bin %> data upsert bulk\" commands.",
|
|
229
225
|
"examples": [
|
|
230
226
|
"View the status of a bulk load job:\n<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA",
|
|
@@ -314,7 +310,6 @@
|
|
|
314
310
|
"pluginAlias": "@salesforce/plugin-data",
|
|
315
311
|
"pluginName": "@salesforce/plugin-data",
|
|
316
312
|
"pluginType": "core",
|
|
317
|
-
"state": "deprecated",
|
|
318
313
|
"strict": true,
|
|
319
314
|
"summary": "View the status of a bulk data load job or batch.",
|
|
320
315
|
"enableJsonFlag": true,
|
|
@@ -1025,7 +1020,8 @@
|
|
|
1025
1020
|
},
|
|
1026
1021
|
"data:export:tree": {
|
|
1027
1022
|
"aliases": [
|
|
1028
|
-
"force:data:tree:export"
|
|
1023
|
+
"force:data:tree:export",
|
|
1024
|
+
"data:export:beta:tree"
|
|
1029
1025
|
],
|
|
1030
1026
|
"args": {},
|
|
1031
1027
|
"deprecateAliases": true,
|
|
@@ -1165,7 +1161,31 @@
|
|
|
1165
1161
|
"force:export:tree:data",
|
|
1166
1162
|
"export:force:tree:data",
|
|
1167
1163
|
"export:tree:force:data",
|
|
1168
|
-
"export:tree:data:force"
|
|
1164
|
+
"export:tree:data:force",
|
|
1165
|
+
"data:export:beta:tree",
|
|
1166
|
+
"export:data:beta:tree",
|
|
1167
|
+
"export:beta:data:tree",
|
|
1168
|
+
"export:beta:tree:data",
|
|
1169
|
+
"data:beta:export:tree",
|
|
1170
|
+
"beta:data:export:tree",
|
|
1171
|
+
"beta:export:data:tree",
|
|
1172
|
+
"beta:export:tree:data",
|
|
1173
|
+
"data:beta:tree:export",
|
|
1174
|
+
"beta:data:tree:export",
|
|
1175
|
+
"beta:tree:data:export",
|
|
1176
|
+
"beta:tree:export:data",
|
|
1177
|
+
"data:export:tree:beta",
|
|
1178
|
+
"export:data:tree:beta",
|
|
1179
|
+
"export:tree:data:beta",
|
|
1180
|
+
"export:tree:beta:data",
|
|
1181
|
+
"data:tree:export:beta",
|
|
1182
|
+
"tree:data:export:beta",
|
|
1183
|
+
"tree:export:data:beta",
|
|
1184
|
+
"tree:export:beta:data",
|
|
1185
|
+
"data:tree:beta:export",
|
|
1186
|
+
"tree:data:beta:export",
|
|
1187
|
+
"tree:beta:data:export",
|
|
1188
|
+
"tree:beta:export:data"
|
|
1169
1189
|
],
|
|
1170
1190
|
"permutations": [
|
|
1171
1191
|
"data:export:tree",
|
|
@@ -1351,11 +1371,12 @@
|
|
|
1351
1371
|
},
|
|
1352
1372
|
"data:import:tree": {
|
|
1353
1373
|
"aliases": [
|
|
1354
|
-
"force:data:tree:import"
|
|
1374
|
+
"force:data:tree:import",
|
|
1375
|
+
"data:import:beta:tree"
|
|
1355
1376
|
],
|
|
1356
1377
|
"args": {},
|
|
1357
1378
|
"deprecateAliases": true,
|
|
1358
|
-
"description": "The JSON files that contain the data are in sObject tree format, which is a collection of nested, parent-child records with a single root record. Use the \"<%= config.bin %> data export tree\" command to generate these JSON files.\n\nIf you used the --plan flag when exporting the data to generate a plan definition file, use the --plan flag to reference the file when you import. If you're not using a plan, use the --files flag to list the files. If you specify multiple JSON files that depend on each other in a parent-child relationship, be sure you list them in the correct order
|
|
1379
|
+
"description": "The JSON files that contain the data are in sObject tree format, which is a collection of nested, parent-child records with a single root record. Use the \"<%= config.bin %> data export tree\" command to generate these JSON files.\n\nIf you used the --plan flag when exporting the data to generate a plan definition file, use the --plan flag to reference the file when you import. If you're not using a plan, use the --files flag to list the files. If you specify multiple JSON files that depend on each other in a parent-child relationship, be sure you list them in the correct order.",
|
|
1359
1380
|
"examples": [
|
|
1360
1381
|
"Import the records contained in two JSON files into the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --files Contact.json,Account.json --target-org my-scratch",
|
|
1361
1382
|
"Import records using a plan definition file into your default org:\n<%= config.bin %> <%= command.id %> --plan Account-Contact-plan.json"
|
|
@@ -1418,9 +1439,6 @@
|
|
|
1418
1439
|
],
|
|
1419
1440
|
"char": "f",
|
|
1420
1441
|
"deprecateAliases": true,
|
|
1421
|
-
"exclusive": [
|
|
1422
|
-
"plan"
|
|
1423
|
-
],
|
|
1424
1442
|
"name": "files",
|
|
1425
1443
|
"summary": "Comma-separated and in-order JSON files that contain the records, in sObject tree format, that you want to insert.",
|
|
1426
1444
|
"delimiter": ",",
|
|
@@ -1430,41 +1448,12 @@
|
|
|
1430
1448
|
},
|
|
1431
1449
|
"plan": {
|
|
1432
1450
|
"char": "p",
|
|
1451
|
+
"description": "Unlike when you use the `--files` flag, the files listed in the plan definition file **can** contain more then 200 records. When the CLI executes the import, it automatically batches the records to comply with the 200 record limit set by the API.\n\nThe order in which you list the files in the plan definition file matters. Specifically, records with lookups to records in another file should be listed AFTER that file. For example, let's say you're loading Account and Contact records, and the contacts have references to those accounts. Be sure you list the Accounts file before the Contacts file.\n\nThe plan definition file has the following schema:\n\n- items(object) - SObject Type: Definition of records to be insert per SObject Type\n - sobject(string) - Name of SObject: Child file references must have SObject roots of this type\n - files(array) - Files: An array of files paths to load",
|
|
1433
1452
|
"name": "plan",
|
|
1434
1453
|
"summary": "Plan definition file to insert multiple data files.",
|
|
1435
1454
|
"hasDynamicHelp": false,
|
|
1436
1455
|
"multiple": false,
|
|
1437
1456
|
"type": "option"
|
|
1438
|
-
},
|
|
1439
|
-
"content-type": {
|
|
1440
|
-
"aliases": [
|
|
1441
|
-
"contenttype"
|
|
1442
|
-
],
|
|
1443
|
-
"char": "c",
|
|
1444
|
-
"deprecateAliases": true,
|
|
1445
|
-
"deprecated": {
|
|
1446
|
-
"message": "The `config-type` flag is deprecated and will be moved to a `legacy` command after July 10, 2024. It will be completely removed after Nov 10, 2024. Use the new `data tree beta import` command."
|
|
1447
|
-
},
|
|
1448
|
-
"hidden": true,
|
|
1449
|
-
"name": "content-type",
|
|
1450
|
-
"summary": "Content type of import files if their extention is not .json.",
|
|
1451
|
-
"hasDynamicHelp": false,
|
|
1452
|
-
"multiple": false,
|
|
1453
|
-
"type": "option"
|
|
1454
|
-
},
|
|
1455
|
-
"config-help": {
|
|
1456
|
-
"aliases": [
|
|
1457
|
-
"confighelp"
|
|
1458
|
-
],
|
|
1459
|
-
"deprecateAliases": true,
|
|
1460
|
-
"deprecated": {
|
|
1461
|
-
"message": "The `config-help` flag is deprecated and will be moved to a `legacy` command after July 10, 2024. It will be completely removed after Nov 10, 2024. Use the new `data tree beta import` command."
|
|
1462
|
-
},
|
|
1463
|
-
"hidden": true,
|
|
1464
|
-
"name": "config-help",
|
|
1465
|
-
"summary": "Display schema information for the --plan configuration file to stdout; if you specify this flag, all other flags except --json are ignored.",
|
|
1466
|
-
"allowNo": false,
|
|
1467
|
-
"type": "boolean"
|
|
1468
1457
|
}
|
|
1469
1458
|
},
|
|
1470
1459
|
"hasDynamicHelp": true,
|
|
@@ -1508,7 +1497,31 @@
|
|
|
1508
1497
|
"force:import:tree:data",
|
|
1509
1498
|
"import:force:tree:data",
|
|
1510
1499
|
"import:tree:force:data",
|
|
1511
|
-
"import:tree:data:force"
|
|
1500
|
+
"import:tree:data:force",
|
|
1501
|
+
"data:import:beta:tree",
|
|
1502
|
+
"import:data:beta:tree",
|
|
1503
|
+
"import:beta:data:tree",
|
|
1504
|
+
"import:beta:tree:data",
|
|
1505
|
+
"data:beta:import:tree",
|
|
1506
|
+
"beta:data:import:tree",
|
|
1507
|
+
"beta:import:data:tree",
|
|
1508
|
+
"beta:import:tree:data",
|
|
1509
|
+
"data:beta:tree:import",
|
|
1510
|
+
"beta:data:tree:import",
|
|
1511
|
+
"beta:tree:data:import",
|
|
1512
|
+
"beta:tree:import:data",
|
|
1513
|
+
"data:import:tree:beta",
|
|
1514
|
+
"import:data:tree:beta",
|
|
1515
|
+
"import:tree:data:beta",
|
|
1516
|
+
"import:tree:beta:data",
|
|
1517
|
+
"data:tree:import:beta",
|
|
1518
|
+
"tree:data:import:beta",
|
|
1519
|
+
"tree:import:data:beta",
|
|
1520
|
+
"tree:import:beta:data",
|
|
1521
|
+
"data:tree:beta:import",
|
|
1522
|
+
"tree:data:beta:import",
|
|
1523
|
+
"tree:beta:data:import",
|
|
1524
|
+
"tree:beta:import:data"
|
|
1512
1525
|
],
|
|
1513
1526
|
"permutations": [
|
|
1514
1527
|
"data:import:tree",
|
|
@@ -2213,9 +2226,13 @@
|
|
|
2213
2226
|
"resume:upsert:data"
|
|
2214
2227
|
]
|
|
2215
2228
|
},
|
|
2216
|
-
"data:export:
|
|
2229
|
+
"data:export:legacy:tree": {
|
|
2217
2230
|
"aliases": [],
|
|
2218
2231
|
"args": {},
|
|
2232
|
+
"deprecationOptions": {
|
|
2233
|
+
"to": "data tree export",
|
|
2234
|
+
"message": "Starting on Nov 10, 2024, this command will no longer be available. Use `data export tree` instead."
|
|
2235
|
+
},
|
|
2219
2236
|
"description": "Specify a SOQL query, either directly at the command line or read from a file, to retrieve the data you want to export. The exported data is written to JSON files in sObject tree format, which is a collection of nested, parent-child records with a single root record. Use these JSON files to import data into an org with the \"<%= config.bin %> data import tree\" command.\n\nIf your SOQL query references multiple objects, the command generates a single JSON file by default. You can specify the --plan flag to generate separate JSON files for each object and a plan definition file that aggregates them. You then specify just this plan definition file when you import the data into an org.\n\nThe SOQL query 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).",
|
|
2220
2237
|
"examples": [
|
|
2221
2238
|
"Export records retrieved with the specified SOQL query into a single JSON file in the current directory; the command uses your default org:\n<%= config.bin %> <%= command.id %> --query \"SELECT Id, Name, (SELECT Name, Address__c FROM Properties__r) FROM Broker__c\"",
|
|
@@ -2312,12 +2329,13 @@
|
|
|
2312
2329
|
}
|
|
2313
2330
|
},
|
|
2314
2331
|
"hasDynamicHelp": true,
|
|
2332
|
+
"hidden": true,
|
|
2315
2333
|
"hiddenAliases": [],
|
|
2316
|
-
"id": "data:export:
|
|
2334
|
+
"id": "data:export:legacy:tree",
|
|
2317
2335
|
"pluginAlias": "@salesforce/plugin-data",
|
|
2318
2336
|
"pluginName": "@salesforce/plugin-data",
|
|
2319
2337
|
"pluginType": "core",
|
|
2320
|
-
"state": "
|
|
2338
|
+
"state": "deprecated",
|
|
2321
2339
|
"strict": true,
|
|
2322
2340
|
"summary": "Export data from an org into one or more JSON files.",
|
|
2323
2341
|
"enableJsonFlag": true,
|
|
@@ -2327,41 +2345,44 @@
|
|
|
2327
2345
|
"commands",
|
|
2328
2346
|
"data",
|
|
2329
2347
|
"export",
|
|
2330
|
-
"
|
|
2348
|
+
"legacy",
|
|
2331
2349
|
"tree.js"
|
|
2332
2350
|
],
|
|
2333
2351
|
"aliasPermutations": [],
|
|
2334
2352
|
"permutations": [
|
|
2335
|
-
"data:export:
|
|
2336
|
-
"export:data:
|
|
2337
|
-
"export:
|
|
2338
|
-
"export:
|
|
2339
|
-
"data:
|
|
2340
|
-
"
|
|
2341
|
-
"
|
|
2342
|
-
"
|
|
2343
|
-
"data:
|
|
2344
|
-
"
|
|
2345
|
-
"
|
|
2346
|
-
"
|
|
2347
|
-
"data:export:tree:
|
|
2348
|
-
"export:data:tree:
|
|
2349
|
-
"export:tree:data:
|
|
2350
|
-
"export:tree:
|
|
2351
|
-
"data:tree:export:
|
|
2352
|
-
"tree:data:export:
|
|
2353
|
-
"tree:export:data:
|
|
2354
|
-
"tree:export:
|
|
2355
|
-
"data:tree:
|
|
2356
|
-
"tree:data:
|
|
2357
|
-
"tree:
|
|
2358
|
-
"tree:
|
|
2353
|
+
"data:export:legacy:tree",
|
|
2354
|
+
"export:data:legacy:tree",
|
|
2355
|
+
"export:legacy:data:tree",
|
|
2356
|
+
"export:legacy:tree:data",
|
|
2357
|
+
"data:legacy:export:tree",
|
|
2358
|
+
"legacy:data:export:tree",
|
|
2359
|
+
"legacy:export:data:tree",
|
|
2360
|
+
"legacy:export:tree:data",
|
|
2361
|
+
"data:legacy:tree:export",
|
|
2362
|
+
"legacy:data:tree:export",
|
|
2363
|
+
"legacy:tree:data:export",
|
|
2364
|
+
"legacy:tree:export:data",
|
|
2365
|
+
"data:export:tree:legacy",
|
|
2366
|
+
"export:data:tree:legacy",
|
|
2367
|
+
"export:tree:data:legacy",
|
|
2368
|
+
"export:tree:legacy:data",
|
|
2369
|
+
"data:tree:export:legacy",
|
|
2370
|
+
"tree:data:export:legacy",
|
|
2371
|
+
"tree:export:data:legacy",
|
|
2372
|
+
"tree:export:legacy:data",
|
|
2373
|
+
"data:tree:legacy:export",
|
|
2374
|
+
"tree:data:legacy:export",
|
|
2375
|
+
"tree:legacy:data:export",
|
|
2376
|
+
"tree:legacy:export:data"
|
|
2359
2377
|
]
|
|
2360
2378
|
},
|
|
2361
|
-
"data:import:
|
|
2379
|
+
"data:import:legacy:tree": {
|
|
2362
2380
|
"aliases": [],
|
|
2363
2381
|
"args": {},
|
|
2364
|
-
"
|
|
2382
|
+
"deprecationOptions": {
|
|
2383
|
+
"message": "After Nov 10, 2024, this command will no longer be available. Use `data export tree`."
|
|
2384
|
+
},
|
|
2385
|
+
"description": "The JSON files that contain the data are in sObject tree format, which is a collection of nested, parent-child records with a single root record. Use the \"<%= config.bin %> data export tree\" command to generate these JSON files.\n\nIf you used the --plan flag when exporting the data to generate a plan definition file, use the --plan flag to reference the file when you import. If you're not using a plan, use the --files flag to list the files. If you specify multiple JSON files that depend on each other in a parent-child relationship, be sure you list them in the correct order.\n\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)",
|
|
2365
2386
|
"examples": [
|
|
2366
2387
|
"Import the records contained in two JSON files into the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --files Contact.json,Account.json --target-org my-scratch",
|
|
2367
2388
|
"Import records using a plan definition file into your default org:\n<%= config.bin %> <%= command.id %> --plan Account-Contact-plan.json"
|
|
@@ -2424,6 +2445,9 @@
|
|
|
2424
2445
|
],
|
|
2425
2446
|
"char": "f",
|
|
2426
2447
|
"deprecateAliases": true,
|
|
2448
|
+
"exclusive": [
|
|
2449
|
+
"plan"
|
|
2450
|
+
],
|
|
2427
2451
|
"name": "files",
|
|
2428
2452
|
"summary": "Comma-separated and in-order JSON files that contain the records, in sObject tree format, that you want to insert.",
|
|
2429
2453
|
"delimiter": ",",
|
|
@@ -2438,15 +2462,46 @@
|
|
|
2438
2462
|
"hasDynamicHelp": false,
|
|
2439
2463
|
"multiple": false,
|
|
2440
2464
|
"type": "option"
|
|
2465
|
+
},
|
|
2466
|
+
"content-type": {
|
|
2467
|
+
"aliases": [
|
|
2468
|
+
"contenttype"
|
|
2469
|
+
],
|
|
2470
|
+
"char": "c",
|
|
2471
|
+
"deprecateAliases": true,
|
|
2472
|
+
"deprecated": {
|
|
2473
|
+
"message": "The `config-type` flag is deprecated and will be moved to a `legacy` command after July 10, 2024. It will be completely removed after Nov 10, 2024. Use the new `data tree beta import` command."
|
|
2474
|
+
},
|
|
2475
|
+
"hidden": true,
|
|
2476
|
+
"name": "content-type",
|
|
2477
|
+
"summary": "Content type of import files if their extention is not .json.",
|
|
2478
|
+
"hasDynamicHelp": false,
|
|
2479
|
+
"multiple": false,
|
|
2480
|
+
"type": "option"
|
|
2481
|
+
},
|
|
2482
|
+
"config-help": {
|
|
2483
|
+
"aliases": [
|
|
2484
|
+
"confighelp"
|
|
2485
|
+
],
|
|
2486
|
+
"deprecateAliases": true,
|
|
2487
|
+
"deprecated": {
|
|
2488
|
+
"message": "The `config-help` flag is deprecated and will be moved to a `legacy` command after July 10, 2024. It will be completely removed after Nov 10, 2024. Use the new `data tree beta import` command."
|
|
2489
|
+
},
|
|
2490
|
+
"hidden": true,
|
|
2491
|
+
"name": "config-help",
|
|
2492
|
+
"summary": "Display schema information for the --plan configuration file to stdout; if you specify this flag, all other flags except --json are ignored.",
|
|
2493
|
+
"allowNo": false,
|
|
2494
|
+
"type": "boolean"
|
|
2441
2495
|
}
|
|
2442
2496
|
},
|
|
2443
2497
|
"hasDynamicHelp": true,
|
|
2498
|
+
"hidden": true,
|
|
2444
2499
|
"hiddenAliases": [],
|
|
2445
|
-
"id": "data:import:
|
|
2500
|
+
"id": "data:import:legacy:tree",
|
|
2446
2501
|
"pluginAlias": "@salesforce/plugin-data",
|
|
2447
2502
|
"pluginName": "@salesforce/plugin-data",
|
|
2448
2503
|
"pluginType": "core",
|
|
2449
|
-
"state": "
|
|
2504
|
+
"state": "deprecated",
|
|
2450
2505
|
"strict": true,
|
|
2451
2506
|
"summary": "Import data from one or more JSON files into an org.",
|
|
2452
2507
|
"enableJsonFlag": true,
|
|
@@ -2456,35 +2511,35 @@
|
|
|
2456
2511
|
"commands",
|
|
2457
2512
|
"data",
|
|
2458
2513
|
"import",
|
|
2459
|
-
"
|
|
2514
|
+
"legacy",
|
|
2460
2515
|
"tree.js"
|
|
2461
2516
|
],
|
|
2462
2517
|
"aliasPermutations": [],
|
|
2463
2518
|
"permutations": [
|
|
2464
|
-
"data:import:
|
|
2465
|
-
"import:data:
|
|
2466
|
-
"import:
|
|
2467
|
-
"import:
|
|
2468
|
-
"data:
|
|
2469
|
-
"
|
|
2470
|
-
"
|
|
2471
|
-
"
|
|
2472
|
-
"data:
|
|
2473
|
-
"
|
|
2474
|
-
"
|
|
2475
|
-
"
|
|
2476
|
-
"data:import:tree:
|
|
2477
|
-
"import:data:tree:
|
|
2478
|
-
"import:tree:data:
|
|
2479
|
-
"import:tree:
|
|
2480
|
-
"data:tree:import:
|
|
2481
|
-
"tree:data:import:
|
|
2482
|
-
"tree:import:data:
|
|
2483
|
-
"tree:import:
|
|
2484
|
-
"data:tree:
|
|
2485
|
-
"tree:data:
|
|
2486
|
-
"tree:
|
|
2487
|
-
"tree:
|
|
2519
|
+
"data:import:legacy:tree",
|
|
2520
|
+
"import:data:legacy:tree",
|
|
2521
|
+
"import:legacy:data:tree",
|
|
2522
|
+
"import:legacy:tree:data",
|
|
2523
|
+
"data:legacy:import:tree",
|
|
2524
|
+
"legacy:data:import:tree",
|
|
2525
|
+
"legacy:import:data:tree",
|
|
2526
|
+
"legacy:import:tree:data",
|
|
2527
|
+
"data:legacy:tree:import",
|
|
2528
|
+
"legacy:data:tree:import",
|
|
2529
|
+
"legacy:tree:data:import",
|
|
2530
|
+
"legacy:tree:import:data",
|
|
2531
|
+
"data:import:tree:legacy",
|
|
2532
|
+
"import:data:tree:legacy",
|
|
2533
|
+
"import:tree:data:legacy",
|
|
2534
|
+
"import:tree:legacy:data",
|
|
2535
|
+
"data:tree:import:legacy",
|
|
2536
|
+
"tree:data:import:legacy",
|
|
2537
|
+
"tree:import:data:legacy",
|
|
2538
|
+
"tree:import:legacy:data",
|
|
2539
|
+
"data:tree:legacy:import",
|
|
2540
|
+
"tree:data:legacy:import",
|
|
2541
|
+
"tree:legacy:data:import",
|
|
2542
|
+
"tree:legacy:import:data"
|
|
2488
2543
|
]
|
|
2489
2544
|
},
|
|
2490
2545
|
"force:data:bulk:delete": {
|
|
@@ -2924,5 +2979,5 @@
|
|
|
2924
2979
|
]
|
|
2925
2980
|
}
|
|
2926
2981
|
},
|
|
2927
|
-
"version": "3.5.
|
|
2982
|
+
"version": "3.5.4"
|
|
2928
2983
|
}
|