Create a project
Generate a standard AponiaJS application with the Bun-native CLI.
Install the CLI
Install the published CLI globally with Bun. Every public package is published
to the alpha distribution tag, so request it explicitly:
bun add --global @aponiajs/cli@alpha
aponia --versionCreate a project:
aponia new my-api
cd my-api
bun run devOpen http://localhost:3000/.
Project names must use lowercase kebab-case. The generator refuses to merge into or overwrite an existing target directory.
Use the Bun create entrypoint
The separately published create-aponia package delegates to the same project
generator:
bun create aponia my-apiBoth entrypoints create the same application shape. The documented aponia
binary is also used for later component generation.
Preview without writing
Use a dry run to validate the project name and inspect the output:
aponia new my-api --dry-runSkip dependency installation when another process will install the generated project:
aponia new my-api --skip-installGenerated commands
The generated package.json includes:
bun run dev
bun run start
bun run build
bun test
bun run test:e2e
bun run checkThe generated manifest pins @aponiajs/common and @aponiajs/platform-elysia
to the exact CLI version, so decorators and the runtime cannot drift apart.
Continue with your first route or review the generated project structure.