magento2-sample-data
magento2-sample-data copied to clipboard
magento sampledata:deploy errors out with "Could not find a matching version of package/module-swatches-sample-data. Check the package spelling, your version constraint and that the package is available in a stability which is matches your minimum-stability (stable).
I was not able to install sample data as I have been hit by the error as follows:

Add repositories https://repo.magento.com/ to your composer.json fixed this.
I have added entry to composer.json as follows:
[root@magentovm html]# more composer.json
{
"repositories": [
{
"type": "composer",
"url": "https://repo.magento.com/
}
]
"name": "magento/magento2ce",
"description": "Magento 2 (Open Source)",
"type": "project",
"license": [
"OSL-3.0",
"AFL-3.0"
],
(...)
Then I have started the command, but no clue what to do next:
[root@magentovm html]# /var/www/html/bin/magento sampledata:deploy --no-interaction
Git installations must deploy sample data from GitHub; see https://devdocs.magento.com/guides/v2.3/install-gde/install/sample-data-after-clone.html for more information.