Skip to content

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

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

Use a Scoped Template

Terminal
$ vlt create @scope/template my-app

This executes @scope/create-template my-app

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