Command Line Tools
wheels plugins install
wheels plugins install
Section titled “wheels plugins install”Install a Wheels plugin from ForgeBox into the /plugins folder.
Synopsis
Section titled “Synopsis”wheels plugins install <name> [--dev] [--version=<version>]CommandBox Parameter Syntax
Section titled “CommandBox Parameter Syntax”This command supports multiple parameter formats:
- Positional parameters:
wheels plugins install cfwheels-bcrypt(plugin name) - Named parameters:
name=value(e.g.,name=cfwheels-bcrypt,version=1.0.0) - Flag parameters:
--flagequalsflag=true(e.g.,--devequalsdev=true) - Flag with value:
--flag=value(e.g.,--version=1.0.0)
Parameter Mixing Rules:
✅ ALLOWED:
- Positional:
wheels plugins install cfwheels-bcrypt - Positional + flags:
wheels plugins install cfwheels-bcrypt --version=1.0.0 - All named:
name=cfwheels-bcrypt version=1.0.0
❌ NOT ALLOWED:
- Positional + named for same param:
wheels plugins install cfwheels-bcrypt name=other
Recommendation: Use positional for plugin name, flags for options: wheels plugins install cfwheels-bcrypt --version=1.0.0
Parameters
Section titled “Parameters”| Parameter | Required | Type | Description |
|---|---|---|---|
name | Yes | string | Plugin name or slug from ForgeBox |
dev | No | boolean | Install as development dependency (not used) |
version | No | string | Specific version to install (default: latest) |
Description
Section titled “Description”The plugins install command installs cfwheels-plugins type packages from ForgeBox into your application’s /plugins folder. The command validates that the package is a valid cfwheels-plugin before installation.
Features
Section titled “Features”- Installs only
cfwheels-pluginstype packages - Validates package type before installation
- Automatically places plugins in
/pluginsfolder - Supports specific version installation
- Beautiful, color-coded output
- Helpful error messages
Package Type Validation
Section titled “Package Type Validation”The command ensures that only packages with type cfwheels-plugins can be installed. This prevents accidental installation of non-plugin packages.
Examples
Section titled “Examples”Install latest version from ForgeBox
Section titled “Install latest version from ForgeBox”wheels plugins install cfwheels-bcryptOutput:
================================================== Installing Plugin==================================================
Plugin: cfwheels-bcryptVersion: latest
Creating C:\Users\Hp\cli_testingapp\db_app\plugins\/api-tools-1.0.0.zip ------------------------------------------------------------Creating C:\Users\Hp\cli_testingapp\db_app\plugins\/my-helper-1.0.0.zip √ | Installing package [forgebox:cfwheels-bcrypt]============================================================
[SUCCESS]: Plugin installed successfully!
CFWheels 2.x plugin helper methods for the bCrypt Java Lib
Commands-------------------------------------------------- - wheels plugin list View all installed plugins - wheels plugin info cfwheels-bcrypt View plugin detailsInstall specific version
Section titled “Install specific version”wheels plugins install cfwheels-shortcodes --version=0.0.3Output:
=========================================================== Installing Plugin===========================================================
Plugin: cfwheels-shortcodesVersion: 0.0.3
[CommandBox installation output...]
===========================================================
[OK] Plugin installed successfully!
Shortcode support for Wheels content
Commands: wheels plugin list View all installed plugins wheels plugin info cfwheels-shortcodes View plugin detailsInstall using plugin name (matches slug)
Section titled “Install using plugin name (matches slug)”wheels plugins install bcryptThe command will find and install cfwheels-bcrypt from ForgeBox.
Installation fails (wrong package type)
Section titled “Installation fails (wrong package type)”wheels plugins install commandbox-migrationsOutput:
=========================================================== Installing Plugin===========================================================
Plugin: commandbox-migrationsVersion: latest
===========================================================
[ERROR] Failed to install plugin
Error: Only cfwheels-plugins can be installed via this command
Possible solutions: - Verify the plugin name is correct - Check if the plugin exists on ForgeBox: wheels plugin list --available - Ensure the plugin type is 'cfwheels-plugins'Installation fails (plugin not found)
Section titled “Installation fails (plugin not found)”wheels plugins install nonexistent-pluginOutput:
=========================================================== Installing Plugin===========================================================
Plugin: nonexistent-pluginVersion: latest
===========================================================
[ERROR] Failed to install plugin
Error: Plugin not found on ForgeBox
Possible solutions: - Verify the plugin name is correct - Check if the plugin exists on ForgeBox: wheels plugin list --available - Ensure the plugin type is 'cfwheels-plugins'Installation Process
Section titled “Installation Process”- Display Header: Shows plugin name and target version
- Package Validation: Verifies the package is type
cfwheels-plugins - Download: Uses CommandBox’s PackageService to download from ForgeBox
- Installation: CommandBox installs the package
- Directory Move: If installed to wrong location, moves to
/pluginsfolder - Verification: Confirms installation success
- Display Results: Shows success message with helpful next steps
How It Works
Section titled “How It Works”The command uses PluginService which:
- Calls ForgeBox API to check package type
- Uses
packageService.installPackage()to download and install - Checks common installation paths (
/modules/, root) - Moves plugin to
/plugins/folder if needed - Returns success/failure status
Package Sources
Section titled “Package Sources”ForgeBox (Only Supported Source)
Section titled “ForgeBox (Only Supported Source)”The command only supports installing from ForgeBox:
# By slugwheels plugins install cfwheels-bcrypt
# By name (auto-finds slug)wheels plugins install bcrypt
# Specific versionwheels plugins install cfwheels-bcrypt --version=0.0.4Unsupported Sources
Section titled “Unsupported Sources”The following sources are NOT supported:
- ❌ GitHub repositories
- ❌ Direct URLs
- ❌ Local ZIP files
- ❌ Local directories
To install plugins from these sources, use CommandBox’s native install command and manually move to /plugins folder.
Error Messages
Section titled “Error Messages”Package Type Validation Failed
Section titled “Package Type Validation Failed”[ERROR] Failed to install pluginError: Only cfwheels-plugins can be installed via this commandSolution: Verify the package type on ForgeBox is cfwheels-plugins
Plugin Not Found
Section titled “Plugin Not Found”[ERROR] Failed to install pluginError: Plugin not found on ForgeBoxSolution: Check available plugins with wheels plugin list --available
Network Error
Section titled “Network Error”[ERROR] Failed to install pluginError: Could not connect to ForgeBoxSolution: Check internet connection and ForgeBox status
- Only installs
cfwheels-pluginstype packages from ForgeBox - Plugins are installed to
/pluginsfolder - The
--devparameter is accepted but not currently used - Package type validation prevents installation of incorrect packages
- If a plugin is already installed, it will be overwritten
- After installation, use
wheels plugin info <name>to view details - Restart your application to activate the new plugin
- The command automatically handles directory placement
See Also
Section titled “See Also”- wheels plugin list - List installed plugins
- wheels plugin info - View plugin details
- wheels plugin update - Update a plugin
- wheels plugin remove - Remove a plugin