Official CLI for scaffolding a new Thulite project.
- Node.js —
v20.19.0
or higher
npm create thulite@latest
yarn create thulite
pnpm create thulite
bun create thulite
Then follow the prompts!
You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a Thulite + Doks project, run:
npm create thulite@latest my-project -- --template doks
yarn create thulite my-project --template doks
pnpm create thulite my-project --template doks
bun create thulite my-project --template doks
You can use .
for the project name to scaffold in the current directory.
Templates with recommended integrations (SEO and Images):
doks
bolt
tailwindcss-rec
bootstrap-rec
basic-rec
Templates without recommended integrations:
tailwindcss
bootstrap
basic
You can view all available options and templates using the help command:
npx create-thulite@latest --help
yarn create thulite --help
pnpm create thulite --help
bun create thulite --help
If you encounter EPERM: operation not permitted
errors when using Yarn on Windows, try one of these solutions:
-
Run as Administrator: Right-click PowerShell and select "Run as Administrator"
-
Use npm instead:
npm create thulite@latest my-project -- --template doks
-
Fix .yarnrc permissions:
$yarnrcPath = "$env:USERPROFILE\.yarnrc" if (Test-Path $yarnrcPath) { icacls $yarnrcPath /grant "$env:USERNAME:(F)" }
-
Delete problematic .yarnrc (if safe to do so):
Remove-Item "$env:USERPROFILE\.yarnrc" -Force
This npm package is based on: