lux-cli-fmt(1)
β¨ lux-cli-fmt β the format-y glow-up page β¨
okay so this is lux-cli-fmt, a page from the General Commands Manual, and it's literally the glow-up button for your codebase π
π¦ NAME π¦
lux-cli-fmt β formats the codebase with stylua. that's it, that's the whole vibe. your code goes in messy, comes out iconic π
πΈ SYNOPSIS πΈ
lux-cli fmt [--path] [--backend] [--server] [--extra-servers]
[-p|--package] [--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]
bestie look at that flag list. it's giving full glamour, no cap β¨
π DESCRIPTION π
Formats the codebase with stylua.
literally that. the codebase gets formatted, stylua does the formatting, you get to look like you have your life together π«Ά
π OPTIONS π
okay here's where it gets juicy, one bullet per flag, no skipping, i promised π
--path <PATH>β path to a workspace, directory, or Lua file to format. defaults to the current workspace. pick your victim π--backend <BACKEND>β the formatter doing the werk. default:stylua
possible values:
stylua: mainly follows the [Roblox Lua style guide](https://roblox.github.io/lua-style-guide/) β the classic, the icon, the blueprint πluafmt: the default formatter used by [emmylua-analyzer-rust](https://github.com/EmmyLuaLs/emmylua-analyzer-rust). if invoked withlx --lua-version=<version> fmt, Lux will configure the luafmt syntax level to match the specified Lua version πemmylua-codestyle: the default formatter used by [lua-language-server](https://luals.github.io/) π§
--server <server>β fetch rocks/rockspecs from this server (takes priority over config file). main character server energy, it wins over the config file fr fr π₯--extra-servers <extra-server>β fetch rocks/rockspecs from these servers in addition to the main server{n} (overrides any entries in the config file). extra servers, extra flair π-p,--package <PACKAGE>β package to format. just the one. it gets the whole makeover πΈ--namespace <namespace>β specify the luarocks server namespace to use π--lua-dir <prefix>β specify the directory in which to install Lua if not found. so if Lua's playing hide and seek, you tell it where to look π΅οΈ--lua-version <ver>β which Lua installation to use.{n} valid versions are:'5.1','5.2','5.3','5.4','5.5','jit'and'jit52'.{n} if not set, Lux will attempt to detect the Lua version:{n} - from the current project, if it has an exact Lua version requirement.{n} - from the Lua installation that is 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. keep it cute, keep it cached π--data-dir <data-dir>β specifies the data directory,{n} in which the default user install tree resides{n} (e.g.~/.local/share/lux). home sweet home for your data π‘--variables <variable>β override config variables.{n} example:lx -v "LUA=/path/to/lua" ...β you're literally the boss of the config now π--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} to enable TRACE logs, setRUST_LOG=trace. now you see everything π--no-progressβ don't print any progress bars or spinners. no spinning, no bars, just silence. some of us need that calm π§ββοΈ--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. it's the old way, bestie, we moved on π--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)
π¨ real talk: this one lowers your security, and the page says it's strongly recommended you enable 2FA instead. keep that lock on, bestie π
--timeout <seconds>β timeout on network operations, in seconds.{n}0means no timeout (wait forever). default is30. waiting forever is a choice β³--max-jobs <MAX_JOBS>β maximum buffer size for parallel jobs, such as downloading rockspecs and installing rocks.0means no limit. default is0. go wide, no cap πββοΈπ¨--no-luarcβ do not generate or update a.luarc.jsonfile when building{n} a project. hands off the luarc π«Ά--no-wrap-binβ do not wrap Luabinscripts. no wrapping, no drama π--user-agent <USER_AGENT>β the user agent to set when making web requests. default is"lux/<version>". introduce yourself politely to the internet π-h,--helpβ print help (see a summary with'-h'). classic, iconic, always there for you π
β the cute sign-off β
and that's the whole page, bestie β it lives in the General Commands Manual, it's the fmt subcommand, and it's filed under lux-cli-fmt(1) π¦
this little moment was brought to you by the source/version line at the bottom, which in the original reads fmt on the left and lux-cli-fmt(1) on the right, with the date sitting quietly in the middle. consider it your receipt, your timestamp, your lil footer energy. slay, go format something pretty β¨π
π
π¦ 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