Magento 2.4.x List of CLI Command

The following below list of CLI Command

  1. Take Backup:
    php bin/magento setup:backup
  2. Run cron jobs scheduled for setup application:
    php bin/magento setup:cron:run
  3. Install/Upgrade DB data:
    php bin/magento setup:db-data:upgrade
  4. Install/Upgrade DB schema:
    php bin/magento setup:db-schema:upgrade
  5. Check DB data/schema status:
    php bin/magento setup:db:status
  6. Install store configuration:
    php bin/magento setup:store-config:set
  7. Set deployment configuration:
    php bin/magento setup:config:set
  8. Upgrade Magento application, db data and schema:
    php bin/magento setup:upgrade
  9. Compile code:
    Use the following command when you a single instance of Magento application:
    php bin/magento setup:di:compile
  10. Use the following command when you have more than one independent instance of Magento application using one command Magento code base.
    php bin/magento setup:di:compile-multi-tenant
  11. Deploying static view files:
    php bin/magento setup:static-content:deploy
  12. Rollback codebase, media and database:
    php bin/magento setup:rollback
  13. Performance testing data:
    php bin/magento setup:perf:generate-fixtures
  14. Uninstall Magento application:
    php bin/magento setup:uninstall
  15. Deploy:
    Manage deployment mode:
    php bin/magento deploy:mode:{set|show}
  16. Module:
    Manage modules:
    php bin/magento module:{enable|disable|status|uninstall}
  17. Theme:
    Uninstall:
    php bin/magento theme:uninstall
  18. Indexer:
    Manage Indexing and indexers:
    php bin/magento setup:indexer:{status|info|reindex|show-mode|set-mode|reset}
  19. Cron:
    Run cron jobs by schedule:
    php bin/magento cron:run
  20. Translation:
    Create translation dictionary/package:
    php bin/magento i18n:{collect-phrases|pack|uninstall}
  21. Maintenance:
    Manage maintenance mode:
    php bin/magento maintenance:{enable|disable|status|allow-ips}
  22. Info:
    Display admin URI:
    php bin/magento info:adminuri
  23. List backups:
    php bin/magento info:backups:list
  24. List currency:
    php bin/magento info:currency:list
  25. List language:
    php bin/magento info:language:list
  26. List timezone:
    php bin/magento info:timezone:list
  27. Show dependencies:
    php bin/magento info:dependencies:{show-modules|show-framework|show-modules-circular}
  28. Dev:
    Collect and publish source files for theme:
    php bin/magento dev:source-theme:deploy
  29. Convert layout XML (Extensible Markup Language) using XSL (Extensible Stylesheet Language) stylesheets:
    php bin/magento dev:xml:convert
  30. Run dev tests:
    php bin/magento dev:tests:run
  31. Generate catalog of URNs to *.xsd mappings:
    php bin/magento dev:urn-catalog:generate
  32. Sampledata:
    Install sample data:
    php bin/magento sampledata:{deploy|remove|reset}
  33. Admin User:
    Mange admin user:
    php bin/magento admin:user{create|unlock}
  34. Customer:
    Upgrade customer hash:
    php bin/magento customer:hash:upgrade
  35. Catalog:
    Create resized product images:
    php bin/magento catalog:images:resize
  36. Remove unused product attributes:
    php bin/magento product:attributes:cleanup
  37. App:
    Create dump of application:
    php bin/magento app:config:dump

Leave a Reply

Your email address will not be published. Required fields are marked *