@salesforce/plugin-data-seeding 1.1.3
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/LICENSE.txt +12 -0
- package/README.md +294 -0
- package/lib/commands/data-seeding/generate/index.d.ts +16 -0
- package/lib/commands/data-seeding/generate/index.js +146 -0
- package/lib/commands/data-seeding/generate/index.js.map +1 -0
- package/lib/commands/data-seeding/generate/report.d.ts +12 -0
- package/lib/commands/data-seeding/generate/report.js +70 -0
- package/lib/commands/data-seeding/generate/report.js.map +1 -0
- package/lib/commands/data-seeding/migrate/index.d.ts +16 -0
- package/lib/commands/data-seeding/migrate/index.js +146 -0
- package/lib/commands/data-seeding/migrate/index.js.map +1 -0
- package/lib/commands/data-seeding/migrate/report.d.ts +12 -0
- package/lib/commands/data-seeding/migrate/report.js +68 -0
- package/lib/commands/data-seeding/migrate/report.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -0
- package/lib/utils/api.d.ts +22 -0
- package/lib/utils/api.js +84 -0
- package/lib/utils/api.js.map +1 -0
- package/lib/utils/cache.d.ts +20 -0
- package/lib/utils/cache.js +65 -0
- package/lib/utils/cache.js.map +1 -0
- package/lib/utils/mso.d.ts +15 -0
- package/lib/utils/mso.js +112 -0
- package/lib/utils/mso.js.map +1 -0
- package/lib/utils/types.d.ts +16 -0
- package/lib/utils/types.js +8 -0
- package/lib/utils/types.js.map +1 -0
- package/messages/data-seeding.generate.md +47 -0
- package/messages/data-seeding.generate.report.md +25 -0
- package/messages/data-seeding.migrate.md +47 -0
- package/messages/data-seeding.migrate.report.md +25 -0
- package/npm-shrinkwrap.json +14467 -0
- package/oclif.lock +7962 -0
- package/oclif.manifest.json +337 -0
- package/package.json +216 -0
- package/schemas/data__seeding-generate-report.json +32 -0
- package/schemas/data__seeding-generate.json +38 -0
- package/schemas/data__seeding-migrate-report.json +32 -0
- package/schemas/data__seeding-migrate.json +38 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Generate synthetic org data that mimics existing data in a source org, and then load it into a separate target org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
This command uses AI to generate synthetic (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.
|
|
10
|
+
|
|
11
|
+
# examples
|
|
12
|
+
|
|
13
|
+
- Generate synthetic 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 synthetic 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
|
|
20
|
+
|
|
21
|
+
- Generate synthetic data using org aliases; if after 5 minutes the command hasn't finished, it completes asynchronously:
|
|
22
|
+
|
|
23
|
+
<%= config.bin %> <%= command.id %> --source-org source@org.com" --target-org target@org.com" --config-file ./config/seed-config.json --wait 5
|
|
24
|
+
|
|
25
|
+
# flags.target-org.summary
|
|
26
|
+
|
|
27
|
+
Username or alias of the target org into which the generated data will be loaded.
|
|
28
|
+
|
|
29
|
+
# flags.source-org.summary
|
|
30
|
+
|
|
31
|
+
Username or alias of the source org that contains the data that AI will mimic.
|
|
32
|
+
|
|
33
|
+
# flags.config-file.summary
|
|
34
|
+
|
|
35
|
+
Path to the data seeding JSON configuration file.
|
|
36
|
+
|
|
37
|
+
# flags.wait.summary
|
|
38
|
+
|
|
39
|
+
Number of minutes to wait for the command to complete; when reached, the command completes asynchronously if necessary.
|
|
40
|
+
|
|
41
|
+
# flags.async.summary
|
|
42
|
+
|
|
43
|
+
Run the command asynchronously and immediately return control of the terminal.
|
|
44
|
+
|
|
45
|
+
# report.suggestion
|
|
46
|
+
|
|
47
|
+
- Run this command to check the status of the data generation: "sf data-seeding generate report --job-id %s"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Display the status of a data-seeding generate job.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
This command displays the status of a previously initiated or completed execution of the "data-seeding generate" command. Run this command by either passing it the job ID returned by "data-seeding generate", or use the --use-most-recent flag to view the status of the most recently run "data-seeding generate" command.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- Display the status of a specific execution of the "data-seeding generate" command:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --job-id 1234-5678-AAAA-BBBB
|
|
14
|
+
|
|
15
|
+
- Display the status of the most recently run "data-seeding generate" command:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --use-most-recent
|
|
18
|
+
|
|
19
|
+
# flags.job-id.summary
|
|
20
|
+
|
|
21
|
+
ID of a specific execution of the "data-seeding generate" command.
|
|
22
|
+
|
|
23
|
+
# flags.use-most-recent.summary
|
|
24
|
+
|
|
25
|
+
View the status of the most recently run "data-seeding generate" command.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Migrate data from one org to another.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
This command migrates selected data from a source org and loads it into a target org. The command uses a JSON configuration file that defines the characteristics of the data. For example, the configuration file might specify a number of records from one or more Salesforce objects to migrate, along with the subset of fields to include. 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 a job ID along with a running status of each execution phase, such as querying the source org or loading into the target. 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 migrate report" command to view the status.
|
|
10
|
+
|
|
11
|
+
# examples
|
|
12
|
+
|
|
13
|
+
- Migrate data from the org with alias "mySourceOrg" to the org with alias "myTargetOrg"; use the specified configuration file to determine the data to migrate:
|
|
14
|
+
|
|
15
|
+
<%= config.bin %> <%= command.id %> --source-org mySourceOrg --target-org myTargetOrg --config-file ./config/data-seed.json
|
|
16
|
+
|
|
17
|
+
- Migrate data by specifying usernames for the source and target orgs, and run the command asynchronously:
|
|
18
|
+
|
|
19
|
+
<%= config.bin %> <%= command.id %> --source-org source@org.com --target-org target@org.com --config-file=./config/data-seed.json --async
|
|
20
|
+
|
|
21
|
+
- Migrate data using org aliases; if after 5 minutes the command hasn't finished, it completes asynchronously:
|
|
22
|
+
|
|
23
|
+
<%= config.bin %> <%= command.id %> --source-org mySourceOrg --target-org myTargetOrg --config-file ./config/data-seed.json --wait 5
|
|
24
|
+
|
|
25
|
+
# flags.target-org.summary
|
|
26
|
+
|
|
27
|
+
Username or alias of the target org into which the migrated data is loaded.
|
|
28
|
+
|
|
29
|
+
# flags.source-org.summary
|
|
30
|
+
|
|
31
|
+
Username or alias of the source org that contains the data to be migrated.
|
|
32
|
+
|
|
33
|
+
# flags.config-file.summary
|
|
34
|
+
|
|
35
|
+
Path to the data migration JSON configuration file.
|
|
36
|
+
|
|
37
|
+
# flags.async.summary
|
|
38
|
+
|
|
39
|
+
Run the command asynchronously and immediately return control of the terminal.
|
|
40
|
+
|
|
41
|
+
# flags.wait.summary
|
|
42
|
+
|
|
43
|
+
Number of minutes to wait for the command to complete; when reached, the command completes asynchronously if necessary.
|
|
44
|
+
|
|
45
|
+
# report.suggestion
|
|
46
|
+
|
|
47
|
+
- Run this command to check the status of the data migration: "sf data-seeding migrate report --job-id %s"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Display the status of a data-seeding migrate job.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
This command displays the status of a previously initiated or completed execution of the "data-seeding migrate" command. Run this command by either passing it the job ID returned by "data-seeding migrate", or use the --use-most-recent flag to view the status of the most recently run "data-seeding migrate" command.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- Display the status of a specific execution of the "data-seeding migrate" command:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --job-id 1234-5678-AAAA-BBBB
|
|
14
|
+
|
|
15
|
+
- Display the status of the most recently run "data-seeding migrate" command:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --use-most-recent
|
|
18
|
+
|
|
19
|
+
# flags.job-id.summary
|
|
20
|
+
|
|
21
|
+
ID of a specific execution of the "data-seeding migrate" command.
|
|
22
|
+
|
|
23
|
+
# flags.use-most-recent.summary
|
|
24
|
+
|
|
25
|
+
View the status of the most recently run "data-seeding migrate" command.
|