Magento 2 Shortcut for performing command line tasks on Windows

- Magento 2

Magento 2 Development

To create Magento 2 shortcuts for performing command line tasks on Windows, perform the following tasks:

  •  In your Magento 2 root dir, create a batch file via the .bat extension.
  • Right click on the file, open it in a notepad, and add the following commands.

  • Now, you have to set file path as per your folder location. Save the batch file and create its shortcuts on a desktop for fast access. You can also assign shortcut key to these shortcuts.
  • Alternatively, you can rely on bin/magento cache:flush.

Source (Magento Stackexchange Question) (Praful Rajput) (KAndy)

More tips from the Cookbook