If you want to add the Magento Sample Data, run the following commands in the Magento root directory once you install Magento 2.
bin/magento sampledata:deploy
# Get your Magento Marketplace authentication keys or use these:
# Username: 7c018006799466c681ad507e27904677
# Password: 289077c86e811661a8f7751828485d3a
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
Note: all our Magento 2 extensions are already compatible with the latest Magento versions.