Repository navigation
v0.3.17
LuCLI v0.3.17
Downloads
- lucli-0.3.17.jar/lucli.jar - Universal JAR (Java 21+, works everywhere) ✅ Signed
- lucli-0.3.17-linux - Shell wrapper for Linux (Java 21+ required)
- lucli-0.3.17-macos - Shell wrapper for macOS (Java 21+ required)
- lucli-0.3.17.bat - Windows batch launcher (Java 21+ required)
- install.sh - POSIX installer bootstrap (
curl ... | sh) - install.ps1 - PowerShell installer bootstrap (
irm ... | iex)
All downloads require Java 21+. JAR files are cryptographically signed for authenticity.
## CHANGES
-
CI + Release Stability for Environment Fallback/Snapshot Builds: Updated BATS dry-run coverage to match current missing
--envbehavior (warn and use base config instead of failing), and hardenedrelease.ymlpublish Docker build steps by restoring Maven cache inpublishand building JARs in offline mode to avoid snapshot-resolution 403 regressions. -
Docs: Dependency Examples Page: Added
content/docs/100_dependencies-and-extensions/020_dependency-examples.mdwith copy/pastelucee.jsonsnippets for supported dependency types (git,forgebox, andextensionvia ID/slug, URL, and local path), plus install command examples; linked it from the dependency section in docs index and dependency management page. -
Java 21 Runtime Gate in Wrapper Scripts: Added early runtime checks in
src/bin/lucli.shandsrc/bin/lucli.batso LuCLI fails fast with a clear error when Java is missing, unparseable, or older than Java 21. -
Dependency Shortcut Templates for
deps add:lucli deps add <shortcut>now supports non-interactive shortcut templates loaded fromsrc/main/resources/dependencies/dependency-shortcuts.json(including built-intestboxandfw1), and--devwrites the shortcut dependency todevDependencies. -
Fix: Numeric
#env:Placeholder Deserialization inlucee.json: Server config loading now preprocesses typed numeric port fields before strict Jackson binding, so values like"port": "#env:HTTP_PORT#"(including env overrides) resolve correctly from.env/system variables instead of failing withnot a valid int value. -
Fix: Environment Override
envFileReload: Applying--envoverrides now reloads the realized mergedenvFilebefore runtime env assembly, so dry-run env previews and server runtime env variables use the environment-specific file (for exampleprod.env) instead of the base file. -
Dry-Run
--includeSection Selector:lucli server start --dry-runandlucli server run --dry-runnow support explicit section selection via--include(for example--include env,lucee,tomcat-web,tomcat-server).--include-envno longer implicitly includes realizedlucee.json; once any include selector is provided, only requested sections are printed. Legacy start preview flags remain available as aliases. -
Dry-Run Realized Env Variable Preview:
lucli server start --dry-run --include-envnow prints a dedicated section showing environment variables realized duringlucee.jsonplaceholder substitution (#env:VAR#, deprecated${VAR}, and default fallbacks), in addition to the runtime env preview. -
Dependency-Level
enabledToggle for Extensions: Added support forenabled: falseondependencies/devDependenciesentries (including environment overrides) so disabled extensions are fully ignored bydeps install, auto-install on server start, and runtime extension activation (LUCEE_EXTENSIONS/ deploy handling). -
Fix: Default
rewrite.configNow Actually Serves Static Files: The bundledrewrite_template/rewrite.configwas using a stack ofRewriteCond %{REQUEST_URI} !patternentries before a single rewriteRewriteRuleto "skip" static-file paths. On Tomcat 11'sRewriteValvethat idiom does NOT short-circuit the way Apachemod_rewritedoes — the conditions effectively don't gate the rule, the rule fires for every request, andpublic/static files (.css,.js,.txt,.png, etc.) silently 404 even though their extensions are explicitly listed in the negation. The template now expresses the same intent as positive-matchRewriteRule … - [L]passthroughs (router-file passthrough, CFML-extension match, conventional static directories,/lucee,/rest/), which terminate rule processing for matching requests and let Tomcat's default servlet serve the file. Each passthrough preserves the exact semantic of the corresponding originalRewriteCond !entry — including^/${routerFile}.*$(so/${routerFile}/path-infostyle framework URLs aren't incorrectly rewritten to/${routerFile}/${routerFile}/path-infowhen URL rewriting is partially configured) and^/lucee.*$(matches/luceewith or without a trailing slash, equivalent to the original's!^/luceeno-trailing-slash semantic). Net effect:public/assets/foo.css,public/__sentinel.txt, etc. now return HTTP 200 withContent-Typeset correctly; framework routing through${routerFile}still works for/,/posts, etc.; and/${routerFile}/anythingpaths pass through cleanly. Discovered during a Wheels Tutorial fresh-VM bake (the bonus-basecoat chapter'scurl -o public/assets/basecoat.min.css ...instructions were dead on arrival because the file existed but the rewrite intercepted the request before the default servlet could serve it). Verified end-to-end on Tomcat 11.0.13 + Lucee Express 7.0.0.395 against a 10-case URL matrix covering both static and dynamic paths plus the new edge cases. -
Whitelabeling Support for LuCLI: Added a new build-time whitelabeling feature for branded distributions, including profile-aware naming/home isolation, configurable branding metadata and banner content, optional product-version override (
branding.productVersion) with${LUCLI_VERSION}banner token support, and bundled module packaging/deployment from/modules-installon first startup. -
Version Output Includes Java Runtime:
lucli --versionnow includes aJava Version:line alongside LuCLI and Lucee versions, sourced from the active Java runtime (java -version) with a runtime-property fallback for portability. -
Fix:
.lucliLeadinglucliPrefix Now Preserves Quoted Arguments: Script-line normalization no longer rebuilds commands from parsed tokens when stripping an initiallucliprefix. We now remove only the leading command token from the raw line, preserving quoted values likename=\"Mark Drew\"for module andruninvocations. Added regression test coverage for quoted argument preservation. -
Fix: OpenAI AI Config Timeout Compatibility:
lucli ai config addnow omitscustom.timeoutfor OpenAI-compatible providers (openai,copilot,deepseek,grok,ollama,perplexity,other) because newer OpenAI-compatible APIs reject it as an unsupported request argument. When--timeoutis provided for those providers, LuCLI now warns that the value is ignored. -
Admin Disabled Security Env Enforcement: When
admin.enabled=false, LuCLI now enforcesLUCEE_ADMIN_ENABLED=falsein runtime process environments and Tomcatsetenv.sh/setenv.batgeneration, and surfaces it in dry-run--include-envpreviews. -
Fix:
.lucliCommand Failures Now Exit Non-Zero:.lucliscripts now propagate subcommand exit codes (for example,runfailures) so command errors no longer end with an overall success exit status. Added BATS regression coverage. -
Fix:
cfmlCommand Exits Non-Zero on Failure:lucli cfml '<expr>'now exits with code 1 when the expression throws. Previously, the catch block logged the error and fell through toreturn resultwithresult == null, which picocli maps to exit 0. Callers checking exit codes (shell pipelines, CI jobs, pre-commit hooks, doctest harnesses) now correctly see failure. -
Fix:
JAVA_HOMEPreflight Before Server Start:lucli server start(andwheels start) now detects missing or brokenJAVA_HOMEbefore the child JVM is spawned, and prints an actionable error pointing at Adoptium. Previously the child exited silently and the parent reported a misleading "port conflicts detected" error, forcing users to hunt through~/.wheels/servers/<name>/server.errto find the real cause. The preflight now runs against the effective child-process environment (parent shell +.envfile +lucee.jsonenvVars), so project-levelJAVA_HOMEoverrides are honored and the check won't false-positive when the var is defined in project config but not the parent shell. -
Module Dispatch: Auto-Bind Positional Args to Typed Params: LuCLI's module dispatch now maps CLI positional args (
arg1,arg2, ...) to a target function's typed parameters by declaration order. Module authors can declare typed signatures likefunction greet(required string name, boolean verbose = false)and get rich MCP JSONSchema (via existing auto-discovery), MCP named-arg binding (standard CFMLargumentCollection), and CLI positional binding (this change) all from a single source of truth. Named args and already-populated typed params win over positional fallback; excess positional args stay in argCollection for variadic access. Closes the last remaining "write a per-function arg-parsing shim" pattern for LuCLI module authors. -
Lockfile-Independent Extension Activation: Server runtime extension activation no longer requires
dependencySettings.useLockFile=true.server start/server runnow derive extension deployment andLUCEE_EXTENSIONSfromlucee.jsondependencies when lockfiles are disabled (including dry-run--include-envpreviews), with lockfile entries still used when enabled/available. -
Deps Install Materializes Extension Files by Default:
lucli deps installnow copies/downloadstype: "extension"dependencies withpath/urlinto theirinstallPathduring install (instead of only recording metadata). AddeddependencySettings.materializeExtensionsOnInstall(defaulttrue) to opt out and keep metadata/cache-based behavior. -
BATS Coverage for Local Extension Deployment: Added an integration lifecycle test that creates a fake local
.lexdependency, runslucli deps install, starts the server, and verifies the extension is deployed under~/.lucli/servers/<server>/lucee-server/deploy/. -
CI Test Result Publishing Permissions: Updated GitHub Actions test jobs to grant
pull-requests: writeandissues: writesoEnricoMi/publish-unit-test-result-actioncan post PR comments without failing Linux unit/integration jobs with403 Resource not accessible by integration. -
Server Runtime Prewarm Flag (
--prewarm): Added--prewarmsupport to bothlucli server startandlucli server runto pre-download runtime artifacts and exit without starting a server. LuCLI now prewarms Lucee Express forlucee-expressruntime, prewarms Lucee JARs fortomcat/jettyruntimes, and reports a no-download message fordockerruntime. -
Server Header Shows Generated Lucee Config Path: When server startup writes
.CFConfig.json, LuCLI now printsGenerated lucee config in: <path>alongside existing startup header lines so the effective Lucee config file location is explicit. -
Fix: Profile-Aware Home Directory in Script Engine:
LuceeScriptEngine.getLucliHomeDirectory()now uses the active CLI profile's home directory instead of a hardcoded~/.luclipath. This ensures thatBaseModule.cfcand other shared resources are provisioned to the correct home directory (e.g.~/.wheels/modules/when running aswheels). -
Server Environment Fallback (
LUCLI_ENV) + Docker Default:lucli server startandlucli server runnow fall back toLUCLI_ENVwhen--env/--environmentis not provided, while still honoring explicit--envprecedence. The Docker image now setsLUCLI_ENV=""by default so deployments can override it at runtime (for exampledocker run -e LUCLI_ENV=prod ...). -
Server Warmup Flag (
--warmup): Added--warmupsupport tolucli server startandlucli server runto enable Lucee build-time warmup by injecting bothLUCEE_ENABLE_WARMUP=trueand-Dlucee.enable.warmup=truefor that invocation (without persisting changes tolucee.json). -
Fix: MCP Tool Output Capture:
lucli mcp <module>now correctly captures moduleout()/err()output into JSON-RPC response bodies. Previously, Lucee'ssystemOutput()bypassedSystem.setOut()redirection because it caches stream references at engine startup — so every MCP tool returned empty content to callers while output leaked to the terminal, contaminating the stdio protocol stream.BaseModulenow usescreateObject("java", "java.lang.System").out.println(...)for dynamic lookup that honors redirection. -
MCP Tool Hiding: Public functions inherited from
BaseModule(init,getEnv,getSecret,verbose,getAbsolutePath,executeCommand,version,showHelp) are now automatically excluded from MCPtools/listresponses. Modules can additionally declare specific commands to hide with a newmcpHiddenTools()convention:public array function mcpHiddenTools() { return ["start", "stop", "console"]; }Hidden tools remain reachable as CLI subcommands — this is purely an MCP-surface filter for commands that are stateful, interactive, or otherwise inappropriate for autonomous agent use.
-
Fix: BaseModule.cfc Dev Sync: The shared
BaseModule.cfcin the active profile's modules directory is now refreshed when its content differs from the JAR-bundled copy, instead of only when the LuCLI version number changes. Dev iterations that modifysrc/main/resources/modules/BaseModule.cfcnow reach the installed copy without needing a formal version bump. -
executeModuleAndReturn()onLuceeScriptEngine: Framework callers can now invoke a module function and capture its return value without triggering the legacy print-if-non-null CLI behavior. Used internally by MCP tool introspection. -
#project:path#Placeholder in Configuration: Added#project:path#placeholder support forlucee.jsonconfiguration values (e.g. datasource DSNs). Resolved at server start alongside#env:VAR#and#secret:NAME#, replacing the token with the absolute project directory path.