---
title: serve
description: Continuously serve a documentation folder at http://localhost:3000. When running docs-builder serve, the documentation is not built in full. Each page...
url: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/2369/cli/docset/serve
---

# serve
Continuously serve a documentation folder at http://localhost:3000.
When running `docs-builder serve`, the documentation is not built in full.
Each page will be build on the fly continuously when requested in the browser.
The `serve` command is also `live reload` enabled so that file systems changes will be reflected without having to restart the server.
This includes changes to the documentation files, the navigation, or the configuration files.

## Usage

```
docs-builder serve [options...] [-h|--help] [--version]
```


## Options

<definitions>
  <definition term="-p|--path <string>">
    Path to serve the documentation. Defaults to the`{pwd}/docs` folder (optional)
  </definition>
  <definition term="--port <int>">
    Port to serve the documentation. (Default:   3000)
  </definition>
</definitions>