commands.sh

bun init

all

Scaffold an empty Bun project.

More info →

Options (4)

-n, --nameboolean

Initialize with a specific project name

Example: bun init {{[-n|--name]}} {{project_name}}
-y, --yesboolean

Initialize a project with default prompts

Example: bun init {{[-y|--yes]}}
-m, --minimalboolean

Initialize a minimal project

Example: bun init {{[-m|--minimal]}}
-r, --reactboolean

Initialize a React project

Example: bun init {{[-r|--react]}}

Examples (7)

Initialize a Bun project in the current directory

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
made by @shridhargupta | data from tldr-pages