---
title: "Command Line Interface"
weight: 1
---
# Command Line Interface

{% subtitle %}

The Limedocs <abbr title="Command Line Interface">CLI</abbr> expose several commands to help you managing your site

{% endsubtitle %}

## Commands

### build

Build site from `<site-dir>`.

```shell
$ limedocs build <site-dir>
$ limedocs build --help # more help
```

### config

Print config and exit.

```shell
$ limedocs config <site-dir>
$ limedocs config --help
```

### create page

Create a new page at a given path using archetypes if present.

```shell
$ limedocs create page <path>
$ limedocs create page --help
```

### create site

Create a new site at the given path from a base starter.

```shell
$ limedocs create site [site-dir]
$ limedocs create site --help
```

### create theme

Create a new theme at the given path from a base skelton.

```shell
$ limedocs create theme <theme-dir>
$ limedocs create theme --help
```

### dev

Watch continuoulsy, build, serve and live-reload the documentation in your browser.
This command is also aliased to `live`. Use it for **development** purpose only.


```shell
$ limedocs dev <site-dir>
$ limedocs dev --help
```


### serve

Serve your website in a production or staging purpose. This will setup a express server with configurable caching behaviour.

```shell
$ limedocs serve <site-dir>
$ limedocs serve --help
```


