lux-cli-ge...te-rockspec(1)
π lux-cli-generate-rockspec(1) β General Commands Manual
okay so bestie, you know that thing where you have a whole project and you need a rockspec file to fall out of it like magic? yeah. that's this. it lives in the lux-cli family (the manual name is lux-cli-generate-rockspec, iconic, no notes) and it's here to hand you a rockspec without you hand-writing the thing at 2am. let's GO π
β¨ NAME β¨
lux-cli-generate-rockspec β generate a rockspec file from a project πͺ
πΈ SYNOPSIS πΈ
lux-cli generate-rockspec [-p|--package] [--output-format] [--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]
π¦ DESCRIPTION π¦
generate a rockspec file from a project. that's the whole vibe. you point it at your project, it produces a rockspec, you go live your life π
π OPTIONS π
okay this is the long part but honestly? every single flag matters so we're doing all of them. grab a snack π
-p,--package <PACKAGE>β the package you want the rockspec generated for π--output-format <OUTPUT_FORMAT>β defaults totext. the possible values are:jsontext
--server <server>β grab rocks/rockspecs from this server. it takes priority over whatever's in the config file β--extra-servers <extra-server>β grab rocks/rockspecs from these servers in addition to the main server. this overrides any entries in the config file π₯--namespace <namespace>β specify the luarocks server namespace to use π--lua-dir <prefix>β tell it which directory to install Lua in, if it can't find it already--lua-version <ver>β which Lua installation to use. the 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:- 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. 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, 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, enabling DEBUG logs. to enable TRACE logs, setRUST_LOG=traceπ--no-progressβ don't print any progress bars or spinners. silence. peaceful. π--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--no-tfaβ disable prompts for two-factor authentication (2FA) codes. it is strongly recommended to enable 2FA instead, see (https://luarocks.org/settings/two-factor-auth) π--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')
bestie heads up:--nvimis deprecated, so likeβ¦ use--preset nviminstead, fr fr. and about--no-tfa? it is strongly recommended to enable 2FA instead, so maybe don't β
and that's the whole page π you made it to the end, proud of you π«Ά
sign-off time: this was generate-rockspec from the lux-cli-ge...te-rockspec(1) manual β General Commands Manual energy, mwah πβ¨
π¦ 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