commandbox-developing

Guide developers in building CommandBox extensions with ModuleConfig.cfc and WireBox DI.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ortus-boxlang/skills --skill commandbox-developing-ortus-boxlang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commandbox-developing
Source: https://github.com/ortus-boxlang/skills/tree/main/commandbox/commandbox-developing
Command: npx skills add https://github.com/ortus-boxlang/skills --skill commandbox-developing-ortus-boxlang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building CommandBox extensions (custom commands, modules, and DI wiring) can be complex without cohesive guidance and patterns.

Core Features & Use Cases

  • Create custom commands and modules for CommandBox with ModuleConfig.cfc and run() methods.
  • Use WireBox DI to inject services and compose features across modules.
  • Implement interceptors and lifecycle hooks to customize CLI behavior during development and testing.

Quick Start

Install this skill and begin by scaffolding a new CommandBox module with a custom command to validate the workflow.

Frequently Asked Questions about commandbox-developing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom CommandBox module with a ModuleConfig.cfc file?

To create a custom CommandBox module, you define a ModuleConfig.cfc file and implement a run() method to execute the command, ensuring the module is properly wired for CLI usage.

How does WireBox DI injection work when developing CommandBox extensions?

WireBox DI injection in CommandBox extensions allows you to inject services and compose features across modules by defining dependencies in your ModuleConfig.cfc, enabling consistent development workflows.

What is the best way to implement interceptors and lifecycle hooks in CommandBox?

The best way to implement interceptors and lifecycle hooks in CommandBox is by defining them within your module to customize CLI behavior during development and testing.

Can I use CommandBox modules to customize CLI behavior during testing?

Yes, you can use CommandBox modules to customize CLI behavior during testing by implementing interceptors and lifecycle hooks that execute at specific points in the command lifecycle.

Why do I need to define shared services when building CommandBox commands?

You need to define shared services when building CommandBox commands to ensure consistent dependency injection across modules, allowing WireBox to properly compose features and manage service interactions.

What are the limitations when linking modules in CommandBox development?

When linking modules in CommandBox development, you must ensure technical requirements and patterns for ModuleConfig.cfc and interceptors are met, as improper lifecycle management can disrupt shared service workflows.