Commands

Running Tasks

Execute any task defined in rnr.yaml:

./rnr <task-name>

Examples

./rnr build      # Run the 'build' task
./rnr test       # Run the 'test' task
./rnr ci         # Run the 'ci' task (which may run multiple sub-tasks)

Listing Tasks

View all available tasks and their descriptions:

./rnr --list
# or simply
./rnr

Output example:

Available tasks:
  build       Build for production
  test        Run test suite
  lint        Run linter
  ci          Run full CI pipeline
  deploy      Deploy to production

init

Initialize rnr in the current repository.

./rnr init [OPTIONS]

Interactive Mode (Default)

Running rnr init without options launches an interactive platform selector.

Non-Interactive Options

OptionDescription
--platforms <list>Comma-separated platform list
--all-platformsInclude all 5 platforms
--current-platform-onlyOnly current platform
--forceSkip git repository root check

Platform Management

OptionDescription
--add-platform <name>Add a platform to existing setup
--remove-platform <name>Remove a platform from setup
--show-platformsDisplay currently configured platforms

Examples

# Interactive setup (recommended)
./rnr init

# Non-interactive: specific platforms
./rnr init --platforms linux-amd64,macos-arm64,windows-amd64

# Non-interactive: all platforms
./rnr init --all-platforms

# Add Windows ARM support later
./rnr init --add-platform windows-arm64

# Check current configuration
./rnr init --show-platforms

upgrade

Update rnr binaries to the latest version from GitHub releases.

./rnr upgrade

This command:

  1. Checks for the latest release on GitHub
  2. Compares with current version
  3. Downloads updated binaries for all configured platforms
  4. Updates binaries in parallel for speed

help

Display help information:

./rnr --help
./rnr -h

version

Display the current version:

./rnr --version
./rnr -V

Supported Platforms

PlatformBinary NameSize
Linux x86_64rnr-linux-amd64~760 KB
macOS Intelrnr-macos-amd64~662 KB
macOS Apple Siliconrnr-macos-arm64~608 KB
Windows x86_64rnr-windows-amd64.exe~584 KB
Windows ARM64rnr-windows-arm64.exe~528 KB

Exit Codes

rnr propagates exit codes from executed commands:

CodeMeaning
0Success
1+Command failed (exit code from the failing command)

When running parallel tasks, if any task fails, rnr will:

  1. Report all failures
  2. Exit with a non-zero code