lux-cli-doc(1)

πŸ“¦ version 0.48.0, in nixpkgs unstable

πŸ’… 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: release possible values:
    • release
    • dev
  • --verbose β€” display verbose output of the commands being executed, which turns on DEBUG logs πŸ” and if you want TRACE logs too, set RUST_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:
    • true
    • false
  • --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 nvim instead (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 ⏱️ 0 means no timeout (wait forever, bestie, we'll be here). default is 30
  • --max-jobs <MAX_JOBS> β€” maximum buffer size for parallel jobs, like downloading rockspecs and installing rocks πŸƒβ€β™€οΈπŸ’¨ 0 means no limit. default is 0
  • --no-luarc β€” do not generate or update a .luarc.json file when building a project πŸ“
  • --no-wrap-bin β€” do not wrap Lua bin scripts 🎁
  • --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