Skip to content

CLI Options

Complete reference for all command-line options.

Print help information for the command.

Terminal window
maki --help
maki lint --help

Print version information.

Terminal window
maki --version
# Output: maki 0.1.0

Enable verbose logging output.

Terminal window
maki --verbose lint **/*.fsh

Control color output:

  • auto - Automatic (default)
  • always - Always colorize
  • never - Never colorize
Terminal window
maki --color always lint **/*.fsh
maki --color never lint **/*.fsh > output.txt

Automatically apply safe fixes.

Terminal window
maki lint --fix **/*.fsh

Filter diagnostics by minimum severity:

  • hint
  • info
  • warn
  • error
Terminal window
maki lint --severity error **/*.fsh

Output format:

  • human - Human-readable (default)
  • json - JSON format
  • sarif - SARIF format
  • github - GitHub Actions annotations
Terminal window
maki lint --format json **/*.fsh
maki lint --format github **/*.fsh

Specify configuration file path.

Terminal window
maki lint --config custom-config.json **/*.fsh

Ignore all configuration files.

Terminal window
maki lint --no-config **/*.fsh

Limit number of diagnostics shown.

Terminal window
maki lint --max-diagnostics 50 **/*.fsh

Enable only specific rules.

Terminal window
maki lint --rule style/naming-convention **/*.fsh
maki lint --rule correctness/** **/*.fsh

Ignore files matching pattern.

Terminal window
maki lint --ignore-pattern "**/*.generated.fsh" **/*.fsh

Check formatting without modifying files.

Terminal window
maki format --check **/*.fsh

Show formatting differences.

Terminal window
maki format --diff **/*.fsh

Generate full example configuration.

Terminal window
maki init --full

Specify output path for configuration.

Terminal window
maki init --output .makirc.json

Show detailed rule information.

Terminal window
maki rules --detailed

Filter rules by category:

  • style
  • documentation
  • correctness
  • suspicious
Terminal window
maki rules --category style

Search rules by name or description.

Terminal window
maki rules --search naming

Override configuration file path.

Terminal window
export FSH_LINT_CONFIG=custom-config.json
maki lint **/*.fsh

Disable color output.

Terminal window
export FSH_LINT_NO_COLOR=1
maki lint **/*.fsh

Set cache directory location.

Terminal window
export FSH_LINT_CACHE_DIR=.maki-cache
maki lint **/*.fsh