diff --git a/README.md b/README.md index a3de101646..b30fed5096 100644 --- a/README.md +++ b/README.md @@ -93,8 +93,8 @@ bun upgrade --canary - [`bun run`](https://bun.sh/docs/cli/run) - [`bun install`](https://bun.sh/docs/cli/install) - [`bun test`](https://bun.sh/docs/cli/test) - - [`bun init`](https://bun.sh/docs/templates#bun-init) - - [`bun create`](https://bun.sh/docs/templates#bun-create) + - [`bun init`](https://bun.sh/docs/cli/init) + - [`bun create`](https://bun.sh/docs/cli/bun-create) - [`bunx`](https://bun.sh/docs/cli/bunx) - Runtime - [Runtime](https://bun.sh/docs/runtime/index) diff --git a/docs/templates.md b/docs/cli/bun-create.md similarity index 92% rename from docs/templates.md rename to docs/cli/bun-create.md index 5061b0aff6..c5cc602b62 100644 --- a/docs/templates.md +++ b/docs/cli/bun-create.md @@ -1,36 +1,12 @@ -## `bun init` - -Scaffold an empty project with the interactive `bun init` command. - -```bash -$ bun init -bun init helps you get started with a minimal project and tries to -guess sensible defaults. Press ^C anytime to quit. - -package name (quickstart): -entry point (index.ts): - -Done! A package.json file was saved in the current directory. - + index.ts - + .gitignore - + tsconfig.json (for editor auto-complete) - + README.md - -To get started, run: - bun run index.ts -``` - -Press `enter` to accept the default answer for each prompt, or pass the `-y` flag to auto-accept the defaults. - -## `bun create` - {% callout %} **Note** — You don’t need `bun create` to use Bun. You don’t need any configuration at all. This command exists to make getting started a bit quicker and easier. {% /callout %} Template a new Bun project with `bun create`. This is a flexible command that can be used to create a new project with a `create-