Usage Guide
Scaffolding a project
Section titled “Scaffolding a project”-
Start the wizard
Section titled “Start the wizard”Terminal window npm create xtarter-app@latestTerminal window pnpm create xtarter-app@latestTerminal window yarn create xtarter-appTerminal window bun create xtarter-app@latest -
Enter a project name
Section titled “Enter a project name”Names allow letters, numbers, hyphens, and underscores, up to 214 characters. You can pass the name as a positional argument instead:
Terminal window npm create xtarter-app@latest -- my-appTerminal window pnpm create xtarter-app@latest my-appTerminal window yarn create xtarter-app my-appTerminal window bun create xtarter-app@latest my-app -
Pick a template
Section titled “Pick a template”The picker lists the five templates:
next-chakra,next-tailwind,vite-chakra,vite-tailwind, andvite-hero. See Templates for details, or skip the prompt with--template/-t:Terminal window npm create xtarter-app@latest -- my-app --template vite-tailwindTerminal window pnpm create xtarter-app@latest my-app --template vite-tailwindTerminal window yarn create xtarter-app my-app --template vite-tailwindTerminal window bun create xtarter-app@latest my-app --template vite-tailwind -
Choose a package manager
Section titled “Choose a package manager”Choose pnpm (recommended), npm, bun, or yarn, or skip the prompt with
--pm/-p:Terminal window npm create xtarter-app@latest -- my-app --pm bunTerminal window pnpm create xtarter-app@latest my-app --pm bunTerminal window yarn create xtarter-app my-app --pm bunTerminal window bun create xtarter-app@latest my-app --pm bun -
Decide on git init
Section titled “Decide on git init”Git init is on by default and creates a repository with an initial commit. It requires
giton your system and is skipped automatically whengitis not installed; use--no-gitto skip it explicitly. -
Clean CI/CD configs (optional)
Section titled “Clean CI/CD configs (optional)”When enabled, it removes pre-configured CI/CD files such as GitHub Actions workflows,
.gitlab-ci.yml,.travis.yml, CircleCI, Vercel, Netlify, Railway, and Fly configs. Use--cleanto enable it directly. -
Wait for download and install
Section titled “Wait for download and install”The CLI downloads the template, updates the
package.jsonname, installs dependencies, and initializes Git when enabled. -
You’re ready
Section titled “You’re ready”The CLI prints the next commands (
cd <project>and<package-manager> dev) and the chosen template name.
Preview a template
Section titled “Preview a template”npm create xtarter-app@latest -- preview vite-tailwindpnpm create xtarter-app@latest preview vite-tailwindyarn create xtarter-app preview vite-tailwindbun create xtarter-app@latest preview vite-tailwindpreview shows a template’s name, description, repository, branch, and features without scaffolding.
Installation failure
Section titled “Installation failure”The CLI runs <package-manager> install after download. If installation fails, the process exits with an error and removes the target directory when the CLI created it. Files downloaded into an existing empty directory are kept, so you can run the install manually.
What’s modified after download
Section titled “What’s modified after download”package.jsonname - lowercased, with unsupported characters replaced by hyphens- Workspace references -
workspace:entries inpnpm.overridesare removed - CI/CD files - removed when
--cleanis enabled