wheels plugin install
Install a Wheels plugin from ForgeBox into the /plugins folder.
Synopsis
wheels plugins install <name> [--dev] [--version=<version>]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-bcryptPositional + flags:
wheels plugins install cfwheels-bcrypt --version=1.0.0All 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
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
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
Installs only
cfwheels-pluginstype packagesValidates package type before installation
Automatically places plugins in
/pluginsfolderSupports specific version installation
Beautiful, color-coded output
Helpful error messages
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
Install latest version from ForgeBox
wheels plugins install cfwheels-bcryptOutput:
===========================================================
  Installing Plugin
===========================================================
Plugin:  cfwheels-bcrypt
Version: latest
[CommandBox installation output...]
===========================================================
[OK] Plugin installed successfully!
Bcrypt encryption support for Wheels
Commands:
  wheels plugin list          View all installed plugins
  wheels plugin info cfwheels-bcrypt   View plugin detailsInstall specific version
wheels plugins install cfwheels-shortcodes --version=0.0.3Output:
===========================================================
  Installing Plugin
===========================================================
Plugin:  cfwheels-shortcodes
Version: 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)
wheels plugins install bcryptThe command will find and install cfwheels-bcrypt from ForgeBox.
Installation fails (wrong package type)
wheels plugins install commandbox-migrationsOutput:
===========================================================
  Installing Plugin
===========================================================
Plugin:  commandbox-migrations
Version: 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)
wheels plugins install nonexistent-pluginOutput:
===========================================================
  Installing Plugin
===========================================================
Plugin:  nonexistent-plugin
Version: 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
Display Header: Shows plugin name and target version
Package Validation: Verifies the package is type
cfwheels-pluginsDownload: Uses CommandBox's PackageService to download from ForgeBox
Installation: CommandBox installs the package
Directory Move: If installed to wrong location, moves to
/pluginsfolderVerification: Confirms installation success
Display Results: Shows success message with helpful next steps
How It Works
The command uses PluginService which:
Calls ForgeBox API to check package type
Uses
packageService.installPackage()to download and installChecks common installation paths (
/modules/, root)Moves plugin to
/plugins/folder if neededReturns success/failure status
Package Sources
ForgeBox (Only Supported Source)
The command only supports installing from ForgeBox:
# By slug
wheels plugins install cfwheels-bcrypt
# By name (auto-finds slug)
wheels plugins install bcrypt
# Specific version
wheels plugins install cfwheels-bcrypt --version=0.0.4Unsupported 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
Package Type Validation Failed
[ERROR] Failed to install plugin
Error: Only cfwheels-plugins can be installed via this commandSolution: Verify the package type on ForgeBox is cfwheels-plugins
Plugin Not Found
[ERROR] Failed to install plugin
Error: Plugin not found on ForgeBoxSolution: Check available plugins with wheels plugin list --available
Network Error
[ERROR] Failed to install plugin
Error: Could not connect to ForgeBoxSolution: Check internet connection and ForgeBox status
Notes
Only installs
cfwheels-pluginstype packages from ForgeBoxPlugins are installed to
/pluginsfolderThe
--devparameter is accepted but not currently usedPackage 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 detailsRestart your application to activate the new plugin
The command automatically handles directory placement
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
Last updated
Was this helpful?

