@@ -114,144 +114,181 @@ sf plugins
114
114
115
115
## ` sf data-seeding generate `
116
116
117
- Generate org data using AI
117
+ Generate synthetic org data that mimics existing data in a source org, and then load it into a separate target org.
118
118
119
119
```
120
120
USAGE
121
121
$ sf data-seeding generate -o <value> -s <value> -f <value> [--json] [--flags-dir <value>] [-w <value> | --async]
122
122
123
123
FLAGS
124
- -f, --config-file=<value> (required) Path to data seeding JSON configuration file.
125
- -o, --target-org=<value> (required) Username or alias of the Target org where generated data will be loaded to.
126
- -s, --source-org=<value> (required) Username or alias of the Source org containing data to be used as input for AI
127
- to generate similar data.
128
- -w, --wait=<value> [default: 33 minutes] Number of minutes to wait for command to complete.
129
- --async Run the command asynchronously.
124
+ -f, --config-file=<value> (required) Path to the data seeding JSON configuration file.
125
+ -o, --target-org=<value> (required) Username or alias of the target org into which the generated data will be
126
+ loaded.
127
+ -s, --source-org=<value> (required) Username or alias of the source org that contains the data that AI will mimic.
128
+ -w, --wait=<value> [default: 33 minutes] Number of minutes to wait for the command to complete; when reached,
129
+ the command completes asynchronously if necessary.
130
+ --async Run the command asynchronously and immediately return control of the terminal.
130
131
131
132
GLOBAL FLAGS
132
133
--flags-dir=<value> Import flag values from a directory.
133
134
--json Format output as json.
134
135
135
136
DESCRIPTION
136
- Generate org data using AI
137
+ Generate synthetic org data that mimics existing data in a source org, and then load it into a separate target org.
137
138
138
- Generates data using AI that is similar to selected data from a source org, based on a configuration file, and loads
139
- it into a target org
139
+ This command uses AI to generate synthetic (or "fake") data that has a similar format to selected data in a source
140
+ org. The command uses a JSON configuration file to define the characteristics of the synthetic data. For example, the
141
+ configuration file might specify the number of records to generate for one or more Salesforce objects, along with the
142
+ subset of fields to include. Once generated, the data is automatically loaded into the specified target org. You must
143
+ be authenticated to both the source and target orgs before running this command.
144
+
145
+ By default, this command runs synchronously and outputs the job ID, along with a running status of each execution
146
+ phase, such as querying the source org or generating the data. If you prefer, you can run the command asynchronously
147
+ by specifying the --async flag so that the control of the terminal is immediately returned to you. Then use the job ID
148
+ to run the "data-seeding generate report" command to view the status.
140
149
141
150
EXAMPLES
142
- Generate data using org aliases
151
+ Generate synthetic data similar to existing data in the org with alias "mySourceOrg" then load it into the org with
152
+ alias "myTargetOrg"; use the specified config file to determine the format of the generated data:
153
+
154
+ $ sf data-seeding generate --source-org mySourceOrg --target-org myTargetOrg --config-file \
155
+ ./config/seed-config.json
156
+
157
+ Generate synthetic data using org usernames and run the command asynchronously:
143
158
144
- $ sf data-seeding generate -s mySourceOrg -o myTargetOrg -f "./config/seed-config.json"
159
+ $ sf data-seeding generate --source-org source@org.com" --target-org target@org.com" --config-file \
160
+ ./config/seed-config.json --async
145
161
146
- Generate data using usernames for each org
162
+ Generate synthetic data using org aliases; if after 5 minutes the command hasn't finished, it completes
163
+ asynchronously:
147
164
148
- $ sf data-seeding generate --source-org=" source@org.com" --target-org=" target@org.com" --config-file \
149
- " ./config/seed-config.json"
165
+ $ sf data-seeding generate --source-org source@org.com" --target-org target@org.com" --config-file \
166
+ ./config/seed-config.json --wait 5
150
167
```
151
168
152
- _ See code: [ src/commands/data-seeding/generate/index.ts] ( https://github.com/salesforcecli/plugin-data-seeding/blob/v1.0.3 /src/commands/data-seeding/generate/index.ts ) _
169
+ _ See code: [ src/commands/data-seeding/generate/index.ts] ( https://github.com/salesforcecli/plugin-data-seeding/blob/v1.0.10 /src/commands/data-seeding/generate/index.ts ) _
153
170
154
171
## ` sf data-seeding generate report `
155
172
156
- View the status of a data-seeding generate job
173
+ Display the status of a data-seeding generate job.
157
174
158
175
```
159
176
USAGE
160
177
$ sf data-seeding generate report [--json] [--flags-dir <value>] [-i <value>] [-r]
161
178
162
179
FLAGS
163
- -i, --job-id=<value> ID of a specific ` data-seeding generate` job .
164
- -r, --use-most-recent View status of most recent ` data-seeding generate` job .
180
+ -i, --job-id=<value> ID of a specific execution of the " data-seeding generate" command .
181
+ -r, --use-most-recent View the status of the most recently run " data-seeding generate" command .
165
182
166
183
GLOBAL FLAGS
167
184
--flags-dir=<value> Import flag values from a directory.
168
185
--json Format output as json.
169
186
170
187
DESCRIPTION
171
- View the status of a data-seeding generate job
188
+ Display the status of a data-seeding generate job.
172
189
173
- View the status of a data-seeding generate job that has already been initiated or completed
190
+ This command displays the status of a previously initiated or completed execution of the "data-seeding generate"
191
+ command. Run this command by either passing it the job ID returned by "data-seeding generate", or use the
192
+ --use-most-recent flag to view the status of the most recently run "data-seeding generate" command.
174
193
175
194
EXAMPLES
176
- Display the status of a specific data seeding job
195
+ Display the status of a specific execution of the "data- seeding generate" command:
177
196
178
- $ sf data-seeding generate report --job-id="[XXXX-YYYY-ZZZZ- AAAA]"
197
+ $ sf data-seeding generate report --job-id 1234-5678- AAAA-BBBB
179
198
180
- Display the status of a the most recent data seeding job
199
+ Display the status of the most recently run "data- seeding generate" command:
181
200
182
201
$ sf data-seeding generate report --use-most-recent
183
202
```
184
203
185
- _ See code: [ src/commands/data-seeding/generate/report.ts] ( https://github.com/salesforcecli/plugin-data-seeding/blob/v1.0.3 /src/commands/data-seeding/generate/report.ts ) _
204
+ _ See code: [ src/commands/data-seeding/generate/report.ts] ( https://github.com/salesforcecli/plugin-data-seeding/blob/v1.0.10 /src/commands/data-seeding/generate/report.ts ) _
186
205
187
206
## ` sf data-seeding migrate `
188
207
189
- Migrates data from one org to another
208
+ Migrate data from one org to another.
190
209
191
210
```
192
211
USAGE
193
212
$ sf data-seeding migrate -o <value> -s <value> -f <value> [--json] [--flags-dir <value>] [-w <value> | --async]
194
213
195
214
FLAGS
196
- -f, --config-file=<value> (required) Path to data migration JSON configuration file.
197
- -o, --target-org=<value> (required) Username or alias of the Target org where data will be migrated to.
198
- -s, --source-org=<value> (required) Username or alias of the Source org where data will be migrated from.
199
- -w, --wait=<value> [default: 33 minutes] Number of minutes to wait for command to complete.
200
- --async Run the command asynchronously.
215
+ -f, --config-file=<value> (required) Path to the data migration JSON configuration file.
216
+ -o, --target-org=<value> (required) Username or alias of the target org into which the migrated data is loaded.
217
+ -s, --source-org=<value> (required) Username or alias of the source org that contains the data to be migrated.
218
+ -w, --wait=<value> [default: 33 minutes] Number of minutes to wait for the command to complete; when reached,
219
+ the command completes asynchronously if necessary.
220
+ --async Run the command asynchronously and immediately return control of the terminal.
201
221
202
222
GLOBAL FLAGS
203
223
--flags-dir=<value> Import flag values from a directory.
204
224
--json Format output as json.
205
225
206
226
DESCRIPTION
207
- Migrates data from one org to another
227
+ Migrate data from one org to another.
208
228
209
- Migrates selected data based on a configuration file from a source org and into a target org
229
+ This command migrates selected data from a source org and loads it into a target org. The command uses a JSON
230
+ configuration file that defines the characteristics of the data. For example, the configuration file might specify a
231
+ number of records from one or more Salesforce objects to migrate, along with the subset of fields to include. You must
232
+ be authenticated to both the source and target orgs before running this command.
233
+
234
+ By default, this command runs synchronously and outputs a job ID along with a running status of each execution phase,
235
+ such as querying the source org or loading into the target. If you prefer, you can run the command asynchronously by
236
+ specifying the --async flag so that the control of the terminal is immediately returned to you. Then use the job ID to
237
+ run the "data-seeding migrate report" command to view the status.
210
238
211
239
EXAMPLES
212
- Migrate data using a specific configuration file and org aliases
240
+ Migrate data from the org with alias "mySourceOrg" to the org with alias "myTargetOrg"; use the specified
241
+ configuration file to determine the data to migrate:
242
+
243
+ $ sf data-seeding migrate --source-org mySourceOrg --target-org myTargetOrg --config-file \
244
+ ./config/data-seed.json
245
+
246
+ Migrate data by specifying usernames for the source and target orgs, and run the command asynchronously:
213
247
214
- $ sf data-seeding migrate -s sourceOrg -t targetOrg -f "/config/data-seed.json"
248
+ $ sf data-seeding migrate --source-org source@org.com --target-org target@org.com \
249
+ --config-file=./config/data-seed.json --async
215
250
216
- Migrate data using default configuration file and usernames for each org
251
+ Migrate data using org aliases; if after 5 minutes the command hasn't finished, it completes asynchronously:
217
252
218
- $ sf data-seeding migrate --source-org="source@org.com" --target-org="target@org.com" \
219
- --config-file=" /config/data-seed.json"
253
+ $ sf data-seeding migrate --source-org mySourceOrg --target-org myTargetOrg --config-file \
254
+ . /config/data-seed.json --wait 5
220
255
```
221
256
222
- _ See code: [ src/commands/data-seeding/migrate/index.ts] ( https://github.com/salesforcecli/plugin-data-seeding/blob/v1.0.3 /src/commands/data-seeding/migrate/index.ts ) _
257
+ _ See code: [ src/commands/data-seeding/migrate/index.ts] ( https://github.com/salesforcecli/plugin-data-seeding/blob/v1.0.10 /src/commands/data-seeding/migrate/index.ts ) _
223
258
224
259
## ` sf data-seeding migrate report `
225
260
226
- View the status of a data-seeding migrate job
261
+ Display the status of a data-seeding migrate job.
227
262
228
263
```
229
264
USAGE
230
265
$ sf data-seeding migrate report [--json] [--flags-dir <value>] [-i <value>] [-r]
231
266
232
267
FLAGS
233
- -i, --job-id=<value> ID of a specific ` data-seeding migrate` job .
234
- -r, --use-most-recent View status of most recent ` data-seeding migrate` job .
268
+ -i, --job-id=<value> ID of a specific execution of the " data-seeding migrate" command .
269
+ -r, --use-most-recent View the status of the most recently run " data-seeding migrate" command .
235
270
236
271
GLOBAL FLAGS
237
272
--flags-dir=<value> Import flag values from a directory.
238
273
--json Format output as json.
239
274
240
275
DESCRIPTION
241
- View the status of a data-seeding migrate job
276
+ Display the status of a data-seeding migrate job.
242
277
243
- View the status of a data-seeding migrate job that has already been initiated or completed
278
+ This command displays the status of a previously initiated or completed execution of the "data-seeding migrate"
279
+ command. Run this command by either passing it the job ID returned by "data-seeding migrate", or use the
280
+ --use-most-recent flag to view the status of the most recently run "data-seeding migrate" command.
244
281
245
282
EXAMPLES
246
- Display the status of a specific data seeding job
283
+ Display the status of a specific execution of the "data- seeding migrate" command:
247
284
248
- $ sf data-seeding migrate report --job-id="[XXXX-YYYY-ZZZZ- AAAA]"
285
+ $ sf data-seeding migrate report --job-id 1234-5678- AAAA-BBBB
249
286
250
- Display the status of a the most recent data seeding job
287
+ Display the status of the most recently run "data- seeding migrate" command:
251
288
252
289
$ sf data-seeding migrate report --use-most-recent
253
290
```
254
291
255
- _ See code: [ src/commands/data-seeding/migrate/report.ts] ( https://github.com/salesforcecli/plugin-data-seeding/blob/v1.0.3 /src/commands/data-seeding/migrate/report.ts ) _
292
+ _ See code: [ src/commands/data-seeding/migrate/report.ts] ( https://github.com/salesforcecli/plugin-data-seeding/blob/v1.0.10 /src/commands/data-seeding/migrate/report.ts ) _
256
293
257
294
<!-- commandsstop -->
0 commit comments