Professional Documents
Culture Documents
Magento 2 Commands Document
Magento 2 Commands Document
com/blog/)
SEARCH
When you should run which commands
Search
in Magento 2?
FOLLOW ME
Prince Patel (https://mageprince.com/blog/author/secure_parth/) - October 25, 2019 -
Magento 2 (https://mageprince.com/blog/category/magento2/) - Follow
Like
1 Comment (https://mageprince.com/blog/when-you-should-run-which-commands-in-magento-
2/#disqus_thread)
I often see that many new Magento developer run setup upgrade command
every time when they changed something from js or HTML. MODULES ON MAGENTO
MARKETPLACE
In this article, I will discuss about which changes need which commands to Magento 2 - Product Attachment
reflect changes on the frontend or backend of Magento 2. (https://marketplace.magento.com/prince-
module-productattachment.html)
Magento 2 - Extra Fee
1) php bin/magento setup:upgrade
(https://marketplace.magento.com/prince-
magento2-extrafee.html)
Short Form: php bin/magento set:up Magento 2 - Extra Fee Pro
(https://marketplace.magento.com/prince-
You should run this command only on following senarios magento2-extrafeepro.html)
Magento 2 - FAQ
(https://marketplace.magento.com/prince-
When you made changes in the Setup script(InstallData, InstallSchema,
module-faq.html)
UpgradeData, UpgradeSchem) Magento 2 - Payment Fee
When you install a new module (https://marketplace.magento.com/prince-
When you change setup_version in module.xml magento2-paymentfee.html)
RECENT POSTS
Short Form: php bin/magento s:d:c
How to insert multiple records into a
If you made changes like add new dependency in __construct(), changes table without a model?
in di.xml , Add new controller… (https://mageprince.com/blog/how-to-
insert-multiple-records-into-a-table-
without-a-model/)
If you are in developer mode you can simply delete changed files
from var/generation folder for Magento 2.2.x version and /generated folder How to Get Product Salable Quantity
By Stock Id in Magento 2
for Magento 2.3.x (https://mageprince.com/blog/how-to-
get-product-salable-quantity-by-
4) php bin/magento cache:flush stock-id-in-magento-2/)
store. Clean after adding new or changing existing integrations A QUICK WAY to print log or data in
8. Integrations API Configuration: Compiled integration APIs configuration any PHP file in Magento 2
(https://mageprince.com/blog/a-
of the Store’s Integrations quick-way-to-print-log-or-data-in-
9. Page Cache: This cache links the HTML pages so it is necessary to clean any-php-file-in-magento-2/)
Module
We related commands:
use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
OK
See all modules Status: php bin/magento module:status
Enable module: php bin/magento module:enable Namespace_Module
Disable module: php bin/magento module:disable Namespace_Module
Uninstall Module: php bin/magento module:uninstall Namespace_Module
Other Commands:
%20Magento%202%3F&url=https%3A%2F%2Fmageprince.com%2Fblog%2Fwhen-
l)
ct+changes+on+the+frontend%26hellip%3B&source=https://mageprince.com/blog/)
(whatsapp://send?text=https%3A%2F%2Fmageprince.com%2Fblog%2Fwhen-
you-should-run-which-commands-in-magento-2%2F)
(viber://forward?
text=https%3A%2F%2Fmageprince.com%2Fblog%2Fwhen-
you-should-run-which-commands-in-magento-2%2F)
ww.tumblr.com/widgets/share/tool?
Url=https%3A%2F%2Fmageprince.com%2Fblog%2Fwhen-you-should-run-which-
-in-magento-2%2F)
How to insert
multiple
records into a
(https://mageprin
table without a
ce.com/blog/crea (https://mageprin
model?
te-short-forms-of- ce.com/blog/work (https://magepr
magento-2- -with-html-and-js- ince.com/blog/
commands-in- in-magento-2/) how-to-insert-
multiple-
linux/)
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Work with records-into-a-
HTML and JS OK table-without-
in Magento 2 a-model/)
(https://mageprin Create short (https://magepr January 24, 2022
⚠ MagePrince requires you to verify your email address before posting. Send verification email to ×
fraz_intel@rocketmail.com
Sort by Best ⥅
(https://github.com/mageprince) (http://www.copyscape.com/)
(https://www.facebook.com/themageprince/)
(https://www.instagram.com/mageprince/)
(https://in.linkedin.com/in/princepatel)
(https://twitter.com/_mageprince)
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
OK