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 --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 18+
npx -y @rules-cascade/cli <command>nothing permanent: runs the command once (this is what AI tools use for the MCP server)Node.js 18+
go install rulescascade.com/go/cmd/rcas@latestrcas, built from sourceGo 1.22+
Download and verifyone file you choose, checked by hand with sha256sum and cosigncosign 3+ for the signature
docker run ghcr.io/yarlisaisolutions/rule-cascade-serverthe rule server, not the commandDocker

Installer options

Flag (sh)Parameter (PowerShell)EnvironmentDefaultMeaning
--version <v>-VersionRCAS_VERSIONthe latest releaseversion to install, e.g. 1.0.0
--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
-AddToPathadd the directory to the user PATH

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.10+pip install rule-cascadePython
Java 17+, Kotlin, Scala, Spring BootMaven com.rulescascade:rules-cascade-coreJava
Go 1.22+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 11+, 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. rcas keeps no other state: proposals and reports live in each project's .rcas/ directory.

Troubleshooting

SymptomFix
rcas: command not found after installingThe install directory is not on PATH: add ~/.local/bin (the installer prints the line), or on Windows rerun with -AddToPath and open a new terminal
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