Simple Command Line Interface (CLI) for Lucifer framework.
You may activate Lucy CLI by using the following command in your terminal:
pub global activate lucy
To create a new Lucifer project, you may use the following Lucy command.
l create <project>
For example, you may use l create
command like so:
l create desire
It will create a new Lucifer project named desire in the desire
directory.
To run your project, you may use the following command in the root project directory:
l run
To compile your app and build an executable, you may use:
l build
It will generate the executable file, ready to be sent to production server, in your root project directory.
To generate a controller in your Lucifer project, you may use:
l c <controller>
For example, you may use l c
command like so:
l c user
It will create a user_controller.dart
file with class UserController
in the lib/controller
directory.
To generate a repository in your Lucifer project, you may use:
l r <repository>
For example, you may use l r
command like so:
l r user
It will create a user_repository.dart
file with class UserRepository
in the lib/repository
directory.
You may use the following command to generate a new custom middleware for your Lucifer project:
l m <middleware>
For example, you may use l m
command like so:
l m auth
It will create a auth.dart
file containing an auth
function to define your custom middleware in the lib/middleware
directory.