Usage
$ 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:
$ vlt create react-app my-appWill 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
$ vlt create next-app my-appThis fetches and runs create-next-app my-app. You can also pass
options through:
$ vlt create next-app my-app --typescript --tailwind --eslint$ vlt create next-app my-app --use-pnpm # or any create-next-app flagCreate a React App
$ vlt create react-app my-appThis executes create-react-app my-app
Create a Vite Project
$ vlt create vite my-projectThis executes create-vite my-project
Create a SvelteKit Project
$ vlt create svelte@latest my-appThis executes create-svelte@latest my-app
Use a Scoped Template
$ vlt create @scope/template my-appThis executes @scope/create-template my-app
Skip Confirmation Prompts
Use --yes to automatically accept the install prompt:
$ vlt create next-app my-app --yesOptions
--allow-scripts <query>
Filter which packages are allowed to run lifecycle scripts using DSS query syntax.
$ vlt create vite my-app --allow-scripts='create-*'