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).

rai gate list

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

Flag Short Description
--format -f Output format: human, json. Default: human
rai gate list
rai gate list --format json

rai gate check

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

Argument Description
GATE_ID Gate ID to check (optional — use --all to run all)
Flag Short Description
--all -a Run all discovered gates
--format -f Output format: human, json. Default: human
# 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](release.md/