With NPM:
npm create threes@latestWith Yarn:
yarn create threesWith PNPM:
pnpm create threesWith Bun
bun create threescreate-threes automatically runs in interactive mode, but you can also specify your project name and template with command line arguments.
# npm
npm create threes@latest threes-project -- --template basic
# yarn
yarn create threes threes-project --template basic
# pnpm
pnpm create threes threes-project --template basic
# bun
bun create threes threes-project --template basicCheck out the full list of example templates, available on GitHub.
May be provided in place of prompts
| Name | Description |
|---|---|
--help (-h) |
Display available flags. |
--framework (-f) |
Choose framework: vanilla / react |
--template <name> (-tmpl <name>) |
Specify your template. |
--typescript (-ts) |
Using typescript. |
--install (-g) |
Install dependencies. |
--git (-g) |
Initialize git repo. |