|
1 | 1 | # summary
|
2 | 2 |
|
3 |
| -Generate org data using AI |
| 3 | +Generate synthetic org data that mimics existing data in a source org, and then load it into a separate target org. |
4 | 4 |
|
5 | 5 | # description
|
6 | 6 |
|
7 |
| -Generates data using AI that is similar to selected data from a source org, based on a configuration file, and loads it into a target org |
| 7 | +This command uses AI to generate synthentic (or "fake") data that has a similar format to selected data in a source org. The command uses a JSON configuration file to define the characteristics of the synthetic data. For example, the configuration file might specify the number of records to generate for one or more Salesforce objects, along with the subset of fields to include. Once generated, the data is automatically loaded into the specified target org. You must be authenticated to both the source and target orgs before running this command. |
| 8 | + |
| 9 | +By default, this command runs synchronously and outputs the job ID, along with a running status of each execution phase, such as querying the source org or generating the data. If you prefer, you can run the command asynchronously by specifying the --async flag so that the control of the terminal is immediately returned to you. Then use the job ID to run the "data-seeding generate report" command to view the status. |
8 | 10 |
|
9 | 11 | # examples
|
10 | 12 |
|
11 |
| -- Generate data using org aliases |
12 |
| - |
13 |
| - $ <%= config.bin %> <%= command.id %> -s mySourceOrg -o myTargetOrg -f "./config/seed-config.json" |
| 13 | +- Generate synthentic data similar to existing data in the org with alias "mySourceOrg" then load it into the org with alias "myTargetOrg"; use the specified config file to determine the format of the generated data: |
| 14 | + |
| 15 | + <%= config.bin %> <%= command.id %> --source-org mySourceOrg --target-org myTargetOrg --config-file ./config/seed-config.json |
| 16 | + |
| 17 | +- Generate synthentic data using org usernames and run the command asynchronously: |
| 18 | + |
| 19 | + <%= config.bin %> <%= command.id %> --source-org source@org.com" --target-org target@org.com" --config-file ./config/seed-config.json --async |
14 | 20 |
|
15 |
| -- Generate data using usernames for each org |
| 21 | +- Generate synthentic data using org aliases; if after 5 minutes the command hasn't finished, it completes asynchronously: |
16 | 22 |
|
17 |
| - $ <%= config.bin %> <%= command.id %> --source-org="source@org.com" --target-org="target@org.com" --config-file "./config/seed-config.json" |
| 23 | + <%= config.bin %> <%= command.id %> --source-org source@org.com" --target-org target@org.com" --config-file ./config/seed-config.json --wait 5 |
18 | 24 |
|
19 | 25 | # flags.target-org.summary
|
20 | 26 |
|
21 |
| -Username or alias of the Target org where generated data will be loaded to. |
| 27 | +Username or alias of the target org into which the generated data will be loaded. |
22 | 28 |
|
23 | 29 | # flags.source-org.summary
|
24 | 30 |
|
25 |
| -Username or alias of the Source org containing data to be used as input for AI to generate similar data. |
| 31 | +Username or alias of the source org that contains the data that AI will mimic. |
26 | 32 |
|
27 | 33 | # flags.config-file.summary
|
28 | 34 |
|
29 |
| -Path to data seeding JSON configuration file. |
| 35 | +Path to the data seeding JSON configuration file. |
30 | 36 |
|
31 | 37 | # flags.wait.summary
|
32 | 38 |
|
33 |
| -Number of minutes to wait for command to complete. |
| 39 | +Number of minutes to wait for the command to complete; when reached, the command completes asynchronously if necessary. |
34 | 40 |
|
35 | 41 | # flags.async.summary
|
36 | 42 |
|
37 |
| -Run the command asynchronously. |
| 43 | +Run the command asynchronously and immediately return control of the terminal. |
38 | 44 |
|
39 | 45 | # report.suggestion
|
40 | 46 |
|
41 |
| - - Check the status with: sf data-seeding generate report -i %s |
| 47 | +- Run this command to check the status of the data generation: "sf data-seeding generate report --job-id %s" |
0 commit comments