lux-cli-new(1)
π NAME π
okay so bestie, welcome to lux-cli-new(1) β the new page from the General Commands Manual. The assignment is literally: lux-cli-new β Create a new Lua project. main character energy only. π
β¨
β¨ SYNOPSIS β¨
lux-cli new [--name] [--description] [--server] [--extra-servers]
[--license] [--maintainer] [--namespace] [--labels] [--lua-dir]
[--lua-version] [--lua-versions] [--main] [--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] <TARGET>
okay this synopsis is giving βall the flags showed up to the group chat at once,β but itβs exact and iconic. π
π¦ DESCRIPTION π¦
Create a new Lua project. periodt. Youβre here to spin up a fresh Lua project and pick your setup details. πΈ
π OPTIONS π
--name <NAME>β The projectβs name. π--description <DESCRIPTION>β The description of the project. πΈ--server <server>β Fetch rocks/rockspecs from this server (takes priority over 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). β¨--license <LICENSE>β The license of the project. Generic license names will be inferred. π--maintainer <MAINTAINER>β The maintainer of this project. Does not have to be the code author. π«Ά--namespace <namespace>β Specify the luarocks server namespace to use. π--labels <LABELS>β A comma-separated list of labels to apply to this project. π--lua-dir <prefix>β Specify the directory in which to install Lua if not found. π¦--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.
--lua-versions <LUA_VERSIONS>β A version constraint on the required Lua version for this project. Examples:">=5.1","5.1". π₯--main <MAIN>β Possible values:srcluanone
--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, enablingDEBUGlogs. To enableTRACElogs, setRUST_LOG=trace. π--no-progressβ Donβt print any progress bars or spinners. π--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.
π¨ bestie warning: 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'). π<TARGET>β The directory of the project. π
okay thatβs the whole new page, bestie. Signed off from lux-cli-new(1) β footer source/version: new; manual: lux-cli-new(1); date: not shown, so no invented dates here. go make a project that eats. ππ«Άβ¨
π¦ 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