Skip to content

Install Rune

Run the create rune-app command and answer a few prompts to quickly scaffold a new Rune project.

  • Node.js - v22.12.0 or higher
  • Terminal - Rune requires command-line access to initialize a project
  1. Create a new project

    Run the following command in your terminal to create a new Rune project.

    Terminal window
    pnpm create rune-app

    You 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-cli

    To 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, or src/).

    Terminal window
    pnpm create rune-app .
  2. Run a command

    Navigate to your project directory and run the starter hello command to verify everything works.

    Terminal window
    cd my-cli
    pnpm start hello

    If you see the following output, you’re all set.

    hello from my-cli

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.

Terminal window
pnpm create rune-app my-cli --yes
# Or scaffold into the current directory
pnpm create rune-app . --yes

You can fine-tune the behavior with additional options:

OptionDefaultDescription
--yes / -yfalseSkip all prompts
--install / --no-installtrueInstall dependencies
--git / --no-gittrueInitialize a git repository
Terminal window
# Skip dependency installation
pnpm create rune-app my-cli --yes --no-install
# Skip git initialization
pnpm create rune-app my-cli --yes --no-git

These options also work in interactive mode — any explicitly provided flag will skip its corresponding prompt.