Files
cheatsheet-tldr/tldr/bun-init
2025-12-11 00:21:58 +00:00

38 lines
709 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun init
> Scaffold an empty Bun project.
> More information: <https://bun.com/docs/runtime/templating/init>.
- Initialize a Bun project in the current directory:
`bun init`
- Initialize in a specific directory:
`bun init {{path/to/directory}}`
- Initialize with a specific project name:
`bun init {{[-n|--name]}} {{project_name}}`
- Initialize a project with default prompts:
`bun init {{[-y|--yes]}}`
- Initialize a minimal project:
`bun init {{[-m|--minimal]}}`
- Initialize a React project:
`bun init {{[-r|--react]}}`
- Initialize a React project with Tailwind CSS:
`bun init --react=tailwind`