--- icon: i-lucide-terminal --- # CLI > Nitro ships with a `nitro` command to develop, build, preview, and deploy your project. When `nitro` is installed as a project dependency, run it through your package manager (`npx nitro`, `pnpm nitro`, `yarn nitro`, `bun nitro`, ...) or add it to your `package.json` scripts: ```json [package.json] { "scripts": { "dev": "nitro dev", "build": "nitro build", "preview": "nitro preview" } } ``` Then use `npm run dev`, `pnpm dev`, etc. as shown in the [quick start](/docs/quick-start) guide. ::tip Every command supports `--help` for an overview of its arguments (for example `nitro build --help`), and `nitro --version` prints the installed Nitro version. :: All commands except `nitro create` accept a project root directory, either as a positional argument (`nitro build ./my-app`) or with the `--dir` flag (preferred). It defaults to the current directory. `nitro fetch` only accepts `--dir`, as its positional argument is the URL. ::note Using Nitro as a [Vite plugin](/docs/vite)? Prefer the Vite CLI (`vite dev`, `vite build`, `vite preview`); the Nitro dev server does not support the Vite builder. :: ## `nitro create` Create a new Nitro project from a template. Nitro ships the templates itself, so no download is needed, and the `nitro` dependency of the new project is set to the version that created it. ```sh npx nitro create [dir] [--template