How to work with Magento using Composer?

Normal command format: php bin/magento

Commands:

  1. Fulse the Cache: php bin/magento c:f
  2. Show Deploy Mode: phpbin/magento deploy:mode:show (Modes: default, developer, production)
  3. Set Deploy Mode: phpbin/magento deploy:mode:set developer
  4. php bin/magento setup:static-content:deploy
  5. php bin/magento setup:upgrade

Helpful Docs:
Sample Data from Composer : Click here
After imported sample data needs to run 5 command for upgrade.

Magento Modes: Click here