Skip to content

Command Line Usage

ILLEX can be used directly from the command line to process .illex files.

Basic Processing

illex run file.illex

Processing with Variables

# Using variables in key=value format
illex run file.illex --vars name=John age=30

# Using variables from a JSON/YAML file
illex run file.illex --vars config.json

Saving Results

# Saves the result to file.illex.out
illex run file.illex -o

Examples

File example.illex

@name = User
@age = 25

Report for {client}:
Name: @name
Age: @age
Status: :if(@age >= 18, Adult, Minor)

Processing

illex run example.illex --vars client="XYZ Corp"

Result

Report for XYZ Corp:
Name: User
Age: 25
Status: Adult