> For the complete documentation index, see [llms.txt](https://quinck.gitbook.io/multijet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://quinck.gitbook.io/multijet/getting-started/multijet-cli.md).

# Multijet CLI

The Multijet CLI can be very useful not only to create new projects but also to quickly **generate code for existing projects**.

## Create a new microservice

To generate a new sample microservice, open a terminal in the root of your project and run the following command:

```bash
npx multijet new-microservice <service-name>
```

This will generate a new hello-world microservice with the given name in the [microservices workspace](/multijet/getting-started/core-concepts.md#microservices). The command will also install all the basic dependencies needed by the service.

Once the script finishes you can test if everything went well by **building your project**:

```bash
npm run build
```

If there are no errors, you are ready to go :tada:

## Create a new lib

To generate a new sample lib the process is the same as of creating a microservice. In the root of your project run the following command:

```bash
npx multijet new-lib <lib-name>
```

This will generate a new lib with the given name containing a simple hello-world function  in the [libs workspace](/multijet/getting-started/core-concepts.md#libs). The command will also install all the basic dependencies needed by the lib.
