luac

Lua bytecode compiler. More information: <https://www.lua.org>.

Install

All systems
curl cmd.cat/luac.sh
Alpine
apk add lua
Arch Arch Linux
pacman -S lua
CentOS
yum install lua
Fedora
dnf install lua
OS X
brew install lua
Docker
docker run cmd.cat/luac luac powered by Commando

Lua bytecode compiler. More information: <https://www.lua.org>.

  • Compile a Lua source file to Lua bytecode:
    luac -o byte_code.luac source.lua
  • Do not include debug symbols in the output:
    luac -s -o byte_code.luac source.lua

© tl;dr; authors and contributors