Nuxt/docs/content/1.docs/3.api/5.commands/generate.md

17 lines
623 B
Markdown
Raw Normal View History

---
title: "nuxi generate"
description: Pre-renders every route of the application and stores the result in plain HTML files.
---
# `nuxi generate`
```{bash}
npx nuxi generate [rootDir]
```
The `generate` command pre-renders every route of your application and stores the result in plain HTML files that you can deploy on any static hosting services. The command triggers the `nuxi build` command with the `prerender` argument set to `true`
Option | Default | Description
-------------------------|-----------------|------------------
`rootDir` | `.` | The root directory of the application to generate