2025-12-16 10:20:31 -07:00
|
|
|
# bun create
|
|
|
|
|
|
|
|
|
|
> Create a new project from a template.
|
|
|
|
|
> More information: <https://bun.com/docs/runtime/templating/create>.
|
|
|
|
|
|
|
|
|
|
- Create a new project from an official template interactively:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`bun {{[c|create]}} {{template}}`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Create a new project from an official template in a new directory:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`bun {{[c|create]}} {{template}} {{path/to/destination}}`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Create a new project from a GitHub repository template:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`bun {{[c|create]}} {{https://github.com/username/repo}} {{path/to/destination}}`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Create a new project from a local template:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`bun {{[c|create]}} {{path/to/template}} {{path/to/destination}}`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Create a new project, overwriting the destination directory if it exists:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`bun {{[c|create]}} {{template}} {{path/to/destination}} --force`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Create a new project without initializing a Git repository automatically:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`bun {{[c|create]}} {{template}} {{path/to/destination}} --no-git`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Create a new project without installing dependencies automatically:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`bun {{[c|create]}} {{template}} {{path/to/destination}} --no-install`
|