Skip to content

CLI Reference

bmahkib edited this page Feb 2, 2026 · 1 revision

CLI Reference

Commands

scan

rma scan [OPTIONS] <PATH>
Option Description Default
--severity <LEVEL> Minimum: critical, error, warning, info warning
--format <FORMAT> text, json, sarif, github, html text
--output <FILE> Write to file stdout
--rules <RULES> Enable specific rules all
--exclude-rules <RULES> Disable specific rules none
--category <CAT> security, quality, performance all
--skip-tests Skip test files false
--skip-tests-all Skip ALL test findings false
--cross-file Cross-file analysis false
--diff Only changed lines false
--mode <MODE> dev, ci, pr dev
--profile <PROFILE> fast, balanced, strict balanced
--limit <N> Max findings unlimited

watch

rma watch [OPTIONS] <PATH>

Real-time file watching with keyboard shortcuts: q=quit, r=rescan, s=filter, ?=help

daemon

rma daemon --port 8080

HTTP API server for IDE integration.

lsp

rma lsp --stdio

Language Server Protocol for editors.

audit

rma audit <PATH>

Security audit on dependencies (OSV, RustSec).

rules

rma rules --language rust

List available rules.

Exit Codes

Code Meaning
0 No findings above threshold
1 Findings found
2 Execution error

Clone this wiki locally