Skip to content

Installation

Install ai-rulez using your preferred package manager.

Package Managers

brew install goldziher/tap/ai-rulez
npm install -g ai-rulez
pip install ai-rulez
uv tool install ai-rulez

Building from source

The Go module path is github.com/Goldziher/ai-rulez (without a /v4 suffix), so go install …@latest resolves to an old 1.x build rather than the current release. To build the current version from source, clone and build the cmd package:

git clone https://github.com/Goldziher/ai-rulez
cd ai-rulez
go build -o ai-rulez ./cmd

Run Without Installing

You can also run ai-rulez directly without a permanent installation.

uvx ai-rulez --help
npx ai-rulez@latest --help

Enable tab completion for your shell to see all available commands and flags interactively.

Highly Recommended

Setting up shell completion is a one-time step that makes the CLI much faster and easier to use. You'll be able to discover all commands just by pressing the <Tab> key.

Add to ~/.bashrc or ~/.bash_profile:

source <(ai-rulez completion bash)

Add to ~/.zshrc:

source <(ai-rulez completion zsh)

Add to ~/.config/fish/config.fish:

ai-rulez completion fish | source

Add to your PowerShell profile:

ai-rulez completion powershell | Out-String | Invoke-Expression

Verify Installation

Check that the installation was successful:

ai-rulez version

Next Steps