Skip to content

Commit

Permalink
Merge branch '2.4-develop' of https://github.com/mage-os/mirror-magen…
Browse files Browse the repository at this point in the history
…to2-sample-data into 2.4-develop
  • Loading branch information
mage-os-ci committed Dec 6, 2023
2 parents ad5303d + 6061958 commit a726799
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Installing sample data is optional.
Technically, sample data is a set of regular Magento modules, which can be deployed and installed together with the Magento instance, or later in the scope of upgrade.

## Deploy Sample Data

You can deploy sample data from one of the following sources:

* From the Magento composer repository, optionally using Magento CLI
Expand Down Expand Up @@ -49,9 +50,11 @@ To deploy sample data from the GitHub repository:
2. Link the sample data and your Magento instance by running: `# php -f <sample-data_clone_dir>/dev/tools/build-sample-data.php -- --ce-source="<path_to_your_magento_instance>"`

## Install Sample Data

Once the sample data is deployed, it will be installed automatically when you install or upgrade your Magento instance by using the command line.

## Uninstall Sample Data

To remove the sample data modules from the code base, run one of the following commands from the Magento root directory:

* If sample data was deployed from the composer repository, run: `# bin/magento sampledata:remove`
Expand All @@ -61,6 +64,7 @@ To remove the sample data modules from the code base, run one of the following c
To delete all the products and other entities provided by the sample data modules, delete the database and reinstall Magento with a clean database.

## Reinstall Sample Data

If you have deleted certain entities provided by sample data and want to restore them, take the following steps:

1. From the Magento root directory, run the following command: `# bin/magento sampledata:reset`
Expand All @@ -69,4 +73,5 @@ If you have deleted certain entities provided by sample data and want to restore
The deleted sample data entities will be restored. Those entities, which were changed, will preserve these changes and will not be restored to the default view.

## Documentation
You can find the more detailed description of sample data manipulation procedures at [http://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli-sample-data.html](http://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli-sample-data.html)

You can find the more detailed description of sample data manipulation procedures at [Sample data overview](https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/next-steps/sample-data/overview.html).

0 comments on commit a726799

Please sign in to comment.