Skip to content

rai gate

Discover and run workflow gates. Gates are quality checks that run at specific points in the development workflow (pre-commit, pre-merge, pre-release).

List all discovered workflow gates. Shows each gate’s ID, description, and workflow point.

FlagShortDescription
--format-fOutput format: human, json. Default: human
Terminal window
rai gate list
rai gate list --format json

Run workflow gates and report results. Check a specific gate by ID, or use --all to run every discovered gate.

ArgumentDescription
GATE_IDGate ID to check (optional — use --all to run all)
FlagShortDescription
--all-aRun all discovered gates
--format-fOutput format: human, json. Default: human
Terminal window
# Check a specific gate
rai gate check gate-tests
# Run all gates
rai gate check --all
# JSON output for CI
rai gate check --all --format json

Exit codes: 0 all gates pass, 1 any gate fails.

See also: rai release check