Environment variables reference
LUX_API_KEY
API key for authenticating with LuaRocks.
Required by lx upload. Obtain your key from the API key settings page.
LUAROCKS_2FA_SECRET
Secret key for generating TOTP codes for two-factor authentication.
Lux reads this variable to automatically generate 2FA codes during lx upload, eliminating the need for the --tfa-code flag.
Obtain the secret from the 2FA settings page on LuaRocks.
LUX_ACCESS_TOKENS
Access tokens for fetching from private repositories, as a whitespace-separated
list of host=token pairs.
export LUX_ACCESS_TOKENS="github.com=ghp_1234abcd gitlab.com=OAuth2:glpat-1234abcd"
See How to configure access tokens for supported token types and hosts.