mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
38 lines
709 B
Plaintext
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`
|