| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
Copyright Since 2005 ColdBox Platform by Luis Majano and Ortus Solutions, Corp
coldbox.org ยป
boxlang.io ยป
ortussolutions.com
This is the official ColdBox CLI for CommandBox. It is a collection of commands to help you work with ColdBox and its ecosystem for building, testing, and deploying BoxLang and CFML applications. It provides commands for scaffolding applications, creating tests, modules, models, views, and much more.
Apache License, Version 2.0.
The CLI matches the major version of ColdBox. Current version: 8
This versioning ensures you get the correct commands and features for your version of ColdBox.
Install the commands via CommandBox like so:
box install coldbox-cliThe ColdBox CLI provides powerful scaffolding and development tools for both CFML and BoxLang applications. All commands support the --help flag for detailed information.
Create new ColdBox applications from various templates. BoxLang is now the default language for new applications:
# Create a basic ColdBox app (BoxLang by default)
coldbox create app myApp
coldbox create app myApp --boxlang # Force BoxLang (default)
# Create a CFML app explicitly
coldbox create app myApp --cfml
# Create with specific templates
coldbox create app myApp skeleton=modern
coldbox create app myApp skeleton=rest
coldbox create app myApp skeleton=flat
# Create with additional features
coldbox create app myApp --migrations # Database migrations support
coldbox create app myApp --docker # Docker environment setup
coldbox create app myApp --vite # Vite frontend asset building
coldbox create app myApp --rest # REST API configuration
# Combine multiple features
coldbox create app myApp --migrations --docker --vite
# Interactive app wizard (recommended for beginners)
coldbox create app-wizardThe app-wizard command provides an interactive, step-by-step process for creating new applications. It's perfect for beginners or when you want to explore all available options:
coldbox create app-wizardThe wizard will guide you through:
Example Wizard Flow:
Are you currently inside the "myapp" folder? [y/n]: n Is this a BoxLang project? [y/n]: y Are you creating an API? [y/n]: n Would you like to configure Vite as your Front End UI pipeline? [y/n]: y Would you like to setup a Docker environment? [y/n]: y Are you going to require Database Migrations? [y/n]: y
The CLI supports multiple application templates (skeletons), or you can use your own via any FORGEBOX ID, GitHub repo, local path, zip or URL. BoxLang templates are now the primary focus for modern development:
Modern templates (boxlang, modern) support additional features via flags:
The CLI now supports Vite integration for modern frontend development with hot module replacement and optimized builds:
# Create app with Vite support
coldbox create app myApp --vite
# Available for BoxLang and Modern templates
coldbox create app myApp skeleton=modern --viteVite Features Included:
Development Workflow:
# Start development server with hot reloading
npm run dev
# Build for production
npm run build
# Preview production build
npm run previewThe CLI provides Docker integration to containerize your ColdBox applications for consistent development and deployment environments:
# Create app with Docker support
coldbox create app myApp --docker
# Combine with other features
coldbox create app myApp --docker --vite --migrationsDocker Features Included:
Docker Commands:
# Build and start development environment
docker-compose up -d
# View logs
docker-compose logs -f
# Stop services
docker-compose down
# Rebuild containers
docker-compose up --buildGenerate MVC handlers with actions and optional views:
# Basic handler
coldbox create handler myHandler
# Handler with specific actions
coldbox create handler users index,show,edit,delete
# REST handler
coldbox create handler api/users --rest
# Resourceful handler (full CRUD)
coldbox create handler photos --resource
# Generate with views and tests
coldbox create handler users --views --integrationTestsCreate domain models and business services:
# Basic model
coldbox create model User
# Model with properties and accessors
coldbox create model User properties=fname,lname,email --accessors
# Model with migration
coldbox create model User --migration
# Model with service
coldbox create model User --service
# Model with everything (service, handler, migration, seeder)
coldbox create model User --all
# Standalone service
coldbox create service UserServiceGenerate view templates and layouts:
# Create a view
coldbox create view users/index
# View with helper file
coldbox create view users/show --helper
# View with content
coldbox create view welcome content="<h1>Welcome!</h1>"
# Create layout
coldbox create layout main
# Layout with content
coldbox create layout admin content="<cfoutput>#view()#</cfoutput>"Generate complete resourceful components:
# Single resource (handler, model, views, routes)
coldbox create resource photos
# Multiple resources
coldbox create resource photos,users,categories
# Custom handler name
coldbox create resource photos PhotoGallery
# With specific features
coldbox create resource users --tests --migrationCreate reusable ColdBox modules:
# Create module
coldbox create module myModule
# Module with specific features
coldbox create module myModule --models --handlers --viewsGenerate various types of tests:
# Unit tests
coldbox create unit models.UserTest
# BDD specs
coldbox create bdd UserServiceTest
# Integration tests
coldbox create integration-test handlers.UsersTest
# Model tests
coldbox create model-test User
# Interceptor tests
coldbox create interceptor-test Security --actions=preProcess,postProcessWork with ORM entities and database operations:
# ORM Entity
coldbox create orm-entity User table=users
# ORM Service
coldbox create orm-service UserService entity=User
# Virtual Entity Service
coldbox create orm-virtual-service UserService
# ORM Event Handler
coldbox create orm-event-handler
# CRUD operations
coldbox create orm-crud UserCreate AOP interceptors:
# Basic interceptor
coldbox create interceptor Security
# Interceptor with specific interception points
coldbox create interceptor Logger points=preProcess,postProcess
# With tests
coldbox create interceptor Security --testsManage your development environment:
# Reinitialize ColdBox framework
coldbox reinit
# Auto-reinit on file changes
coldbox watch-reinit
# Open documentation
coldbox docs
coldbox docs search="event handlers"
# Open API documentation
coldbox apidocsMost commands support these common options:
For application creation commands:
The CLI supports both automatic detection and manual override of the target language. BoxLang is now the default language for all new applications and generated code:
The CLI automatically detects BoxLang projects and generates appropriate code. You can also force BoxLang mode using the --boxlang flag.
The CLI detects BoxLang projects using three methods (in order of precedence):
{
"name": "My BoxLang App",
"language": "boxlang",
"testbox": {
"runner": "/tests/runner.bxm"
}
}{
"name": "My App",
"testbox": {
"runner": "boxlang"
}
}The CLI automatically detects whether your project uses a modern or flat layout and generates files in the correct location.
| Layout | Detection | App Code Location | Tests Location |
|---|---|---|---|
| Modern | Both app/ and public/ directories exist | /app/models, /app/handlers, etc. | /tests/ |
| Flat | Default (no app/ + public/) | /models, /handlers, etc. | /tests/ |
/app - Application source code
/config - Configuration
/handlers - Event handlers
/models - Models & services
/views - View templates
/layouts - Layout wrappers
/interceptors - Interceptors
/public - Web root
/modules - ColdBox modules
/tests - Test suites
/resources - Migrations, seeders, etc.
/config - Configuration
/handlers - Event handlers
/models - Models & services
/views - View templates
/layouts - Layout wrappers
/interceptors - Interceptors
/modules - ColdBox modules
/tests - Test suites
When you run a generation command in a modern-layout project, the CLI automatically targets the correct directory:
# In a flat layout project โ creates /handlers/users.cfc
# In a modern layout project โ creates /app/handlers/users.cfc
coldbox create handler users
# In a flat layout project โ creates /models/User.cfc
# In a modern layout project โ creates /app/models/User.cfc
coldbox create model UserYou can always override the target directory explicitly:
coldbox create model User directory=app/models# Default behavior (creates BoxLang code)
coldbox create handler users
coldbox create model User
# Explicit BoxLang generation (usually not needed)
coldbox create handler users --boxlang
# Force CFML generation for legacy projects
coldbox create handler users --cfml
coldbox create app myApp --cfmlWhen BoxLang mode is detected or forced:
The ColdBox CLI provides a comprehensive AI integration system that enhances your development workflow with intelligent coding assistance. This includes guidelines, skills, agent configurations, and MCP (Model Context Protocol) servers.
# Install AI integration
coldbox ai install # Interactive setup
coldbox ai install agent=claude # Setup with specific agent
# View current configuration
coldbox ai info # Show configuration summary
coldbox ai tree # Visual hierarchy of AI components
coldbox ai stats # Context usage and statistics
coldbox ai stats --verbose # Detailed breakdown with model utilization
# Sync with installed modules
coldbox ai refresh # Update guidelines and skills
# Diagnose issues
coldbox ai doctor # Check AI integration healthAfter coldbox ai install, your project will have a .agents/ directory containing:
/.agents/
โโโ guidelines/ # AI framework and domain documentation
โ โโโ core/ # ColdBox & BoxLang/CFML language guidelines (framework built-ins)
โ โโโ custom/ # Your project-specific guidelines
โ โโโ overrides/ # Custom versions of core/module guidelines
โโโ skills/ # Implementation cookbooks for specific features
โ โโโ {skill-name}/
โ โ โโโ SKILL.md # Step-by-step implementation guide
โ โโโ overrides/ # Override core/module skills
โโโ manifest.json # AI integration metadata (generated)
# Agent-specific skill symlinks (auto-managed, relative links to .agents/skills/):
.claude/skills/{skill-name} โ ../../.agents/skills/{skill-name}
.cursor/rules/{skill-name} โ ../../.agents/skills/{skill-name}
.github/instructions/{skill-name} โ ../../.agents/skills/{skill-name}
.kilo/skills/{skill-name} โ ../../.agents/skills/{skill-name}
.pi/skills/{skill-name} โ ../../.agents/skills/{skill-name}
Configure AI assistants for your project (Claude, GitHub Copilot, Cursor, etc.):
# Manage agents
coldbox ai agents list # List available agents
coldbox ai agents add claude copilot # Add multiple agents
coldbox ai agents remove cursor # Remove an agent
coldbox ai agents refresh # Regenerate all configurations| Agent | Config File | Skills Directory |
|---|---|---|
| Claude | CLAUDE.md โ writes to AGENTS.md | .claude/skills/ |
| GitHub Copilot | AGENTS.md (shared) | .github/instructions/ |
| Cursor | .cursorrules | .cursor/rules/ |
| Codex | AGENTS.md (shared) | N/A (uses .agents/skills/ directly) |
| Gemini | GEMINI.md | N/A (uses .agents/skills/ directly) |
| Kilo Code | AGENTS.md (shared) | .kilo/skills/ |
| OpenCode | AGENTS.md (shared) | N/A (uses .agents/skills/ directly) |
| Pi | AGENTS.md (shared) | .pi/skills/ |
Per-Agent Skill Discovery: Each agent discovers skills through its own native skills directory via automatically managed directory symlinks:
When a skill is installed, the CLI creates a relative directory symlink in each active agent's dedicated skills directory (e.g. .claude/skills/{name} โ ../../.agents/skills/{name}). This lets every agent discover skills through its own expected path without duplicating content. Symlinks are automatically removed when a skill is removed or pruned during coldbox ai refresh.
Framework documentation and best practices for AI assistants:
# View guidelines
coldbox ai guidelines list # List all installed guidelines
coldbox ai guidelines list --verbose # Show details and descriptions
# Manage guidelines
coldbox ai guidelines add coldbox testbox # Install by name
coldbox ai guidelines add https://example.com/ # Install from URL
coldbox ai guidelines remove testbox # Remove guideline
coldbox ai guidelines refresh # Update from modulesGuideline Types: Core (framework), Module (from installed modules), Custom (project-specific), Override (custom versions of core)
AI coding cookbooks with practical how-to examples. Skills are stored canonically at .agents/skills/{name}/ and automatically exposed to each AI agent through relative directory symlinks in the agent's native skills directory.
# View skills
coldbox ai skills list # List all installed skills
coldbox ai skills list --verbose # Show details
coldbox ai skills list --json # JSON output for scripting
# Manage skills
coldbox ai skills install creating-handlers async-programming
coldbox ai skills remove async-programming
coldbox ai skills update # Update all installed registry skills
coldbox ai skills update {name} # Update a single installed registry skill
coldbox ai skills refresh # Update from modulesSkill Categories: Scaffolding, Testing, Configuration, Database, REST APIs, Security, Performance, and more
Automatic Symlinks: When a skill is installed via coldbox ai install, coldbox ai skills install, or coldbox ai refresh, the skill is created at .agents/skills/{name}/ and a relative directory symlink is created inside every active agent's dedicated skills directory (e.g. .claude/skills/{name} โ ../../.agents/skills/{name}). Symlinks are automatically cleaned up when a skill is removed (coldbox ai skills remove) or pruned during refresh. No duplication, no manual linking required.
Model Context Protocol documentation servers provide live, up-to-date documentation access for AI agents. ColdBox CLI manages three types of MCP servers and keeps them in sync in both the manifest and the root .mcp.json file (compatible with VS Code, Claude Desktop, and other MCP clients):
# View MCP configuration
coldbox ai mcp list # List all configured servers
coldbox ai mcp list --verbose # Show descriptions and URLs
# Install cbMCP (live ColdBox app introspection)
coldbox ai mcp install # Install cbmcp module + register at http://localhost:8888/cbmcp
coldbox ai mcp install --port=8080 # Custom port
coldbox ai mcp install --force # Overwrite existing cbmcp config
# Add/remove custom servers
coldbox ai mcp add company-docs --url=https://docs.company.com/mcp
coldbox ai mcp remove company-docs
coldbox ai mcp remove cbsecurity --force # Force remove a module serverMCP Server Types:
What cbMCP provides: Once installed and your server is running, AI agents can query your live application for current routes, handler actions, model interfaces, and more โ enabling context-aware code generation tailored to your actual project structure.
Subagent Pattern: ColdBox CLI uses an optimized architecture that keeps agent files lean while providing full capability on-demand:
The CLI tracks and analyzes your AI context usage:
coldbox ai stats # Quick overview
coldbox ai stats --verbose # Full analysis with model breakdowns
coldbox ai stats --json # Machine-readable outputEvery command provides detailed help:
# General help
coldbox help
# AI integration help
coldbox ai help
# Specific command help
coldbox create handler --help
coldbox ai agents --help
coldbox ai stats --helpI THANK GOD FOR HIS WISDOM IN THIS PROJECT
"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12
| Back | FazBrowse Home | New Git URL |