snippetbashTip
bun init — Scaffold an empty Bun project. More information: <https://bun.com/docs/runtime/templating/init>.
Viewed 0 times
commandbunemptybun initcliscaffoldmoreproject
Problem
How to use the
bun init command: Scaffold an empty Bun project. More information: <https://bun.com/docs/runtime/templating/init>.Solution
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 initInitialize 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=tailwindCode Snippets
Initialize a Bun project in the current directory
bun initInitialize 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]}}Context
tldr-pages: common/bun init
Revisions (0)
No revisions yet.