⚡ 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
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 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 registrylegion pkg info <pkg>Show package detailslegion pkg auditSecurity auditlegion pkg run <script>Run npm-style scriptslegion pkg publishPublish to registrylegion pkg loginAuthenticatelegion pkg whoamiShow current userlegion pkg ciClean install from lockfilelegion pkg doctorDiagnose environment