> This page is for Docs.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## Local library docs generation

api-reference, docs.yml

You can now generate [library documentation](/learn/docs/api-references/library-reference) from local source code using the `--local` flag. Instead of pushing to a remote repository and parsing on Fern's servers, `fern docs md generate --local` parses the source locally. This doesn't require you to be logged in to Fern.

To use local generation, set your library's input to a `path` instead of a `git` URL:

**`docs.yml`**

```yaml docs.yml
libraries:
  plant-core:
    input:
      path: ../plant-core-cpp
    output:
      path: ./static/plant-core-docs
    lang: cpp
```

```bash
fern docs md generate --local
```

Read the docs