Skip to content

Karee CLI usage

@LeCode edited this page Mar 7, 2021 · 3 revisions

Karee Usage

karee create

This is a very simple way to generate you application, by answering to some question.

create Project screenshoot

karee build

The build command help you to build a release of your application.

karee generate

Karee helps you to generate both screens and controllers.

To use generate command you should keep in the back of your mind that

  1. Karee has its own files and directories organization
  2. Karee manages screen by her names
  3. Karee manages file name using Low Camel Case notation

Generate a screen

Screen generation need 3 options and an argument

  • The type of object ( --screen or -s ) to generate with no parameter
  • The name of screen we want to generate with a parameter
  • The path in which we would to put screen in with a parameter
  • The screen class name
    karee generate --screen --path screen_path --name screen_name className

Generate a controller

In case of Controller generation, we don't need to name our controllers

  • The type of object ( --controller or -c ) to generate with no parameter
  • The path in which we would to put screen in with a parameter
  • The controller class name

karee source

As karee is based on annotations, it's necessary to generate source files to avoid slowness during program execution

command is

    karee source

karee run

to run you project in dev mode you can run this command as alternative to flutter run, because it will first generate additional files before run your flutter application

    karee run

Let's start with Karee Lib

Clone this wiki locally