The Salesforce DX CLI also provides ways to create, export, and import data into scratch Orgs. This can be very helpful to get a sample dataset in scratch Orgs.
Let's explore the ones that we will be using regularly.
The Salesforce DX CLI also provides ways to create, export, and import data into scratch Orgs. This can be very helpful to get a sample dataset in scratch Orgs.
Let's explore the ones that we will be using regularly.
The data export command allows exporting a dataset from a scratch Org into JSON files.
Let's try to export the dataset to the data folder in your local project from one of the Dev Orgs. Note that you will need to connect your CLI with the Org you are trying to export data into using the auth commands we discussed in the previous section.
Let's try and run the following command:
sfdx force:data:tree:export -p...