As you know PhpStorm is one of the best IDEs for coding.
Being fast is one of the important things that any Magento developer should consider. To this purpose I wanna show you how we can run Magento commands by phpstorm without writing the command in cli.
Flow me step by step :
1- add new phpstorm configuration
![](https://gh-darvishani.com/wp-content/uploads/2022/03/add-config.png)
2-click on new config
![](https://gh-darvishani.com/wp-content/uploads/2022/03/add-new-1024x514.png)
3- select php script
![](https://gh-darvishani.com/wp-content/uploads/2022/03/php-script.png)
4-find bin/magento on the Magento root directory
![](https://gh-darvishani.com/wp-content/uploads/2022/03/choose-php-script-1024x698.png)
5- select php version
![](https://gh-darvishani.com/wp-content/uploads/2022/03/choose-php-version.png)
6- define the Magento command
![](https://gh-darvishani.com/wp-content/uploads/2022/03/choose-command-args-1-1024x690.png)
save all the change.
7- run command
![](https://gh-darvishani.com/wp-content/uploads/2022/03/run-php-script-1024x523.png)
Simply and by repairing these steps you can add other Magento commands.