2025-12-16 10:20:31 -07:00
|
|
|
# bun create
|
|
|
|
|
|
|
|
|
|
> Create a new project from a template.
|
|
|
|
|
> Note: `c` can be used as an alias for `create`.
|
|
|
|
|
> More information: <https://bun.com/docs/runtime/templating/create>.
|
|
|
|
|
|
|
|
|
|
- Create a new project from an official template interactively:
|
|
|
|
|
|
|
|
|
|
`bun create {{template}}`
|
|
|
|
|
|
|
|
|
|
- Create a new project from an official template in a new directory:
|
|
|
|
|
|
|
|
|
|
`bun create {{template}} {{path/to/destination}}`
|
|
|
|
|
|
|
|
|
|
- Create a new project from a GitHub repository template:
|
|
|
|
|
|
|
|
|
|
`bun create {{https://github.com/username/repo}} {{path/to/destination}}`
|
|
|
|
|
|
|
|
|
|
- Create a new project from a local template:
|
|
|
|
|
|
|
|
|
|
`bun create {{path/to/template}} {{path/to/destination}}`
|
|
|
|
|
|
|
|
|
|
- Create a new project, overwriting the destination directory if it exists:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`bun 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-02-18 06:55:01 -07:00
|
|
|
`bun create {{template}} {{path/to/destination}} --no-git`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Create a new project without installing dependencies automatically:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`bun create {{template}} {{path/to/destination}} --no-install`
|