lux-cli-shell(1)
π lux-cli-shell β like, the manual page bestie
okay so this is lux-cli-shell(1), from the General Commands Manual β yes bestie, that's the manual name, we're fancy now π. It's a whole page about one command and it's genuinely iconic, so let's get into it.
β¨ NAME β¨
lux-cli-shell β spawns an interactive shell with PATH, LUA_PATH, LUA_CPATH and LUA_INIT set πβ¨
like⦠it literally just hands you a shell that already knows where your Lua stuff lives. no cap, that's the whole vibe.
πΈ SYNOPSIS πΈ
lux-cli shell [--test] [--build] [--server] [--extra-servers]
[--no-loader] [--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]
π¦ DESCRIPTION π¦
Spawns an interactive shell with PATH, LUA_PATH, LUA_CPATH and LUA_INIT set π
that's it. that's the whole thing. she sets up your environment, she opens a shell, she slays. periodt.
π OPTIONS π
quick heads up bestie: you're gonna see {n} all over these descriptions β that's literally just how it appears in the original, so I'm leaving it EXACTLY as-is. copy-paste brain, no edits π₯
--testβ add test dependencies to the shell's paths,{n}on top of the regular dependencies π§ͺ--buildβ add only build dependencies to the shell's paths. only. build. ones. π--server <server>β fetch rocks/rockspecs from this server (and yeah, it takes priority over the config file π)--extra-servers <extra-server>β fetch rocks/rockspecs from these servers in addition to the main server{n}(this overrides any entries in the config file, fyi)--no-loaderβ disable the Lux loader.{n}β οΈ but real talk: if a rock has conflicting transitive dependencies,{n}disabling the Lux loader may result in the wrong modules being loaded.{n}so likeβ¦ be careful, bestie, that's a genuine warning π--namespace <namespace>β specify the luarocks server namespace to use--lua-dir <prefix>β specify the directory in which to install Lua if it's not found π--lua-version <ver>β which Lua installation to use.{n}the valid versions are:'5.1','5.2','5.3','5.4','5.5','jit'and'jit52'.{n}if you don't set it, Lux will attempt to detect the Lua version:{n}- from the current project, if it has an exact Lua version requirement
- from the Lua installation that's available on the
PATH
--tree <tree>β which tree to operate on.{n}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,{n}in which the default user install tree resides{n}(e.g.~/.local/share/lux) π--variables <variable>β override config variables.{n}example:lx -v "LUA=/path/to/lua" ...--profile <profile>β the build profile to use when compiling packages.{n}default:release
possible values:
releasedev
--verboseβ display verbose output of commands executed, enabling DEBUG logs.{n}want TRACE logs? setRUST_LOG=traceπ--no-progressβ don't print any progress bars or spinners. silence. blessed silence. π€«--no-prompt <NO_PROMPT>β skip prompts, selecting the default option.{n}prompting is enabled by default in terminal/TTY environments
possible values:
truefalse
--preset <preset>β configure Lux for a specific environment.{n}valid presets are:'nvim'
possible values:
nvim: configure Lux for Neovim plugins π
--nvimβ[DEPRECATED]configure lux for installing Neovim packages.{n}use--preset nviminstead π«Ά (deprecated, bestie β switch it up)--no-tfaβ disable prompts for two-factor authentication (2FA) codes.{n}β οΈ it is strongly recommended to enable 2FA instead, see (https://luarocks.org/settings/two-factor-auth) β seriously, don't turn off 2FA, I'm begging π--timeout <seconds>β timeout on network operations, in seconds.{n}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{n}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') π«Ά
okay that's the whole page, you ate that π and for the cute sign-off: this little beauty lives under the source/version tag shell in the lux-cli-shell(1) manual β catch you in the group chat, bestie π§β¨π
π¦ 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