Nuxt/docs/3.api/4.commands/init.md
Sébastien Chopin f26a801775
docs: update to new website (#23743)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-10-18 12:59:43 +02:00

1.2 KiB

title description links
nuxi init The init command initializes a fresh Nuxt project.
label icon to size
Source i-simple-icons-github https://github.com/nuxt/cli/blob/main/src/commands/init.ts xs
npx nuxi init|create [--verbose|-v] [--template,-t] [dir]

The init command initializes a fresh Nuxt project using unjs/giget.

Options

Option Default Description
--template, -t v3 Specify template name or git repository to use as a template. Format is gh:org/name to use a custom github template.
--force false Force clone to any existing directory.
--offline false Do not attempt to download from github and only use local cache.
--prefer-offline false Try local cache first to download templates.
--shell false Open shell in cloned directory (experimental).

Environment variables