Skip to content

CLI Reference

Airulefy can be operated through a command-line interface (CLI). This page describes all available commands and options.

Basic Usage

airulefy [options] [command]

Global Options

Option Description
--version Show version information and exit
--help Show help message and exit

Commands

generate

Generate AI rule files.

airulefy generate [options]

Options:

Option Description
--copy, -c Force copy mode instead of symlink
--verbose, -v Show detailed output
--help Show help message

Examples:

# Generate rules using the default mode (as defined in configuration)
airulefy generate

# Generate rules using copy mode
airulefy generate --copy

# Generate rules with detailed output
airulefy generate --verbose

watch

Watch the .ai/ directory for changes and automatically regenerate rule files.

airulefy watch [options]

Options:

Option Description
--copy, -c Force copy mode instead of symlink
--help Show help message

Examples:

# Watch for changes using default mode
airulefy watch

# Watch for changes using copy mode
airulefy watch --copy

validate

Validate the configuration and rule files.

airulefy validate

Options:

Option Description
--help Show help message

Examples:

airulefy validate

list-tools

List supported AI tools and their configurations.

airulefy list-tools

Options:

Option Description
--help Show help message

Examples:

airulefy list-tools

Exit Codes

Code Description
0 Success
1 Error/Failure