Command Line Tools
plugins remove
plugins remove
Section titled “plugins remove”Removes an installed Wheels CLI plugin.
Synopsis
Section titled “Synopsis”wheels plugins remove <name> [--force]CommandBox Parameter Syntax
Section titled “CommandBox Parameter Syntax”This command supports multiple parameter formats:
- Positional parameters:
wheels plugins remove cfwheels-bcrypt(plugin name) - Named parameters:
name=value(e.g.,name=cfwheels-bcrypt) - Flag parameters:
--flagequalsflag=true(e.g.,--forceequalsforce=true)
Parameter Mixing Rules:
ALLOWED:
- Positional:
wheels plugins remove cfwheels-bcrypt - Positional + flags:
wheels plugins remove cfwheels-bcrypt --force - All named:
name=cfwheels-bcrypt force=true
NOT ALLOWED:
- Positional + named for same param:
wheels plugins remove cfwheels-bcrypt name=other
Recommendation: Use positional for plugin name, flags for options: wheels plugins remove cfwheels-bcrypt --force
Parameters
Section titled “Parameters”| Parameter | Required | Type | Description |
|---|---|---|---|
name | Yes | string | Plugin name to remove |
--force | No | boolean | Force removal without confirmation |
Description
Section titled “Description”The plugins remove command safely uninstalls a plugin from your Wheels application. It:
- Checks if the plugin is installed
- Prompts for confirmation (unless
--forceis used) - Removes plugin from box.json
- Cleans up plugin files
- Updates plugin registry
Examples
Section titled “Examples”Basic plugin removal
Section titled “Basic plugin removal”wheels plugins remove wheels-vue-cliForce removal (skip confirmation)
Section titled “Force removal (skip confirmation)”wheels plugins remove wheels-testing --forceRemoval Process
Section titled “Removal Process”- Installation Check: Verifies the plugin is installed in box.json or plugins folder
- Confirmation: Prompts user to confirm removal (unless —force is used)
- Removal: Removes plugin entry from box.json
- File Cleanup: Deletes plugin files via CommandBox package service
- Verification: Confirms successful removal
Output
Section titled “Output”With confirmation prompt (default)
Section titled “With confirmation prompt (default)”Are you sure you want to remove the plugin 'wheels-vue-cli'? (y/n): yRemoving plugin: wheels-vue-cli...[SUCCESS]: Plugin removed successfully
[INFO]: Run 'wheels plugins list' to see remaining pluginsWith force flag
Section titled “With force flag”[*] Removing plugin: wheels-vue-cli...[SUCCESS]: Plugin removed successfully
[INFO]: Run 'wheels plugins list' to see remaining pluginsPlugin not installed
Section titled “Plugin not installed”Are you sure you want to remove the plugin 'bcrypt'? (y/n): y[*] Removing plugin: bcrypt...
[FAILED]: Failed to remove plugin: Plugin 'wheels-vue-cli' is not installed in plugins folderCancellation
Section titled “Cancellation”Are you sure you want to remove the plugin 'wheels-vue-cli'? (y/n): nPlugin removal cancelled.- The
--forceflag skips the confirmation prompt - Use
wheels plugins listto verify removal - The command checks if plugin is actually installed before removal
- Plugin must exist in box.json dependencies, devDependencies, or plugins folder
- Restart your application after removing plugins that affect core functionality