### Install Project Dependencies via CommandBox Source: https://github.com/coldbox/coldbox-platform/blob/development/tests/readme.md Runs the `box install` command in the project root directory. This command reads the `box.json` file and installs all listed dependencies, including test-specific ones. ```Shell box install ``` -------------------------------- ### Install LogBox using CommandBox (Stable) Source: https://github.com/coldbox/coldbox-platform/blob/development/system/logging/readme.md Installs the latest stable release of the LogBox CFML logging library using the CommandBox package manager. This is the recommended installation method for production use. Requires CommandBox to be installed. ```Shell box install logbox ``` -------------------------------- ### Installing Stable ColdBox via CommandBox Bash Source: https://github.com/coldbox/coldbox-platform/blob/development/readme.md Installs the latest stable release of the ColdBox HMVC framework using the CommandBox CLI. This command fetches the package from ForgeBox and places it in the project's dependencies. Requires CommandBox to be installed and running. ```Bash box install coldbox ``` -------------------------------- ### Installing Project Dependencies via CommandBox Bash Source: https://github.com/coldbox/coldbox-platform/blob/development/readme.md Installs all development and production dependencies specified in the project's `box.json` file. This is typically run after cloning a ColdBox project repository to set up the development environment. Requires CommandBox to be installed and running within the project's root directory. ```Bash install ``` -------------------------------- ### Start Default CommandBox Test Server Source: https://github.com/coldbox/coldbox-platform/blob/development/tests/readme.md Starts a CommandBox server configured for testing from the project root. The server runs on a specific port, noted during startup, suitable for development and basic testing. ```Shell box server start ``` -------------------------------- ### Formatting Code Using CommandBox Script (Bash) Source: https://github.com/coldbox/coldbox-platform/blob/development/CONTRIBUTING.md Executes the CommandBox `format` script defined in the project's `box.json` to apply coding style rules to all code files according to the `.cfformat.json` configuration. Requires CommandBox and the project's dependencies to be installed. ```bash # Format everything box run-script format ``` -------------------------------- ### Watching and Auto-Formatting Code Using CommandBox Script (Bash) Source: https://github.com/coldbox/coldbox-platform/blob/development/CONTRIBUTING.md Starts a background process using the CommandBox `format:watch` script that monitors file changes in the project directory. It automatically applies coding style formatting using the `.cfformat.json` rules whenever a file is saved, aiding in consistent development. ```bash # Start a watcher, type away, save and auto-format for you box run-script format:watch ``` -------------------------------- ### Install CommandBox Module Source: https://github.com/coldbox/coldbox-platform/blob/development/tests/readme.md Installs the `commandbox-cfconfig` module using the CommandBox package manager. This module is required for managing server configurations from a JSON file. ```Shell install commandbox-cfconfig ``` -------------------------------- ### Installing Bleeding Edge ColdBox via CommandBox Bash Source: https://github.com/coldbox/coldbox-platform/blob/development/readme.md Installs the current bleeding-edge development version of the ColdBox HMVC framework using the CommandBox CLI. This version is updated frequently with the latest commits. Requires CommandBox to be installed and running. ```Bash box install coldbox@be ``` -------------------------------- ### Installing WireBox Stable Release with CommandBox CLI Source: https://github.com/coldbox/coldbox-platform/blob/development/system/ioc/readme.md This command uses the CommandBox command-line interface and package manager to install the latest stable release of the WireBox library. It fetches the package from the configured repository and installs it into the current project's dependencies. ```CommandBox CLI box install wirebox ``` -------------------------------- ### Install LogBox using CommandBox (Bleeding Edge) Source: https://github.com/coldbox/coldbox-platform/blob/development/system/logging/readme.md Installs the latest bleeding edge development release of the LogBox CFML logging library using the CommandBox package manager. Use this for testing new features or contributing. Requires CommandBox to be installed. ```Shell box install logbox@be ``` -------------------------------- ### Start CommandBox Server with Specific Engine Config Source: https://github.com/coldbox/coldbox-platform/blob/development/tests/readme.md Starts a CommandBox server using a custom configuration file (e.g., `server-adobe@2021.json`). This allows testing against a specific CFML engine version, like Adobe ColdFusion 2021, by applying the settings from the specified JSON file. ```Shell box server start serverConfigFile=server-adobe@2021.json ``` -------------------------------- ### Installing WireBox Bleeding Edge Release with CommandBox CLI Source: https://github.com/coldbox/coldbox-platform/blob/development/system/ioc/readme.md This CommandBox CLI command is used to install the latest development (bleeding edge) version of the WireBox framework. This version includes recent changes and features but may not be as stable as official releases. It requires CommandBox. ```CommandBox CLI box install wirebox-be ``` -------------------------------- ### Run Docker Container for MySQL Test Database Source: https://github.com/coldbox/coldbox-platform/blob/development/tests/readme.md Runs a detached Docker container named `coolblog` using the `mysql:5` image. It maps port 3306, sets the root password and database name, and mounts a SQL script to automatically initialize and seed the database upon startup. ```Shell docker container run -d --name coolblog -p 3306:3306 -e MYSQL_ROOT_PASSWORD=mysql -e MYSQL_DATABASE=coolblog -v $(pwd)/tests/resources/coolblog.sql:/docker-entrypoint-initdb.d/coolblog.sql mysql:5 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.