Cache Command
Compiles routes and configs.
php maze cache
Clear Command
Deletes cached routes and configs.
php maze clear
Routes Command
Lists all routes.
php maze routes
Config Command
Show config.
php maze config
Note
If Maze is installed as a dependency, you need to link it to your autoloader.
For example, create a CLI file in the root of your project (for example
router
) and load your autoloader before including Maze:
require __DIR__ . "/cache/fusion/Autoloader.php";
$autoloader = Autoloader::init();
require __DIR__ . "/dependencies/valvoid/maze/maze";
You can then run commands via your CLI file:
php router cache