docs(api): add nuxi prepare command (#7349)

This commit is contained in:
Julien Huang 2022-09-08 16:16:35 +02:00 committed by GitHub
parent a418895595
commit 4660cc5918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,11 @@
# `nuxi prepare`
```{bash}
npx nuxi prepare [rootDir]
```
The `prepare` command creates a `.nuxt` directory in your application and generates types. This can be useful in a CI environment or as a `postinstall` command in your `package.json`.
Option | Default | Description
-------------------------|-----------------|------------------
`rootDir` | `.` | The root directory of the application to prepare.