Magento 2 most used commands


Introduction

Managing a Magento store often requires using SSH commands to perform various tasks efficiently. Here are the most frequently used Magento SSH commands that can help streamline your workflow.

Commonly Used Magento SSH Commands

1. Upgrade Setup

To upgrade the Magento setup, use the following command:

bin/magento setup:upgrade

2. Compile Dependency Injection

Compile the dependency injection configuration with this command:

bin/magento setup:di:compile

3. Set Developer Mode

Switch to developer mode using the following command:

bin/magento deploy:mode:set developer

4. Set Production Mode

Switch to production mode with this command:

bin/magento deploy:mode:set production

5. Deploy Static Content

Deploy static content for all languages using:

bin/magento setup:static-content:deploy

6. Deploy Static Content for Specific Language

Deploy static content specifically for British English with this command:

bin/magento setup:static-content:deploy en_GB

7. Flush Cache

Flush the Magento cache using the following command:

bin/magento cache:flush

Conclusion

These SSH commands are essential for maintaining and managing your Magento store efficiently. Regularly using these commands can help keep your store running smoothly and ensure that updates and changes are applied correctly.

Further Assistance

If you have any questions or need more information about these commands, feel free to leave a comment below or reach out for support.

Leave a Reply

Your email address will not be published. Required fields are marked *