With NPM:
npm create threes@latest
With Yarn:
yarn create threes
With PNPM:
pnpm create threes
With Bun
bun create threes
create-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 basic
Check 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. |