You will notice a levis
file within the installation directory. This is a PHP script that allows the execution of both, CLI commands you develop and a few system CLI commands for things such as automated class generation. Below explains all system CLI commands available:
Although you're welcome to create all these PHP classes manually, to help aid in your development you may have the following classes automatically generated:
Command | Description |
---|---|
create api | REST API Endpoint |
create cli | Concole command. |
create http-controller | HTTP Controller / Middleware. |
create model | Database model. |
create test | Unit test class. |
create view | View |
There are also a couple commands for database communication, listed below:
Command | Description |
---|---|
sql | Execute SQL commands against database or connect to database prompt. |
dump-db | Dump SQL database to a file. |