create-ridu
v0.2.3
Published
Create a Ridu project with the matching native Ridu CLI.
Readme
create-ridu
Create a project with the native Ridu CLI from the same Ridu release:
npm create ridu@latest my-app
bun create ridu@latest my-app
pnpm create ridu@latest my-app
yarn create ridu my-appOmit my-app to choose the project directory inside the wizard.
The initializer detects npm, Bun, pnpm, or Yarn and records that choice in the generated
ridu.toml. Options after a launcher's argument separator are forwarded to ridu new:
npm create ridu@latest -- --template blank --database sqlite my-appThe initializer runs the matching @riducms/cli release. Generated projects retain that launcher
as an exact development dependency. After creation, install and run the generated dev, check,
build, migrate, and start scripts with the selected package manager. The documentation writes
other project commands as ridu <command> so examples do not change between package managers.
On the first run, the launcher shows the native CLI download status immediately, with elapsed time
and received bytes. A percentage appears when the server supplies a usable total. CI and piped
output receive plain progress lines every five seconds. Downloads fail with recovery instructions
after 30 seconds without a response or further data; set RIDU_CLI_DOWNLOAD_TIMEOUT_MS to a larger
millisecond value on a slow connection. A cached CLI starts without download messages.
Any earlier registry download is managed by your package runner, before create-ridu can print.
See the launcher README for download details and a local preview command.
Use npm create ridu@latest . to create a project in the current directory. Ridu warns before
creation, derives the project name from that directory, and preserves unrelated files. Conflicting
project paths stop creation before any project files are added.
