vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Overview
  • bugs
  • build
  • cache
  • config
  • create
  • docs
  • exec-cache
  • exec-local
  • exec
  • help
  • init
  • install
  • list
  • login
  • logout
  • pack
  • ping
  • pkg
  • publish
  • query
  • registry
  • repo
  • run-exec
  • run
  • setup
  • token
  • uninstall
  • version
  • whoami
  • Usage
  • Description
  • Examples
  • Start a Next.js Project
  • Create a React App
  • Create a Vite Project
  • Create a SvelteKit Project
  • Use a Scoped Template
  • Skip Confirmation Prompts
  • Options
  • --allow-scripts <query>
  • See Also
  1. Client
  2. /
  3. Commands
  4. /
  5. create

vlt create

Usage

Terminal
$ vlt create <initializer> [args...]

Initialize a new project from a template package.

Description

The vlt create command works like npm create and bun create, automatically prepending "create-" to the package name and executing it.

For example, running:

Terminal
$ vlt create react-app my-app

Will fetch and execute the create-react-app package with the arguments my-app.

If a satisfying instance of the create package exists in the local node_modules folder, then that will be used. Otherwise, vlt will install the package to its XDG data directory without modifying your local dependencies.

Examples

Start a Next.js Project

Terminal
$ vlt create next-app my-app

This fetches and runs create-next-app my-app. You can also pass options through:

Terminal
$ vlt create next-app my-app --typescript --tailwind --eslint
$ vlt create next-app my-app --use-pnpm  # or any create-next-app flag

Create a React App

Terminal
$ vlt create react-app my-app

This executes create-react-app my-app

Create a Vite Project

Terminal
$ vlt create vite my-project

This executes create-vite my-project

Create a SvelteKit Project

Terminal
$ vlt create svelte@latest my-app

This executes create-svelte@latest my-app

Use a Scoped Template

Terminal
$ vlt create @scope/template my-app

This executes @scope/create-template my-app

Skip Confirmation Prompts

Use --yes to automatically accept the install prompt:

Terminal
$ vlt create next-app my-app --yes

Options

--allow-scripts <query>

Filter which packages are allowed to run lifecycle scripts using DSS query syntax.

Terminal
$ vlt create vite my-app --allow-scripts='create-*'

See Also

  • vlt exec - Execute a command from a package
  • vlt init - Initialize a new package.json

PreviousconfigNextdocs

On this page

  • Usage
  • Description
  • Examples
  • Start a Next.js Project
  • Create a React App
  • Create a Vite Project
  • Create a SvelteKit Project
  • Use a Scoped Template
  • Skip Confirmation Prompts
  • Options
  • --allow-scripts <query>
  • See Also
Edit this page

Deploy your package on vlt.io

Publish scoped and private packages, manage organizations and access, and give every developer and CI environment a consistent source for public and private JavaScript dependencies.

Publish now