legion pkg — Package Manager

The Legion package manager provides npm-quality tooling for managing legionhjyu packages.

Registry: legion-registry.pages.dev · Workers URL

Installation

sh
# Linux/macOS — one-liner
curl -fsSL https://legion-registry.pages.dev/install.sh | sh

# Or download binary directly
# Linux:   https://legionhjyu-docs.pages.dev/downloads/legion-linux-x64
# macOS:   https://legionhjyu-docs.pages.dev/downloads/legion-macos-x64
# Windows: https://legionhjyu-docs.pages.dev/downloads/legion-windows-x64.exe

Quick Start

sh
legion pkg init my-project          # Initialize project
legion pkg install legion-colors    # Install a package
legion pkg install legion-http -D   # Install as dev dependency
legion pkg run start                # Run a script
legion pkg publish                  # Publish to registry

Commands

Package Management

CommandDescription
legion pkg install [pkg...]Install packages (from manifest if no args)
legion pkg install pkg@1.2.0Install specific version
legion pkg install pkg -DInstall as dev dependency
legion pkg install pkg --globalInstall globally
legion pkg remove Uninstall a package
legion pkg update [pkg...]Update to latest versions
legion pkg outdatedShow packages with newer versions
legion pkg listList installed packages
legion pkg list --depth=2Show dependency tree
legion pkg ciClean install from lockfile (like npm ci)
CommandDescription
legion pkg search Search registry with relevance scoring
legion pkg info Show full package details + versions
legion pkg info --jsonJSON output

Project

CommandDescription
legion pkg init [name]Initialize new project (interactive)
legion pkg init --yesSkip prompts, use defaults
legion pkg run