Here are 100 additional Magento 2 CLI command variations and examples. These are useful for cache management, deployment, module, indexing, configuration, and more.

  1. bin/magento cache:status - Check status of all cache types.
  2. bin/magento cache:clean full_page - Clears full-page cache.
  3. bin/magento cache:clean block_html - Clears block HTML cache.
  4. bin/magento cache:clean config - Clears configuration cache.
  5. bin/magento cache:disable full_page block_html - Disable multiple cache types.
  6. bin/magento cache:enable full_page block_html - Enable multiple cache types.
  7. bin/magento config:show web/unsecure/base_url - Show base URL in the configuration.
  8. bin/magento config:set web/unsecure/base_url http://example.com - Set unsecure base URL.
  9. bin/magento config:set web/secure/base_url https://example.com - Set secure base URL.
  10. bin/magento config:set web/secure/use_in_frontend 1 - Enable HTTPS on the frontend.
  11. bin/magento config:set web/secure/use_in_adminhtml 1 - Enable HTTPS in the admin panel.
  12. bin/magento module:status Vendor_Module - Check status of a specific module.
  13. bin/magento module:disable Vendor_Module1 Vendor_Module2 - Disable multiple modules.
  14. bin/magento module:enable Vendor_Module1 Vendor_Module2 - Enable multiple modules.
  15. bin/magento module:disable --clear-static-content Vendor_Module - Disable a module and clear static content.
  16. bin/magento maintenance:status - Check maintenance mode status.
  17. bin/magento maintenance:enable --ip=192.168.1.100 - Enable maintenance mode, allowing specific IP.
  18. bin/magento maintenance:disable --ip=192.168.1.100 - Disable maintenance mode and remove IP whitelist.
  19. bin/magento deploy:mode:set default - Sets the default mode for Magento.
  20. bin/magento setup:store-config:set --base-url="http://localhost" - Set base URL.
  21. bin/magento setup:store-config:set --base-url-secure="https://localhost" - Set secure base URL.
  22. bin/magento setup:install --db-host=localhost --db-name=magento --db-user=root --db-password=pass123 - Install Magento with database credentials.
  23. bin/magento setup:upgrade --keep-generated - Upgrade database without regenerating code.
  24. bin/magento setup:db:status - Show database migration status.
  25. bin/magento setup:db-data:upgrade - Upgrade Magento data in the database.
  26. bin/magento setup:db-schema:upgrade - Upgrade Magento schema in the database.
  27. bin/magento admin:user:list - Lists all admin users.
  28. bin/magento admin:user:delete --username="admin" - Delete an admin user by username.
  29. bin/magento admin:user:unlock admin - Unlock a locked admin user account.
  30. bin/magento catalog:images:resize - Resizes catalog images.
  31. bin/magento catalog:product:attributes:cleanup - Cleans up unused product attributes.
  32. bin/magento catalog:product:reindex - Reindex product catalog.
  33. bin/magento config:set currency/options/base USD - Set base currency to USD.
  34. bin/magento config:set currency/options/default USD - Set default currency to USD.
  35. bin/magento config:set currency/options/allow "USD,EUR" - Allow multiple currencies.
  36. bin/magento i18n:collect-phrases -o app/i18n/vendor_name/en_US.csv app/code/Vendor/Module - Collect phrases for translation.
  37. bin/magento i18n:pack app/i18n/vendor_name/en_US.csv en_US - Pack translation phrases.
  38. bin/magento i18n:uninstall en_US - Uninstall a language pack.
  39. bin/magento queue:consumers:start product_action_attribute.update - Start a queue consumer.
  40. bin/magento queue:consumers:list - List all queue consumers.
  41. bin/magento queue:consumers:stop product_action_attribute.update - Stop a queue consumer.
  42. bin/magento security:scan:run - Run Magento security scan.
  43. bin/magento security:scan:list - List available security scans.
  44. bin/magento theme:uninstall Magento/blank - Uninstall a theme.
  45. bin/magento theme:upgrade - Upgrade Magento themes.
  46. bin/magento theme:list - List installed themes.
  47. bin/magento cron:run - Run all Magento cron jobs.
  48. bin/magento cron:install - Install Magento cron jobs.
  49. bin/magento cron:remove - Remove Magento cron jobs.
  50. bin/magento queue:consumers:reset - Reset a specific consumer.
  51. bin/magento dev:source-theme:deploy - Deploy source theme files.
  52. bin/magento dev:css:clear - Clear CSS files.
  53. bin/magento dev:js:minify - Minify JavaScript files.
  54. bin/magento dev:css:minify - Minify CSS files.
  55. bin/magento dev:tests:run - Run unit tests.
  56. bin/magento dev:urn-catalog:generate app - Generate URN catalog for PHPStorm.
  57. bin/magento setup:perf:generate-fixtures - Generate test data.
  58. bin/magento catalog:product:export - Export catalog products.
  59. bin/magento catalog:product:import - Import products into the catalog.
  60. bin/magento setup:db:dump - Create a database dump.
  61. bin/magento setup:db:restore - Restore database from a dump.
  62. bin/magento sampledata:reset - Reset Magento sample data.
  63. bin/magento sampledata:remove - Remove Magento sample data.
  64. bin/magento catalog:category:reindex - Reindex category data.
  65. bin/magento catalog:product:reindex - Reindex product data.
  66. bin/magento setup:install --cleanup-database - Clean install Magento and remove previous database.
  67. bin/magento setup:upgrade --no-plugins - Run setup upgrade without plugins.
  68. bin/magento setup:upgrade --no-interaction - Run upgrade in non-interactive mode.
  69. bin/magento inventory:reservation:cleanup - Clean up inventory reservations.
  70. bin/magento inventory:reservation:list-inconsistencies - List inventory reservation issues.
  71. bin/magento inventory:reservation:create-compensations - Create inventory compensations.
  72. bin/magento catalog:price:update - Update product prices.
  73. bin/magento customer:hash:upgrade - Upgrade customer password hashes.
  74. bin/magento setup:backup --code - Create a backup of the code.
  75. bin/magento setup:backup --media - Create a media backup.
  76. bin/magento inventory:reservation:create-compensations - Create inventory compensations.
  77. bin/magento maintenance:enable - Enable maintenance mode.
  78. bin/magento config:import - Import config settings.
  79. bin/magento sales:order:export - Export sales orders.
  80. bin/magento sales:order:import - Import sales orders.
  81. bin/magento import:source:run - Run import source data.
  82. bin/magento export:source:run - Run export source data.
  83. bin/magento customer:import - Import customer data.
  84. bin/magento customer:export - Export customer data.
  85. bin/magento admin:user:delete --username="admin" - Delete an admin user.
  86. bin/magento customer:delete - Delete a customer.
  87. bin/magento inventory:reservation:calculate - Calculate inventory reservation.
  88. bin/magento theme:create - Create a new theme.
  89. bin/magento theme:duplicate - Duplicate a theme.
  90. bin/magento theme:import - Import a theme.
  91. bin/magento product:reprice - Reprice products.
  92. bin/magento vendor:reindex - Reindex vendor data.
  93. bin/magento vendor:update - Update vendor data.
  94. bin/magento integration:install - Install an integration.
  95. bin/magento integration:update - Update an integration.
  96. bin/magento theme:delete - Delete a theme.
  97. bin/magento dev:urn-catalog:generate --format simple - Generate simple URN catalog.
  98. bin/magento product:reprice --category=1
  • Reprice products by category.
  1. bin/magento report:clean - Clean reports.
  2. bin/magento report:export - Export reports.

This list covers an extensive range of Magento 2 commands, providing advanced options for managing configurations, backups, theming, product data, and integrations. Let me know if you need any further explanations for these commands!