lux-cli-check(1)
β¨ lux-cli-check(1) β the check command, bestie edition β¨
okay so this is a page from the General Commands Manual (yes, that's the manual name, we're fancy now π
), and it's all about lux-cli-check β the glow-up command that type checks your project. Buckle up π
πΈ NAME πΈ
lux-cli-check β [EXPERIMENTAL] type check the current project based on EmmyLua/LuaCATS annotations.
It respects .emmyrc.json and .luarc.json files in the project directory. periodt. π«Ά
bestie, note the [EXPERIMENTAL] tag β it's literally right there in the name section, so don't come for me if it's still cooking π
π¦ SYNOPSIS π¦
lux-cli check [--path] [-i|--ignore] [--server] [--extra-servers]
[--output-format] [--namespace] [--output] [--lua-dir]
[--warnings-as-errors] [--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, that's the whole vibe in one block. slay β¨
π DESCRIPTION π
[EXPERIMENTAL] Type check the current project based on EmmyLua/LuaCATS annotations. no cap, it's doing real analysis on your Lua.
And it respects .emmyrc.json and .luarc.json files in the project directory β so if you already have your config set up, it just gets you. main character energy tbh π
π OPTIONS π
okay this is the long part, but every single one is here, i promise, no skipping, we don't do that π
--path<PATH>β path to a workspace, directory, or Lua file to check. defaults to the current workspace, iykyk.-i,--ignore<IGNORE>β a comma-separated list of ignore patterns. patterns must follow glob syntax. and heads up: Lux will automatically add top-level ignored project files for you π«Ά--server<server>β fetch rocks/rockspecs from this server (and yep, it takes priority over the config file).--extra-servers<extra-server>β fetch rocks/rockspecs from these servers in addition to the main server. (overrides any entries in the config file β so if you had config entries, they're getting ghosted π»)--output-format<OUTPUT_FORMAT>[default:text] β the output format. possible values:jsontext
--namespace<namespace>β specify the luarocks server namespace to use.--output<OUTPUT>[default:stdout] β output destination. (eitherstdoutor a file path β and it's only used when the output format isjson, so don't try it with text, ok?)--lua-dir<prefix>β specify the directory in which to install Lua if it's not found.--warnings-as-errorsβ treat warnings as errors. yeah. they're not just suggestions anymore π€--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.
--tree<tree>β which tree to operate on. in a workspace, this can be used to specify a detached workspace tree. fancy π§--cache-dir<cache-dir>β specifies the cache directory, e.g. for luarocks manifests.--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, enablingDEBUGlogs. to enableTRACElogs, setRUST_LOG=trace. go off, debug queen π₯--no-progressβ don't print any progress bars or spinners. clean output, no chaos.--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. it's giving legacy era, we've moved on π--no-tfaβ disable prompts for two-factor authentication (2FA) codes.
okay real talk: it is strongly recommended to enable 2FA instead β see <https://luarocks.org/settings/two-factor-auth>. please, bestie, protect your account π
--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>".-h,--helpβ print help (see a summary with'-h'). the classic π
that's literally everything, not a single flag left behind π
π okay so this page is signed off with check on one side and lux-cli-check(1) on the other β that's the source/version and the page name, no date to be found, so that's all we've got, bestie. mwah, go type check something iconic πβ¨
π¦ 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