artiframe mode

The artiframe mode command allows you to quickly switch your project's execution mode (Development / Production). This command updates the APP_ENV constant located inside the config/app-version.php file.

Usage

$ artiframe mode [0|1]

Parameters

FlagEnvironmentDescription
0ProdProduction environment. Error messages are hidden, caching systems run at full capacity. (APP_ENV = 0)
1DebugDevelopment environment. All PHP errors, DB query logs, and debugging tools become active. (APP_ENV = 1)

Example

$ artiframe mode 1
✅ Application mode successfully changed from Prod -> Debug.
Tip: After switching environments, do not forget to flush the caches via the artiframe optimize command if it was active.