How to disable Magento 2 Compiler from command?

It is simple to disable Compiler in your Magento 2. We will show you command to do this.

You need to check the current compilation status:

$ php -f shell/compiler.php -- state

Compiler Status:        Disabled

Compilation State:       Compiled

Collected Files Count:   6959

Compiled Scopes Count:   4

Use command below to disable Compiler:

php -f shell/compiler.php -- disableCompiler include path disabled

Use following command to clear current Magento compilation:

php -f shell/compiler.php -- clearCompilation successfully cleared

Beside, you can apply the way below:

Admin Interfaces> System> Tools> Compilation> Disable button

Hope you guy successful!