Repository navigation
v0.2.1
LuCLI v0.2.1
- URL Rewriting: Migrated to Tomcat RewriteValve: Replaced the Tuckey UrlRewriteFilter (
urlrewrite.xml) with Tomcat's built-in RewriteValve (rewrite.config). This eliminates javax/jakarta servlet API compatibility issues across Tomcat versions and removes the need for an external JAR. Rewrite rules now use Apachemod_rewritesyntax and are placed at the Host level (conf/Catalina/<host>/rewrite.config) instead of insideWEB-INF/. When both HTTPS redirect and URL rewriting are enabled, rules are combined into a singlerewrite.configfile. ⚠️ Deprecation:urlrewrite.xml: Existing projects usingurlrewrite.xmlwill see a warning at server startup. Migrate your rewrite rules to the newrewrite.configformat (Apachemod_rewritesyntax). See the updated URL Rewriting documentation.- Jetty Runtime: URL Rewriting Not Supported: URL rewriting is not available when using the Jetty runtime. A warning is displayed if
urlRewrite.enabledis set with a Jetty-based runtime. - New
#env:VAR#Variable Syntax: Variable substitution inlucee.jsonnow uses#env:VAR_NAME#syntax (e.g.,#env:DB_HOST#,#env:PORT:-8080#for defaults). Theenv:prefix makes intent explicit, distinguishing environment lookups from#secret:NAME#and potential future CFML expression support. - Protected Zones: The
configuration,environments.<env>.configuration, andjvm.additionalArgsblocks are protected — only#env:VAR#substitution is applied, preserving${VAR}for Lucee runtime evaluation and JVM system properties. ⚠️ Deprecation:${VAR}and bare#VAR#Syntax: The old${VAR}syntax and the bare#VAR#syntax (without theenv:prefix) are both deprecated. They still work but trigger a one-time warning. Migrate to#env:VAR#— the old syntax will be removed in a future release.- CFML Expression Guard: A warning is shown if
#...#placeholders contain parentheses, which may indicate accidental CFML expressions rather than simple variable references. --configSupport forserver stopandserver restart: Added--config/-coption toserver stopandserver restartcommands. Allows stopping/restarting servers by specifying their configuration file (e.g.,lucli server stop --config lucee-docker.json) instead of requiring--name. The server name is resolved from the config file automatically.sourceDirective for.lucliScripts: Added asourcecommand for loading.env-style files inside.lucliscripts (e.g.,source .env). Paths are resolved relative to the script's directory. Loaded variables become available as${VAR}placeholders and inscriptEnvironment, just likeset.--envfileCLI Option: Added--envfile <path>flag to pre-load environment variables from a file before script execution (e.g.,lucli --envfile=.env myscript.lucli). Variables are available to all script lines from the start.⚠️ Deprecation: Top-levelversioninlucee.json: The Lucee engine version should now be specified under a new"lucee"block:"lucee": { "version": "6.2.2.91", "variant": "standard" }. This frees up the top-level"version"key for specifying the application/project version. Existing configs with a top-level"version"containing a Lucee version string (e.g."6.2.2.91") are automatically migrated at load time with a deprecation warning. A"variant"field (default"standard") replaces the previousruntime.variantfor selecting Lucee editions. The old format will be removed in a future release.- Fix: Shebang Line Handling: Fixed syntax error when executing CFML scripts (.cfs, .cfm) that contain shebang lines (e.g.,
#!/usr/bin/env lucli). Scripts can now include shebangs for direct execution while remaining compatible withlucli run. The shebang line is automatically stripped before the script is passed to the Lucee engine. - JSON Comments:
lucee.jsonnow supports//line comments and/* */block comments, making it easier to annotate your configuration. - Relative Path Resolution in envVars: Relative paths (starting with
./or../) inenvVarsare now automatically resolved to absolute paths against the project directory, so the server process receives correct paths regardless of its working directory. - Dry-Run for
server run:lucli server run --dry-runnow works the same asserver start --dry-run, showing the realized configuration without starting the server. - Environment Preview (
--include-env): Added--include-envflag for--dry-runon bothserver startandserver runto display the environment variables that would be passed to the runtime (CATALINA_OPTS, LUCEE_EXTENSIONS, envVars, etc.). Also included in--include-all. - Platform Updates: Updated to Lucee 7.0.2.101-SNAPSHOT.
- Module Help: Modules now support
--help(e.g.lucli markspresso --help) to display available subcommands with their arguments, types, and defaults. Module name, version, and description are pulled frommodule.json. Module authors can overrideshowHelp()for custom help output. - Runtime Providers: LuCLI now supports pluggable server runtimes via the new
runtimekey inlucee.json. Choose how your Lucee server runs:- Lucee Express (default) — same as before, no config change needed.
- Vendor Tomcat — point LuCLI at your own Tomcat installation with
"runtime": {"type": "tomcat", "catalinaHome": "/path/to/tomcat"}. LuCLI validates the installation, checks Lucee/Tomcat version compatibility, and creates an isolated per-server instance. Also supports theCATALINA_HOMEenvironment variable as a fallback. - Docker (experimental) — run Lucee in a Docker container with
"runtime": "docker". Automatically pulls thelucee/luceeimage, maps ports and volumes, and manages the container lifecycle.server stop,server status, andserver listall work with Docker containers.
- Runtime Configuration in lucee.json: Supports both string shorthand (
"runtime": "docker") and object form ("runtime": {"type": "tomcat", "catalinaHome": "..."}) with optional fields for Docker image, tag, and container name. Updatedlucee.schema.jsonwith the new schema. - Fix: Server Status with Tomcat: Fixed a bug where
server statuswould report a running server as "NOT RUNNING" because the PID file was being overwritten during Tomcat startup. - Documentation: Added runtime providers guide covering all three providers with configuration examples and a manual QA test guide.
- New Aliases Added plural aliases for better discoverability:
lucli server→lucli servers,lucli module→lucli modules,lucli secret→lucli secrets. - Reusable Table UI Component: Added
org.lucee.lucli.ui.Tableclass for consistent CLI table rendering across commands. Features include multiple title rows, auto-sizing columns, full-width separators, optional footer, and configurable border styles (BOX, ASCII, NONE). Uses builder pattern for fluent API. - ModuleConfig Loader: Added
org.lucee.lucli.modules.ModuleConfigclass that loadsmodule.jsononce with sensible defaults. Eliminates redundant JSON parsing (was reading file 3x per module) and provides status detection (DEV/INSTALLED/AVAILABLE). - Modules Refactoring: Moved module commands to
cli/commands/modules/subpackage. RefactoredModulesListCommandImplto use new Table and ModuleConfig classes for cleaner, more maintainable code. - Code Cleanup: Removed unused imports across codebase, fixed WindowsSupport statics, general import organization.
- Emoji Support Refactoring: Created new
EmojiSupportclass with centralized global emoji control. SingleshowEmojissetting in~/.lucli/settings.jsonnow affects all output. UseEmojiSupport.process()to replace emojis with text fallbacks when disabled. SimplifiedPromptConfigandTerminalto use this unified approach. - Fix: Prompt Display Bug: Fixed broken Unicode regex patterns that were stripping letters from paths in prompts (e.g., showing
//instead of~/Code/LuCLI). - Fix: Environment Configuration Merge: Fixed issue where environment-specific config in
lucee.json(e.g.,--env=prod) would revert to defaults instead of properly overriding base config values. Now reads raw JSON from file for correct deep merging. - Fix: Terminal Exception Handling: Added general exception handler to the REPL loop so uncaught exceptions display an error message and continue instead of crashing the terminal.
- Fix: Tab Completion for File Paths: Fixed tab completion for
ls,cat,cd,head,tail, etc. - completion now triggers correctly after typing a command with a trailing space. Also fixed~/path completion to preserve the tilde prefix instead of expanding to the full home path. - External Command File Completion: Added file path completion as fallback for external commands like
code,vim,open, etc. - Welcome Page: When starting a Lucee server with
enableLucee=true(the default), LuCLI now automatically creates a welcomeindex.cfmin the webroot if one doesn't exist. The page displays server info, helpful commands, and links to documentation. Existingindex.cfmfiles are never overwritten. - Fix: resolved an issue after refactoring where the values are not returned from the
executeLucliScriptCommandmethod, causing CFML command outputs to not be displayed in the terminal. The method now returns the command output as a string, which is printed to the terminal if not empty. - Fix: Fixed silent failures when executing picocli subcommands (e.g.
server stop) in.lucliscripts. Captured output was being discarded instead of returned, so commands would run but produce no visible output or error messages. - SpotBugs Integration: Added SpotBugs Maven plugin for static analysis. New documentation at
content/docs/150_testing-and-qa/020_spotbugs.mdcovers setup, usage, and configuration.
Downloads
- lucli-0.2.1.jar/lucli.jar - Universal JAR (Java 21+, works everywhere) ✅ Signed
- lucli-0.2.1-linux - Shell wrapper for Linux (Java 21+ required)
- lucli-0.2.1-macos - Shell wrapper for macOS (Java 21+ required)
- lucli-0.2.1.bat - Windows batch launcher (Java 21+ required)
All downloads require Java 21+. JAR files are cryptographically signed for authenticity.