⚡ Legion CLI v2.1.0

Download Legion CLI

The complete legionhjyu toolchain — interpreter, REPL, package manager, and more — bundled into a single executable.

⚡ Quick Install (Linux / macOS)

curl -fsSL https://legion-registry.hexabhhexabbh.workers.dev/install.sh | sh

Or download the installer script and inspect it first.

Platform Downloads

🐧
Linux
x64 (AMD64)
~21 MB
⬇ Download Platform: Linux x86_64 · ELF 64-bit
🍎
macOS
x64 + ARM (Universal)
~21 MB
⬇ Download Platform: macOS 11+ (Intel + Apple Silicon)
🪟
Windows
x64 (64-bit)
~22 MB
⬇ Download .exe Platform: Windows 10/11 x64

Install from Source

Requires Python 3.8+ and PyInstaller.

# Clone the repository
git clone https://github.com/legionhjyu-lang/legionhjyu
cd legionhjyu

# Install dependencies
pip install pyinstaller

# Build
pyinstaller legion.spec --noconfirm

# Binary will be at dist/legion
./dist/legion --version

Run with Python (No install)

# Clone + run directly
git clone https://github.com/legionhjyu-lang/legionhjyu
cd legionhjyu
python3 bin/legion run hello.lhj
python3 bin/legion pkg install legion-colors

What's Included

🗡️
Interpreter
Run .lhj scripts directly
💬
REPL
Interactive read-eval-print loop
📦
Package Manager
20 commands: install, audit, update, run...
🔍
Syntax Checker
Validate .lhj files without running
✏️
Formatter
Auto-format legionhjyu source files
🏗️
Project Init
Scaffold new projects with legion new

Package Manager Commands

legion pkg install <pkg>Install a package
legion pkg install <pkg> -DInstall as dev dependency
legion pkg remove <pkg>Uninstall a package
legion pkg updateUpdate all packages
legion pkg outdatedShow outdated packages
legion pkg list --depth=2List with dependency tree
legion pkg search <query>Search registry
legion pkg info <pkg>Show package details
legion pkg auditSecurity audit
legion pkg run <script>Run npm-style scripts
legion pkg publishPublish to registry
legion pkg loginAuthenticate
legion pkg whoamiShow current user
legion pkg ciClean install from lockfile
legion pkg doctorDiagnose environment