oryn_cli 1.0.1 copy "oryn_cli: ^1.0.1" to clipboard
oryn_cli: ^1.0.1 copied to clipboard

Command Line Interface (CLI) for Oryn (a fast, light-weight web framework in dart)

Oryn Cli #

Simple Command Line Interface (CLI) for Oryn framework.

Installation #

You may activate Oryn CLI by using the following command in your terminal:

pub global activate oryn_cli

Usage #

Create New Project #

To create a new Lucifer project, you may use the following Oryn command.

oryn create <project>

For example, you may use oryn create command like so:

oryn create blog

It will create a new Lucifer project named blog in the blog directory.

Run Project (With Hot Reload) #

To run your project, you may use the following command in the root project directory:

oryn run

Build Executable #

To compile your app and build an executable, you may use:

oryn build

It will generate the executable file, ready to be sent to production server, in your root project directory.

Generate Controller #

To generate a controller in your Oryn project, you may use:

oryn c <controller>

For example, you may use oryn c command like so:

oryn c user

It will create a user_controller.dart file with class UserController in the lib/controller directory.

Generate Repository #

To generate a repository in your Lucifer project, you may use:

oryn r <repository>

For example, you may use oryn r command like so:

oryn r user

It will create a user_repository.dart file with class UserRepository in the lib/repository directory.

Create Custom Middleware #

You may use the following command to generate a new custom middleware for your Lucifer project:

oryn m <middleware>

For example, you may use oryn m command like so:

oryn m auth

It will create a auth.dart file containing an auth function to define your custom middleware in the lib/middleware directory.

0
likes
130
points
109
downloads

Publisher

unverified uploader

Weekly Downloads

Command Line Interface (CLI) for Oryn (a fast, light-weight web framework in dart)

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

path, pub_api_client, watcher

More

Packages that depend on oryn_cli