Generate CommandBox CLI command documentation with namespace organization
π― The CommandBox Strategy is a specialized output format designed specifically for documenting CommandBox CLI commands and namespaces. It extends the HTML API Strategy with CLI-focused terminology and navigation.
π Overview
The CommandBox Strategy transforms CommandBox command components into searchable, navigable HTML documentation with command-specific features:
Command-Centric Navigation - Organizes by command namespaces (not packages)
CLI Terminology - Uses "commands" and "namespaces" instead of "classes" and "packages"
Qualified Names - Displays full command paths (e.g., server start, package show)
Namespace Hierarchy - Visualizes command organization and nesting
Frames Theme - Uses traditional frameset layout for CLI documentation
π¦ Properties
The CommandBox Strategy accepts the following configuration properties:
Property
Type
Required
Description
outputDir
string
Yes
Output directory absolute path
projectTitle
string
No
HTML title for documentation (default: "Untitled")
π― Basic Usage
Using Strategy Alias
Using Full Class Path
π Generated Structure
The CommandBox Strategy generates the following file structure:
π¨ Features
Command Path Display
Unlike standard class documentation, CommandBox Strategy shows the full command path:
Namespace Organization
Commands are grouped by their namespace hierarchy:
server namespace
start command
stop command
restart command
package namespace
show command
set command
install command
CLI-Focused Templates
The strategy uses specialized templates that:
Display command syntax and usage
Show command examples in CLI format
Highlight command parameters and flags
Use CLI-appropriate terminology
π Real-World Examples
Documenting CommandBox Core
Generate documentation for CommandBox's built-in commands: