How To Use More Than One Command In Single Line Magento 2?

How to use more than one command in single line Magento 2

We can use more than one command at a time in magento 2 by using “&&” sign in between the commands.

For Example:

If we have to run setup upgrade and deploy static content in SSH. Instead of running two commands separately, we can run it simultaneously.

By hitting php bin/magento setup:upgrade && php bin/magento setup:static-content:deploy  –f

If you want to run cache flush too

Then hit php bin/magento setup:upgrade && php bin/magento setup:static-content:deploy  –f && php bin/magento cache:flush

So you can run more than one command in one go, just add “&&” in between the commands.

Please contact us at manish@bay20.com or call us at +91-8800519180 for any support related to Magento 2. You can also visit the Magento2 development page to check the services we offer.