Installing Packages
The --install flag manages package installation from the central registry.
Basic Usage
Section titled “Basic Usage”Install specific packages
Section titled “Install specific packages”lune --install colors networking ui-kitInstall a specific version
Section titled “Install a specific version”lune --install colors@1.0.0Install from lune.config.json
Section titled “Install from lune.config.json”lune --installThis reads packages from your lune.config.json file and installs any that are missing.
Update all packages
Section titled “Update all packages”lune --updpkgUpdates all installed packages to their latest versions and locks them in lune.config.json.
What happens during installation
Section titled “What happens during installation”- Fetch manifest - Downloads package info from the registry
- Resolve version - Finds the latest semver-compatible tag (or uses specified version)
- Download - Downloads and extracts the package to
lune_packages/ - Save info - Creates
lune-pkg.jsonwith package metadata - Update config - Adds the package to
lune.config.json - Generate aliases - Adds path aliases to
.luaurc
Example Output
Section titled “Example Output”Lune Package Installer[1/4] Installing 2 package(s) → colors ↳ tag: v1.2.0 ✓ Installed → networking ↳ tag: v0.5.3 ✓ Installed[3/4] Updating lune.config.json[4/4] Generating .luaurc
✓ 2 package(s) installed!Using installed packages
Section titled “Using installed packages”After installation, you can require packages using their alias:
local Colors = require("@colors")local Net = require("@networking")The aliases are defined in .luaurc and work with Luau LSP for autocompletion.
Package Location
Section titled “Package Location”All packages are installed to ./lune_packages/<package-name>/.
The installer automatically detects the entry point by looking for:
init.luaumain.luaulib/init.luausrc/init.luau