Contributors Forks Stargazers Issues MIT License

Lenra cli

The Lenra's command line interface.

Report Bug ยท Request Feature

Getting Started

Prerequisites

To build and run the Lenra elements that handle your app, the Lenra CLI needs Docker and Docker Compose.

You can also install the Docker buildx command to use the Buildkit optimization given by Dofigen.

Install the Lenra CLI using one of the next possibilities.

Download the binary

You can download the binary from the release page and add it to your path environment variable.

Cargo install

First install Cargo, the Rust package manager: https://doc.rust-lang.org/cargo/getting-started/installation.html

Then use the next command to install the Lenra's cli:

bash cargo install lenra_cli

Build it from sources

First install Cargo, the Rust package manager: https://doc.rust-lang.org/cargo/getting-started/installation.html

Then clone this repository and install it with Cargo:

bash git clone https://github.com/lenra-io/lenra_cli.git cargo install --path .

(back to top)

How to use it

Use the help options to understand how to use it:

```bash $ lenra --help lenra_cli 0.0.0 The Lenra command line interface

USAGE: lenra

OPTIONS: -h, --help Print help information -V, --version Print version information

SUBCOMMANDS: build Build your app in release mode help Print this message or the help of the given subcommand(s) logs View output from the containers new Create a new Lenra app project start Start your app previously built with the build command stop Stop your app previously started with the start command ```

Subcommands

This tools contains many subcommands to help you doing what you need.

new

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

```bash $ lenra new --help lenra-new Create a new Lenra app project

USAGE: lenra new