lux-cli-doc(1)
π lux-cli-doc β show docs for a rock you already installed
okay so real quick, bestie: this is the lux-cli-doc(1) page from the General Commands Manual, and it's basically the "hey what does this thing actually do" button for your installed rocks. no cap, it's the chillest subcommand in the whole lux family π«Ά
β¨ SYNOPSIS β¨
lux-cli doc [-p|--package] [--online] [--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]
like, yes, that's a lot of brackets, but most of them are optional-optional, so don't spiral ππ
πΈ DESCRIPTION πΈ
Show documentation for an installed rock π
that's it. that's the whole job. you point it at a rock, it hands you the docs. iconic behavior, honestly π
π OPTIONS π
-p,--package<PACKAGE> β the package you want docs for β¨ if you don't set it, lux will grab the package that's installed in the tree, or β if your tree has a whole bunch of them β it'll prompt you to pick one. very "let me help you choose" of it π«Ά--onlineβ skips your local docs entirely and pops the package's homepage open in a browser π like, go straight to the source, we love a field trip--server<server> β fetch rocks/rockspecs from this server (it takes priority over whatever's in your config file) π₯--extra-servers<extra-server> β fetch rocks/rockspecs from these servers in addition to the main server, and it overrides any entries sitting in the config file π extra extra, read all about it--namespace<namespace> β specify the luarocks server namespace to use ποΈ--lua-dir<prefix> β tells lux the directory to install Lua into if it can't find one already π--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 you don't set it, lux will attempt to detect the Lua version, and here's how:- 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 π³ and in a workspace you can use this to specify a detached workspace tree, which is a whole vibe--cache-dir<cache-dir> β specifies the cache directory, e.g. for luarocks manifests ποΈ--data-dir<data-dir> β specifies the data directory, which is where 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:releasepossible values:releasedev
--verboseβ display verbose output of the commands being executed, which turns on DEBUG logs π and if you want TRACE logs too, setRUST_LOG=trace. we love a chatty terminal--no-progressβ don't print any progress bars or spinners π« like, no little animations, just silence--no-prompt<NO_PROMPT> β skip prompts and just select 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 (she's retired, let her rest)--no-tfaβ disable prompts for two-factor authentication (2FA) codes π¨ but like, it is strongly recommended that you enable 2FA instead β see (https://luarocks.org/settings/two-factor-auth). fr fr, protect your account--timeout<seconds> β timeout on network operations, in seconds β±οΈ0means no timeout (wait forever, bestie, we'll be here). default is30--max-jobs<MAX_JOBS> β maximum buffer size for parallel jobs, like 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) π
ngl, the amount of options here is giving "main character energy" but you literally only need lux-cli doc and a package name. the rest is just β¨controlβ¨
and that's the whole page, bestie π¦ this slice of wisdom came to you courtesy of the doc source, tagged lux-cli-doc(1) β go forth and read your docs π
π
π¦ 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