⚡ 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
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 packagelegion pkg install <pkg> -DInstall as dev dependencylegion pkg remove <pkg>Uninstall a packagelegion pkg updateUpdate all packageslegion pkg outdatedShow outdated packageslegion pkg list --depth=2List with dependency treelegion pkg search <query>Search Legion registrylegion pkg info <pkg>Show package detailslegion pkg auditSecurity auditlegion pkg run <script>Run npm-style scriptslegion pkg publishPublish to registrylegion pkg loginAuthenticate with Legionlegion pkg ciClean install from lockfilelegion pkg doctorDiagnose environmentlegion pkg packCreate distributable archive