Documentation Index
Fetch the complete documentation index at: https://mintlify.com/queaxtra/zvelte/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Zvelte provides a simple command-line interface for creating new SvelteKit projects from a pre-configured template.Command Syntax
Available Commands
create
Creates a new SvelteKit project using a predefined template.The directory for the new project. Use
. to initialize in the current directory.Syntax
Behavior
Thecreate command performs the following operations:
- Validates the target directory for security (prevents path traversal)
- Clones the sveltekit-shadcn-template repository
- Removes the
.gitdirectory to start fresh - Updates
package.jsonwith project-specific details:- Sets
nameto the project directory name - Clears
descriptionto an empty string - Sets
versionto “0.0.1”
- Sets
- Installs dependencies (if
--installflag is used)
Current Directory Behavior
When you use. as the project directory, Zvelte checks if the current directory is empty:
- Empty directory: Clones the template directly
- Non-empty directory: Clones to a temporary directory and merges files
- Aborts if conflicting files are detected
- Only copies files that don’t already exist
Examples
Create a new project in a new directory:—help
Displays the help message with usage information.Shows the complete usage message including commands, arguments, options, and examples.
Syntax
Output
The help command displays:Next Steps
After creating your project:-
Navigate into your project directory:
-
If you didn’t use
--install, install dependencies manually: -
Start the development server: