mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
39 lines
853 B
Markdown
39 lines
853 B
Markdown
---
|
|
title: 'nuxi cleanup'
|
|
description: 'Remove common generated Nuxt files and caches.'
|
|
links:
|
|
- label: Source
|
|
icon: i-simple-icons-github
|
|
to: https://github.com/nuxt/cli/blob/main/src/commands/cleanup.ts
|
|
size: xs
|
|
---
|
|
|
|
<!--cleanup-cmd-->
|
|
```bash [Terminal]
|
|
npx nuxi cleanup [ROOTDIR] [--cwd=<directory>]
|
|
```
|
|
<!--/cleanup-cmd-->
|
|
|
|
The `cleanup` command removes common generated Nuxt files and caches, including:
|
|
|
|
- `.nuxt`
|
|
- `.output`
|
|
- `node_modules/.vite`
|
|
- `node_modules/.cache`
|
|
|
|
## Arguments
|
|
|
|
<!--cleanup-args-->
|
|
Argument | Description
|
|
--- | ---
|
|
`ROOTDIR="."` | Specifies the working directory (default: `.`)
|
|
<!--/cleanup-args-->
|
|
|
|
## Options
|
|
|
|
<!--cleanup-opts-->
|
|
Option | Default | Description
|
|
--- | --- | ---
|
|
`--cwd=<directory>` | | Specify the working directory, this takes precedence over ROOTDIR (default: `.`)
|
|
<!--/cleanup-opts-->
|