Magento 2 Shortcut for performing command line tasks on Windows
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.
1 |
del /s /q "E:\wamp\www\magento2\var\cache\*.*" del /s /q "E:\wamp\www\magento2\var\page_cache\*.*" |
- 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 (