Install Rune
Run the create rune-app command and answer a few prompts to quickly scaffold a new Rune project.
Prerequisites
Section titled “Prerequisites”- Node.js -
v22.12.0or higher - Terminal - Rune requires command-line access to initialize a project
Installation
Section titled “Installation”-
Create a new project
Run the following command in your terminal to create a new Rune project.
Terminal window pnpm create rune-appTerminal window npm create rune-app@latestTerminal window yarn create rune-appTerminal window bun create rune-appYou will be prompted for a project name, whether to install dependencies, and whether to initialize a git repository.
You can also pass the project name directly as an argument.
Terminal window pnpm create rune-app my-cliTerminal window npm create rune-app@latest my-cliTerminal window yarn create rune-app my-cliTerminal window bun create rune-app my-cliTo scaffold into the current directory, pass
.instead of a project name. The directory must not contain files that conflict with the template (e.g..gitignore,package.json,tsconfig.json, orsrc/).Terminal window pnpm create rune-app .Terminal window npm create rune-app@latest .Terminal window yarn create rune-app .Terminal window bun create rune-app . -
Run a command
Navigate to your project directory and run the starter
hellocommand to verify everything works.Terminal window cd my-clipnpm start helloTerminal window cd my-clinpm run start -- helloTerminal window cd my-cliyarn start helloTerminal window cd my-clibun start helloIf you see the following output, you’re all set.
hello from my-cli
Non-interactive mode
Section titled “Non-interactive mode”Pass the --yes (-y) flag to skip all interactive prompts and use default values. This also happens automatically in CI pipelines, agent-driven workflows, and other environments without a TTY.
pnpm create rune-app my-cli --yes
# Or scaffold into the current directorypnpm create rune-app . --yesnpm create rune-app@latest my-cli -- --yes
# Or scaffold into the current directorynpm create rune-app@latest . -- --yesyarn create rune-app my-cli --yes
# Or scaffold into the current directoryyarn create rune-app . --yesbun create rune-app my-cli --yes
# Or scaffold into the current directorybun create rune-app . --yesYou can fine-tune the behavior with additional options:
| Option | Default | Description |
|---|---|---|
--yes / -y | false | Skip all prompts |
--install / --no-install | true | Install dependencies |
--git / --no-git | true | Initialize a git repository |
# Skip dependency installationpnpm create rune-app my-cli --yes --no-install
# Skip git initializationpnpm create rune-app my-cli --yes --no-git# Skip dependency installationnpm create rune-app@latest my-cli -- --yes --no-install
# Skip git initializationnpm create rune-app@latest my-cli -- --yes --no-git# Skip dependency installationyarn create rune-app my-cli --yes --no-install
# Skip git initializationyarn create rune-app my-cli --yes --no-git# Skip dependency installationbun create rune-app my-cli --yes --no-install
# Skip git initializationbun create rune-app my-cli --yes --no-gitThese options also work in interactive mode — any explicitly provided flag will skip its corresponding prompt.