lux-cli-add(1)
πΈ NAME πΈ
okay bestie, welcome to lux-cli-add(1) β the General Commands Manual page for lux-cli add, aka the glow-up command that adds a dependency to the current project. Manual name: lux-cli-add. Main character energy: adding stuff. π
β¨
π SYNOPSIS π
lux-cli add [--force] [-b|--build] [--server] [--extra-servers]
[-t|--test] [--namespace] [-p|--package] [--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] [PACKAGE_REQ]
π¦ DESCRIPTION π¦
Add a dependency to the current project. Thatβs the whole vibe. Simple, iconic, slay. π
β¨ OPTIONS β¨
--forceβ Reinstall without prompt if a package is already installed.-b,--build <BUILD>β Install the package as a development dependency. Also calleddev. π οΈ--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.-t,--test <TEST>β Install the package as a test dependency. π§ͺ--namespace <namespace>β Specify the luarocks server namespace to use.-p,--package <PACKAGE>β Project to modify.--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
--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
- Possible values:
--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.--no-prompt <NO_PROMPT>β Skip prompts, selecting the default option. Prompting is enabled by default in terminal/TTY environments.- Possible values:
truefalse
- Possible values:
--preset <preset>β Configure Lux for a specific environment. Valid presets are:'nvim'- Possible values:
nvim: Configure Lux for Neovim plugins
- Possible values:
--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').[PACKAGE_REQ]β Package or list of packages to install and add to the project's dependencies.- Examples:
"pkg","pkg@1.0.0","pkg>=1.0.0" - If you do not specify a version requirement, lux will add a pessimistic
~>constraint on the latest version. - You can also specify git packages by providing a git URL shorthand.
- Example:
"github:owner/repo" - Supported git host prefixes are:
"github:","gitlab:","sourcehut:"and"codeberg:". - Lux will automatically fetch the latest SemVer tag or commit SHA if no SemVer tag is found.
- Example:
- Note that projects with git dependencies cannot be published to luarocks.org
- Examples:
source/version + date check: this footer only gives us add and lux-cli-add(1) β no separate source/version or date line in this copy, bestie. Thatβs the whole page, and it ate. π
ππ¦
π¦ 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