⚡ 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.pages.dev/install.sh | sh

Or download the installer script and inspect it first.

Platform Downloads

Linux
x64 (AMD64)
~21 MB · ELF 64-bit
Download for Linux
macOS
x64 + ARM (Universal)
~21 MB · macOS 11+
Download for macOS
Windows
x64 (64-bit)
~22 MB · Windows 10/11
Download .exe

Install from Source

Requires Python 3.8+ and PyInstaller.

git clone https://github.com/legionhjyu-lang/legionhjyu
cd legionhjyu
pip install pyinstaller
pyinstaller legion.spec --noconfirm
./dist/legion --version

Run with Python (No install)

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 with legion run

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 Legion 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 with Legion
legion pkg ciClean install from lockfile
legion pkg doctorDiagnose environment
legion pkg packCreate distributable archive