Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.06 KB

index.md

File metadata and controls

29 lines (18 loc) · 1.06 KB

levis CLI Commands

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:

Code Creation

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

Database

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.