CLI Commands
Complete reference for all FSH Lint commands.
maki lint
Section titled “maki lint”Lint FSH files and report diagnostics.
maki lint [OPTIONS] <FILES>...Options
Section titled “Options”--fix- Automatically fix issues when possible--severity <LEVEL>- Only show diagnostics at or above this level--format <FORMAT>- Output format:human,json,sarif,github--config <PATH>- Path to configuration file--no-config- Don’t load configuration files--max-diagnostics <N>- Limit number of diagnostics shown
Examples
Section titled “Examples”# Lint all FSH filesmaki lint **/*.fsh
# Lint with automatic fixesmaki lint --fix input/fsh/*.fsh
# Show only errorsmaki lint --severity error **/*.fsh
# Output JSON formatmaki lint --format json **/*.fsh > diagnostics.jsonmaki format
Section titled “maki format”Format FSH files.
maki format [OPTIONS] <FILES>...Options
Section titled “Options”--check- Check if files are formatted (don’t modify)--diff- Show formatting differences--config <PATH>- Path to configuration file
Examples
Section titled “Examples”# Format all FSH filesmaki format **/*.fsh
# Check formatting without modifyingmaki format --check **/*.fshmaki init
Section titled “maki init”Initialize configuration file.
maki init [OPTIONS]Options
Section titled “Options”--full- Generate full example configuration--output <PATH>- Output path (default:maki.json)
Examples
Section titled “Examples”# Create default configmaki init
# Create full examplemaki init --fullmaki rules
Section titled “maki rules”List available rules.
maki rules [OPTIONS]Options
Section titled “Options”--detailed- Show detailed information--category <CATEGORY>- Filter by category--search <QUERY>- Search rules
Examples
Section titled “Examples”# List all rulesmaki rules
# Show detailed info for a categorymaki rules --detailed --category style
# Search for specific rulesmaki rules --search namingmaki check
Section titled “maki check”Check configuration validity.
maki check [OPTIONS]Options
Section titled “Options”--config <PATH>- Path to configuration file
Examples
Section titled “Examples”# Check default configmaki check
# Check specific configmaki check --config custom-config.jsonGlobal Options
Section titled “Global Options”Available for all commands:
-h, --help- Print help information-V, --version- Print version information-v, --verbose- Enable verbose output--color <WHEN>- Colorize output:auto,always,never
Exit Codes
Section titled “Exit Codes”See Exit Codes for details.