One project, one version
Pin the Lua version for your project so terminals, scripts and CI use the same runtime.
vfox-luaLua version management
Install, switch and pin Lua with vfox or mise. From local development to CI, keep your commands familiar and your environment consistent.
Requires vfox 1.0.12 or newer
$ vfox install [email protected]
✓ Lua is ready
$ vfox exec [email protected] -- lua -v
Lua 5.4.7
Pin the Lua version for your project so terminals, scripts and CI use the same runtime.
LuaRocks is included by default on Linux and macOS. Install modules and load them right away.
Use native vfox capabilities or the vfox plugin backend in mise.
01 / GET STARTED
Install the build dependencies, then choose your version manager. These examples use Lua 5.4.7; use the search command to find other releases.
vfox add --source https://github.com/yeshan333/vfox-lua/releases/download/v1.4.0/vfox-lua-1.4.0.zip luavfox install [email protected]vfox exec [email protected] -- lua -vmise plugins install vfox-yeshan333-vfox-lua https://github.com/yeshan333/vfox-lua.gitmise use -g vfox:yeshan333/[email protected]mise exec -- lua -v02 / EVERYDAY DEVELOPMENT
vfox saves your choice in .vfox.toml and creates a stable .vfox/sdks/lua path. Inside the project, exec can use the selected version directly.
eval "$(vfox activate bash)"
vfox use -p [email protected]
vfox exec lua -- lua -vLua 5.x installs on Linux and macOS include LuaRocks and module search paths by default. If LuaRocks installation fails, the plugin explains why and keeps Lua usable.
vfox exec [email protected] -- luarocks install luacheck
vfox exec [email protected] -- luacheck --versionThe default is a source build using MSYS2. This installation option downloads LuaBinaries instead; versions that are not provided fail with a clear message.
Available versions: 5.5.0, 5.4.8, 5.3.6, 5.2.4
$env:VFOX_LUA_WINDOWS_LUABINARIES = "1"
vfox install [email protected]
vfox exec [email protected] -- lua.exe -vPrebuilt archives use SourceForge HTTPS mirrors without a pinned SHA-256 check. Use the default source build if you need download integrity verification.
03 / GOOD TO KNOW
Run vfox search lua or mise ls-remote vfox:yeshan333/vfox-lua. Replace 5.4.7 in the examples with the version you need.
Yes. Set VFOX_LUA_LUAROCKS=0 or false before installation. LuaRocks is currently not included on Windows.
Linux, macOS and Windows are supported. Lua 5.0 and earlier are not supported on Linux; prebuilt Windows packages support only the versions listed above.
Run vfox update lua. Plugins added with the installation command on this site read updates from the manifest published in this repository.
Find the source, report an issue or explore the releases on GitHub.