First steps
Guide to getting started with RootCause.
Installation
Requirements: You need to have Rust and Cargo installed.
Installation using the install script
curl https://rootcause.sh/install.sh | sh
Installation from the Git repository
- Clone the repository:
git clone https://github.com/RootCauseScan/scanner.git cd scanner
- Build the CLI:
cargo build -p rootcause --release
- Run the CLI:
./target/release/rootcause . --rules rules
Installation using Cargo install
cargo install rootcause
Configuration file
RootCause uses a configuration file in TOML format located at:
- Linux/macOS:
~/.config/rootcause/config.toml
- Windows:
%APPDATA%\\rootcause\\config.toml
Basic structure of config.toml
toml
# Cache configuration
[cache]
cache_dir = "./cache"
# Rules configuration
[rules]
rule_dirs = ["/home/user/.config/rootcause/rules", "./custom-rules"]
# Plugins configuration
[plugins.plugin-name]
enabled = true
plugin_option = "VALUE"
Verify the installation
Run the help command to verify that RootCause is installed correctly:
bash
rootcause --help
You should see the output with the available commands:
scan
- Scan coderules
- Manage rulesplugins
- Manage plugins
Next steps
- Run your first scan: See First scan
- Install rules: Use
rootcause rules install https://rootcausescan/rules
to download the official rules bundle. - Explore plugins: Discover installed plugins with
rootcause plugins list