Rule Cascade
Get started

Install

Install rcas, the Rule Cascade command, on macOS, Linux or Windows, with the install script, npm or Go, and the runtime library for your language.

rcas is the Rule Cascade command: one static binary with no dependencies, for Linux, macOS and Windows on x86-64 and ARM64. It checks, compiles and evaluates rulesets, scaffolds projects, derives rules from API schemas, and serves the Model Context Protocol to AI coding tools. The install scripts also install it as rule-cascade, its earlier name, which behaves the same.

curl -fsSL https://rulescascade.com/install.sh | sh

With options, put them after sh -s --:

curl -fsSL https://rulescascade.com/install.sh | sh -s -- --version 1.0.0-alpha.11 --install-dir ~/bin --verify cosign

Then check it:

rcas version
rcas doctor

Other ways to install

CommandInstallsNeeds
npm install -g @rules-cascade/clircas, the binary for your platformNode.js 22+
npx -y @rules-cascade/cli <command>nothing permanent: runs the command once (this is what AI tools use for the MCP server; https://mcp.rulescascade.com/mcp needs nothing at all)Node.js 22+
go install rulescascade.com/go/cmd/rcas@latestrcas, built from sourceGo 1.26+
Download and verifyone file you choose, checked by hand with sha256sum and cosigncosign 3+ for the signature
docker run -p 8080:8080 -e RULE_SERVER_TOKEN=<token> -v "$PWD/rules:/rules:ro" ghcr.io/yarlisaisolutions/rule-cascade-serverthe rule server, not the command; it needs a token and your *.ruleset.yaml filesDocker

Installer options

Flag (sh)Parameter (PowerShell)EnvironmentDefaultMeaning
--version <v>-VersionRCAS_VERSIONthe latest releaseversion to install, e.g. 1.0.0-alpha.11
--install-dir <dir>-InstallDirRCAS_INSTALL_DIR~/.local/bin; %LOCALAPPDATA%\Programs\rcaswhere to put the binary
--verify cosign-Verify cosignRCAS_VERIFYoffalso verify the Sigstore signatures; fails if cosign is missing
--base-url <url>-BaseUrlRCAS_DOWNLOAD_BASEhttps://rulescascade.com/downloada mirror of the download directory
--dry-run-DryRunprint what would happen; download and change nothing
--no-alias-NoAliasdo not create rule-cascade
--no-modify-path-NoModifyPathRCAS_NO_MODIFY_PATH=1offleave PATH alone. By default the directory is added: to the user PATH on Windows, and to your shell's startup file (~/.zshrc, ~/.bashrc and the login file bash reads, fish conf.d/rcas.fish, or ~/.profile) on Linux and macOS, once, with a line marked # added by the rcas installer

What it installs, and where

PathWhat
~/.local/bin/rcas (%LOCALAPPDATA%\Programs\rcas\rcas.exe)the command
~/.local/bin/rule-cascade (rule-cascade.cmd)the same command under its earlier name

Nothing else: no service, no configuration file, no telemetry. rcas doctor checks the installation and, unless RCAS_NO_NETWORK is set, whether a newer version is published.

The library for your language

The command is enough to write, check and compile rules, and to evaluate them from any language over the engine protocol. To evaluate in process, add the runtime of your language. Every runtime loads the same bundle and gives the same answer.

LanguageInstallGuide
TypeScript, JavaScript (Node.js, browsers, React Native)npm install @rules-cascade/core (and @rules-cascade/client for browsers)TypeScript
Python 3.11+pip install rule-cascadePython
Java 17+, Kotlin, Scala, Spring BootMaven com.rulescascade:rules-cascade-coreJava
Go 1.26+go get rulescascade.com/goGo
C#, Rust, PHP, Ruby, Swift, C++ and othersrcas engine as a child process, or rcas.wasm in a WASI hostCommand and WebAssembly
Any language over HTTPthe rule server imageRule server

Operating systems

SystemCommandRuntimes
macOS 13+, Intel and Apple siliconrcas-darwin-amd64, rcas-darwin-arm64all four
Linux, x86-64 and ARM64 (static: any distribution, Alpine included)rcas-linux-amd64, rcas-linux-arm64all four
Windows 10+ and Windows Server, x86-64 and ARM64rcas-windows-amd64.exe, rcas-windows-arm64.exeall four
Any WASI preview 1 hostrcas.wasmthrough the command

CI runs every runtime and the command on Linux, macOS and Windows.

Upgrade and uninstall

Run the installer again to upgrade (or npm install -g @rules-cascade/cli@latest). To uninstall, delete the two files above, then take the directory off PATH if the installer added it:

  • Linux and macOS: delete the line ending in # added by the rcas installer from your shell's startup file (~/.zshrc, ~/.bashrc, ~/.bash_profile, ~/.profile), or delete ~/.config/fish/conf.d/rcas.fish.
  • Windows: run $d = "$env:LOCALAPPDATA\Programs\rcas"; [Environment]::SetEnvironmentVariable('Path', ((([Environment]::GetEnvironmentVariable('Path', 'User')) -split ';') | Where-Object { $_ -and $_.TrimEnd('\') -ine $d }) -join ';', 'User') in PowerShell, or remove it under Settings > System > About > Advanced system settings > Environment Variables.

rcas keeps no other state: proposals and reports live in each project's .rcas/ directory.

Troubleshooting

SymptomFix
rcas: command not found (Windows: rcas is not recognized) after installingOpen a new terminal: the installer adds the directory to PATH for new ones. If you passed --no-modify-path, add ~/.local/bin (%LOCALAPPDATA%\Programs\rcas) yourself
irm fails with "Could not create SSL/TLS secure channel" (Windows PowerShell 5.1 on older Windows)Run [Net.ServicePointManager]::SecurityProtocol = 'Tls12' in the same window, then the install command again
iex stops with "running scripts is disabled on this system"irm ... | iex does not need script execution, so this comes from saving and running install.ps1 as a file. Use the one-line command, or run powershell -ExecutionPolicy Bypass -File install.ps1
The installer stops with "checksum mismatch"The download was altered or truncated. Do not use it; run again, and report it if it repeats
--verify cosign fails: cosign not foundInstall cosign 3 or later, or drop the flag (the checksum is still verified)
Behind a proxySet HTTPS_PROXY; curl and PowerShell honour it. Or mirror /download/ and pass --base-url
npx asks to install @rules-cascade/cli every timeInstall it globally, or let your AI tool run npx -y (it does not ask)
macOS says the binary is from an unidentified developerOnly when downloaded with a browser: install with the script or npm, or run xattr -d com.apple.quarantine rcas

Next: start a new project, or generate rules from an existing one.

On this page