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
| Flag | Environment | Description |
|---|---|---|
0 | Prod | Production environment. Error messages are hidden, caching systems run at full capacity. (APP_ENV = 0) |
1 | Debug | Development 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.