Magento 2 CLI Commands

Here’s a list of terminal commands for Magento 2:

  1. bin/magento: The main CLI tool for Magento 2.
  2. bin/magento admin:user:create: Create a new admin user.
  3. bin/magento cache:clean: Clean the cache.
  4. bin/magento cache:flush: Flush the cache.
  5. bin/magento cache:disable: Disable all cache types.
  6. bin/magento cache:enable: Enable all cache types.
  7. bin/magento cache:status: Show the status of all cache types.
  8. bin/magento deploy:mode:set: Set the deployment mode.
  9. bin/magento indexer:reindex: Reindex data.
  10. bin/magento info:adminuri: Show the admin URI.
  11. bin/magento module:disable: Disable a module.
  12. bin/magento module:enable: Enable a module.
  13. bin/magento module:status: Show the status of modules.
  14. bin/magento setup:di:compile: Compile DI configuration.
  15. bin/magento setup:upgrade: Upgrade the Magento installation.
  16. bin/magento setup:static-content:deploy: Deploy static view files.
  17. bin/magento setup:store-config:set: Set store configuration values.
  18. bin/magento setup:uninstall: Uninstall Magento.
  19. bin/magento setup:config:set: Set a configuration value.
  20. bin/magento setup:config:show: Show the configuration value.
  21. bin/magento setup:rollback: Rollback Magento to the previous version.
  22. bin/magento setup:db-data:upgrade: Upgrade the database.
  23. bin/magento setup:db-schema:upgrade: Upgrade the database schema.
  24. bin/magento setup:db:status: Show the status of the database.
  25. bin/magento setup:performance:generate-fixtures: Generate fixtures for performance testing.
  26. bin/magento setup:static-content:deploy: Deploy static view files.
  27. bin/magento maintenance:enable: Enable maintenance mode.
  28. bin/magento maintenance:disable: Disable maintenance mode.
  29. bin/magento security:check: Check security.
  30. bin/magento dev:source-theme:deploy: Deploy a source theme.

These are just some of the most commonly used Magento 2 CLI commands. For a complete list of commands and options, you can run bin/magento list.