Magerun Magento command line tool - As we ( https://store.webkul.com ) are proud to have more than 500+ plugins and 25000+ customers but to manage such great no of modules and projects we are always trying to setup best magento environment in the world , so today we will discuss another great tool for the magento developer “magerun” . using this tool you can manage almost everything from the command line , mainly those steps or process which are consuming most of your development time . magerun really shorten those setup time and forces you to focus only on development and application programming .
Installation - Installation is pretty easy as you can download it from github using wget or curl you may find details at github page for it .
wget https://raw.githubusercontent.com/netz98/n98-magerun/master/n98-magerun.phar
or using curl
curl -o n98-magerun.phar https://raw.githubusercontent.com/netz98/n98-magerun/master/n98-magerun.phar
after that you will get a phar file you need to change the permission of the files and move in to the bin as we are using centos so after changing the permission we move the files in to usr/local/bin
chmod +x ./n98-magerun.phar sudo cp ./n98-magerun.phar /usr/local/bin/
thats it now installation and setup part is done .
How to use magerun - Its very easy to use it like any linux command you need to types
n98-magerun.phar with options or command. suppose that you want to install magento using magerun then its very easy follow the command using
n98-magerun.phar install
and you will see that how easy is to install magento
you can choose what version of magento you want to install with sample data or not
you need to setup your details for database and url . you may get the complete command reference at https://github.com/netz98/n98-magerun/wiki/Command-Reference
like clearing cache or getting the information about your magento system