The LNMP CLI supports configuration through environment variables:
export LNMP_LOG_LEVEL=debug # error, warn, info, debug, traceexport LNMP_FORMAT=json # text, json, binary, compactexport LNMP_VERBOSE=1 # Enable verbose output
export LNMP_QUIET=1 # Enable quiet modeexport LNMP_COLOR=always # auto, always, never
export NO_COLOR=1 # Standard env var to disable colorsexport LNMP_PROFILE=strict # loose, standard, strictexport LNMP_CONFIG=~/.lnmprc # Path to config file (future)use lnmp_cli::Config;
fn main() {
let config = Config::from_env();
if config.is_verbose() {
println!("Verbose mode enabled");
}
if config.use_colors() {
println!("\x1b[32m✓\x1b[0m Green checkmark");
}
}LNMP_LOG_LEVEL=debug LNMP_FORMAT=json lnmp-cli info versionLNMP_QUIET=1 NO_COLOR=1 lnmp-cli container inspect file.lnmpLNMP_PROFILE=strict lnmp-cli validate check input.lnmp- Config file support (~/.lnmprc, .lnmp.toml)
- Per-project config (.lnmp/config.toml)
- Config override with CLI flags (--verbose, --format, etc.)
- Config validation and defaults