<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=How_to_Change_Magento_2_mode</id>
		<title>How to Change Magento 2 mode - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=How_to_Change_Magento_2_mode"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_Change_Magento_2_mode&amp;action=history"/>
		<updated>2026-06-04T05:14:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_Change_Magento_2_mode&amp;diff=966&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==How to Change Magento 2 mode (Default, Production, Development)==  ===Display the Current Mode===  The easiest way to do that is to run this command as the Magento file syst...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_Change_Magento_2_mode&amp;diff=966&amp;oldid=prev"/>
				<updated>2018-11-02T19:17:25Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==How to Change Magento 2 mode (Default, Production, Development)==  ===Display the Current Mode===  The easiest way to do that is to run this command as the Magento file syst...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==How to Change Magento 2 mode (Default, Production, Development)==&lt;br /&gt;
&lt;br /&gt;
===Display the Current Mode===&lt;br /&gt;
&lt;br /&gt;
The easiest way to do that is to run this command as the Magento file system owner. If you have shared hosting, this is the user your provider gives you to log in to the server. If you have a private server, it’s typically a local user account on the Magento server.&lt;br /&gt;
&lt;br /&gt;
  bin/magento deploy:mode:show&lt;br /&gt;
&lt;br /&gt;
You then get a message letting you the current mode&lt;br /&gt;
&lt;br /&gt;
  Current application mode: developer.&lt;br /&gt;
&lt;br /&gt;
===Magento 2 Change Modes ===&lt;br /&gt;
&lt;br /&gt;
Below is the basic syntax for changing the Magento 2 mode&lt;br /&gt;
&lt;br /&gt;
  bin/magento deploy:mode:set {mode} [-s|--skip-compilation]&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
'''{mode}''' is required; it can be either developer or production&lt;br /&gt;
&lt;br /&gt;
'''--skip-compilation''' is an optional parameter you can use to skip code compilation when you change to production mode.&lt;br /&gt;
&lt;br /&gt;
With that being stated, lets show an example of changing your site to developer and production&lt;br /&gt;
&lt;br /&gt;
====Change to production mode====&lt;br /&gt;
&lt;br /&gt;
  bin/magento deploy:mode:set production&lt;br /&gt;
&lt;br /&gt;
You then see status as it switches the site over to production, example:&lt;br /&gt;
&lt;br /&gt;
  Enabled maintenance mode&lt;br /&gt;
  Requested languages: en_US&lt;br /&gt;
  === frontend -&amp;gt; Magento/luma -&amp;gt; en_US ===&lt;br /&gt;
  ... more ...&lt;br /&gt;
  Successful: 1884 files; errors: 0&lt;br /&gt;
  ---&lt;br /&gt;
  &lt;br /&gt;
  === frontend -&amp;gt; Magento/blank -&amp;gt; en_US ===&lt;br /&gt;
  ... more ...&lt;br /&gt;
  Successful: 1828 files; errors: 0&lt;br /&gt;
  ---&lt;br /&gt;
  &lt;br /&gt;
  === adminhtml -&amp;gt; Magento/backend -&amp;gt; en_US ===&lt;br /&gt;
  ... more ...&lt;br /&gt;
  ---&lt;br /&gt;
  &lt;br /&gt;
  === Minify templates ===&lt;br /&gt;
  ... more ...&lt;br /&gt;
  Successful: 897 files modified&lt;br /&gt;
  ---&lt;br /&gt;
  &lt;br /&gt;
  New version of deployed files: 1440461332&lt;br /&gt;
  Static content deployment complete Gathering css/styles-m.less sources. Successfully processed LESS and/or   &amp;lt;span term-uuid=&amp;quot;45f1f76d-91cd-4789-a8b5-1e3f321a6280&amp;quot; class=&amp;quot;glossary-term&amp;quot; data-toggle=&amp;quot;popover&amp;quot;&amp;gt;Sass&amp;lt;/span&amp;gt;  files   &amp;lt;span term- &lt;br /&gt;
  uuid=&amp;quot;6c5cb4e9-9197-46f2-ba79-6147d9bfe66d&amp;quot; class=&amp;quot;glossary-term&amp;quot; data-toggle=&amp;quot;popover&amp;quot;&amp;gt;CSS&amp;lt;/span&amp;gt;  deployment complete Generated classes:&lt;br /&gt;
      Magento\Sales\Api\Data\CreditmemoCommentInterfacePersistor&lt;br /&gt;
      Magento\Sales\Api\Data\CreditmemoCommentInterfaceFactory&lt;br /&gt;
      Magento\Sales\Api\Data\CreditmemoCommentSearchResultInterfaceFactory&lt;br /&gt;
      Magento\Sales\Api\Data\CreditmemoComment\Repository&lt;br /&gt;
      Magento\Sales\Api\Data\CreditmemoItemInterfacePersistor&lt;br /&gt;
      ... more ...&lt;br /&gt;
  Compilation complete&lt;br /&gt;
  Disabled maintenance mode&lt;br /&gt;
  Enabled production mode.&lt;br /&gt;
&lt;br /&gt;
====Change to developer mode====&lt;br /&gt;
&lt;br /&gt;
When you change from production to developer mode, you should clear generated classes and Object Manager entities like proxies to prevent unexpected errors. After doing so, you can change modes. Use the following steps:&lt;br /&gt;
&lt;br /&gt;
If you’re changing from production mode to developer mode, delete the contents of the var/generation and var/di directories:&lt;br /&gt;
&lt;br /&gt;
  rm -rf &amp;lt;your Magento install dir&amp;gt;/var/di/* &amp;lt;your Magento install dir&amp;gt;/var/generation/*&lt;br /&gt;
Set the mode:&lt;br /&gt;
&lt;br /&gt;
  bin/magento deploy:mode:set developer&lt;br /&gt;
The following message displays:&lt;br /&gt;
&lt;br /&gt;
  Switched to developer mode.&lt;br /&gt;
&lt;br /&gt;
===Special Note:===&lt;br /&gt;
Once you switch from default mode you can not switch back to it, it has be production or developer&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>