Magento 2.0.18 is the final 2.0.x release. After March 2018, Magento 2.0.x will no longer receive security patches, quality fixes, or documentation updates. To maintain your site's performance, security, and PCI compliance, upgrade to the latest version of Magento.

Install using Composer

If you downloaded an archive from Github, this method won’t work because the composer.json file doesn’t contain the repo.magento.com URL.

Used composer create-project

You can use this method of getting sample data for both Magento Open Source or Magento Commerce, but you must use the same authentication keys you used to install Magento.

If you encounter errors, such as Could not find package... or ...no matching package found..., make sure there aren’t any typos in your command. If you still encounter errors, you may not have access to the right Composer repositories, especially if your using Magento Commerce. Contact Magento support for help.

You can use Composer to install sample data either before or after installing Magento; however, there might be additional tasks.