CLI Commands

Complete reference for all IndoriLang CLI commands.

Installation

Install the CLI globally to use IndoriLang from the command line:

bash
npm install -g @indori-lang/cli

Commands

indori run <file>

Run an IndoriLang file

bash
indori run hello.il

indori compile <input> <output>

Compile IndoriLang to JavaScript

bash
indori compile program.il output.js

indori version

Show version information

bash
indori version

indori help

Show help information

bash
indori help

Examples

Run a program

bash
# Create hello.il
echo 'bhiya_bol("Hello!");' > hello.il

# Run it
indori run hello.il

Compile to JavaScript

bash
# Compile IndoriLang to JavaScript
indori compile program.il output.js

# Run the compiled JavaScript
node output.js