Installation
Just use CommandBox! No, really.
🦤 BoxLang Module Installation (Recommended for CLI)
DocBox 5.0+ can be installed as a native BoxLang core module, providing access to the powerful CLI tool.
CommandBox Web Runtimes
box install bx-docboxBoxLang OS Runtime
install-bx-module bx-docboxOnce installed, you can use the boxlang module:docbox CLI command to generate documentation. See the BoxLang CLI Tool page for complete usage details and examples.
Using DocBox in a Standalone Application
Installing and using DocBox consists of three main steps:
Download
For best results, use CommandBox to run box install docbox --saveDev in your app root.
Alternatively, you can download the DocBox source code and drop it into a docbox folder in your application.
Mapping
If DocBox is not installed in the root of your application, you will need to create a docbox mapping that points to the DocBox source code location:
In addition to the Docbox mapping, you will need a Coldfusion server mapping for each source code location. For example, documenting a component with implements="cbsecurity.interfaces.IAuthService" will require a mapping of cbsecurity to the installedcbsecurity source code so DocBox can find the referenced interface.
Using DocBox
The final step to get DocBox running is to write a CFML script that initializes, configures, and runs DocBox against your application code.
See Configuration for more details.
Using DocBox from the Command Line
We offer multiple ways to use DocBox from the command line:
BoxLang CLI Module (New in 5.0)
DocBox now includes a native BoxLang CLI module for generating documentation:
CommandBox Module
We also have a CommandBox module called DocBox Commands, which enables generating documentation from the CLI.
Run
box install commandbox-docboxto install thedocboxcommand namespaceRun
docbox helpto get a list of commandsRun
docbox generate helpto show help for thedocbox generatecommand
Please see the DocBox Commands README for more info.
Last updated
Was this helpful?