Product Configuration Rules can not be migrated from one org to another due to how references are stored. The rule can be migrated, but all the references will be lost. This plugin will migrate rules from one org to another.
-
Ensure you have the Salesforce CLI installed.
-
Run this command to install the plugin:
sf plugins install rev-config-rule-migrator
-
Run this command to see the documentation:
sf rev migrate rule --help
-
Login to both your source and target organizations via the Salesforce CLI docs
sf org login web --alias my-source-org sf org login web --alias my-target-org
-
Run this command to migrate all Product Configuration rules from your source org to your target org:
sf rev migrate rule --source-org <source org alias> --target-org <target org alias>
-
To see more options, run this command:
sf rev migrate rule --help