Lenra Docs
Register on Lenra
  • Home
  • Getting started
    Open/Close
  • Guides
    Open/Close
  • Features
    Open/Close
  • References
    Open/Close
  • Contribute

    new

    This subcommand creates a new Lenra app project from a template. The target directory must not exist.

    $ lenra new --help
    lenra-new 
    Create a new Lenra app project from a template
    
    USAGE:
        lenra new [OPTIONS] [TOPICS]...
    
    ARGS:
        <TOPICS>...    The project template topics from which your project will be created. For
                       example, defining `rust` look for the next API endpoint:
                       https://api.github.com/search/repositories?q=topic:lenra+topic:template+topic:rust&sort=stargazers
                       You can find all the templates at this url:
                       https://github.com/search?q=topic%3Alenra+topic%3Atemplate&sort=stargazers&type=repositories
                       You also can set the template project full url to use custom ones
    
    OPTIONS:
            --config <CONFIG>    The app configuration file [default: lenra.yml]
            --expose <EXPOSE>    Exposes services ports [possible values: app, devtool, postgres, mongo]
        -h, --help               Print help information
        -p, --path <PATH>        The new project path [default: .]
        -v, --verbose            Run the commands as verbose