lux-cli-lua(1)
π
bestie, it's lux-cli-lua(1) time π
this page lives in the General Commands Manual and it's all about running lua with the LUA_PATH and LUA_CPATH set to the specified lux tree. okay so, let's go. β¨
πΈ NAME πΈ
lux-cli-lua β Run lua, with the LUA_PATH and LUA_CPATH set to the specified lux tree. π
π¦ SYNOPSIS π¦
here's the whole synopsis, copy-paste energy, exactly as the page gives it:
lux-cli lua [--lua] [--server] [--test] [--build] [--extra-servers]
[--namespace] [--no-loader] [--lua-dir] [--no-lock] [--lua-version]
[--only-deps] [-p|--package] [--tree] [--cache-dir] [--help]
[--data-dir] [--variables] [--profile] [--verbose] [--no-progress]
[--no-prompt] [--preset] [--nvim] [--no-tfa] [--timeout] [--max-jobs]
[--no-luarc] [--no-wrap-bin] [--user-agent] [ARGS]
π DESCRIPTION π
Run lua, with the LUA_PATH and LUA_CPATH set to the specified lux tree. that's the whole main-character mission, fr fr. π«Ά
π OPTIONS π
--lua <LUA>β Path to the Lua interpreter to use. π--server <server>β Fetch rocks/rockspecs from this server (takes priority over config file). π--testβ Add test dependencies to the environment. π§ͺ--buildβ Add build dependencies to the environment. π οΈ--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. π¦--no-loaderβ Disable the Lux loader. If a rock has conflicting transitive dependencies, disabling the Lux loader may result in the wrong modules being loaded. β οΈ--lua-dir <prefix>β Specify the directory in which to install Lua if not found. π--no-lockβ Ignore the project's lockfile and don't create one. π--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.
--only-depsβ Build only the dependencies. π§±-p,--package <PACKAGE>β Package to build. π¦--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. ποΈ--helpβ Print help. π--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:
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>". π΅οΈ[ARGS]β Arguments to pass to Lua. Seelua -h. π
that's the whole lux-cli-lua(1) page, bestie β footer sign-off time: source/version lua, page lux-cli-lua(1), General Commands Manual date slot, and all the vibes. 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