lux-cli-dist(1)
π
lux-cli-dist(1) β the lux-cli dist glow-up, bestie π
okay so this page is fresh out of the General Commands Manual, and it's all about distributing a Lux project. no cap, it's giving "ship it" energy. π¦β¨
β¨ NAME β¨
lux-cli-dist β Distribute a Lux project π
π SYNOPSIS π
lux-cli dist [--server] [--extra-servers] [--namespace] [--lua-dir]
[--lua-version] [--tree] [--cache-dir] [--data-dir] [--variables]
[--profile] [--verbose] [--no-progress] [--no-prompt] [--preset]
[--nvim] [--no-tfa] [--timeout] [--max-jobs] [--no-luarc]
[--no-wrap-bin] [--user-agent] [-h|--help] <subcommands>
πΈ DESCRIPTION πΈ
short and iconic: Distribute a Lux project. that's the whole assignment, and honestly? slay. π
π₯ OPTIONS π₯
okay bestie, here's the full option menu β every flag, every value, no skips. π
--server <server>β Fetch rocks/rockspecs from this server (takes priority over config file). π°οΈ--extra-servers <extra-server>β Fetch rocks/rockspecs from these servers in addition to the main server (overrides any entries in the config file). β¨--namespace <namespace>β Specify the luarocks server namespace to use. π·οΈ--lua-dir <prefix>β Specify the directory in which to install Lua if not found. π--lua-version <ver>β Which Lua installation to use. Valid versions are:'5.1','5.2','5.3','5.4','5.5','jit'and'jit52'. If not set, Lux will attempt to detect the Lua version:- From the current project, if it has an exact Lua version requirement.
- From the Lua installation that is available on the
PATH. π
--tree <tree>β Which tree to operate on. In a workspace, this can be used to specify a detached workspace tree. π³--cache-dir <cache-dir>β Specifies the cache directory, e.g. for luarocks manifests. ποΈ--data-dir <data-dir>β Specifies the data directory, in which the default user install tree resides (e.g.~/.local/share/lux). π--variables <variable>β Override config variables. Example:lx -v "LUA=/path/to/lua" ...π§--profile <profile>β The build profile to use when compiling packages. Default:release. possible values are:releasedevβοΈ
--verboseβ Display verbose output of commands executed, enabling DEBUG logs. To enable TRACE logs, setRUST_LOG=trace. π--no-progressβ Don't print any progress bars or spinners. π«π--no-prompt <NO_PROMPT>β Skip prompts, selecting the default option. Prompting is enabled by default in terminal/TTY environments. possible values:truefalseπ
--preset <preset>β Configure Lux for a specific environment. Valid presets are:'nvim'. possible values:nvimβ Configure Lux for Neovim plugins π§
--nvimβ [DEPRECATED] Configure lux for installing Neovim packages. Use--preset nviminstead. β οΈ--no-tfaβ Disable prompts for two-factor authentication (2FA) codes. It is strongly recommended to enable 2FA instead see (https://luarocks.org/settings/two-factor-auth). π--timeout <seconds>β Timeout on network operations, in seconds.0means no timeout (wait forever). Default is30. β±οΈ--max-jobs <MAX_JOBS>β Maximum buffer size for parallel jobs, such as downloading rockspecs and installing rocks.0means no limit. Default is0. πββοΈπ¨--no-luarcβ Do not generate or update a.luarc.jsonfile when building a project. π--no-wrap-binβ Do not wrap Luabinscripts. π¦--user-agent <USER_AGENT>β The user agent to set when making web requests. Default is"lux/<version>". π-h,--helpβ Print help (see a summary with-h). π¬
π SUBCOMMANDS π
these are the little side quests under dist, and yes, they all matter. π«Ά
π« lux-cli-dist-flat-archive(1)
Distribute an archive of a flat install tree which includes all dependencies. The resulting archive does not include the etc directory or build dependencies. Unlike a Lux tree, dependency conflicts are not supported/handled. π¦
π« lux-cli-dist-bin(1)
Compile a Lux project, including its dependencies, into a single binary, which runs on systems that do not have Lua installed. Projects with native Lua modules are not single binaries: the modules are copied as shared libraries next to the output binary, and must be shipped alongside it. As with flat-archive, dependency conflicts are not supported/handled.
The entrypoint is specified via the lux.toml's [run] field, e.g.:
[run]
args = ["src/main.lua"]
π« lux-cli-dist-help(1)
Print this message or the help of the given subcommand(s). π
okay that's the whole page bestie π«Ά β brought to you by the footer source/version vibes of dist and lux-cli-dist(1), and the date isn't printed in this footer, so we're not inventing one. periodt. π
β¨
π¦ where this page comes from
- nixpkgs unstable: lux-cli 0.48.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms