LogoLogo
HomeAPIBlog
3.0.0-SNAPSHOT
3.0.0-SNAPSHOT
  • INTRODUCTION
    • Getting Started
      • Running Local Development Servers
      • Beginner Tutorial: Hello World
      • Beginner Tutorial: Hello Database
      • Tutorial: Wheels, AJAX, and You
    • Frameworks and Wheels
    • Requirements
    • Manual Installation
    • Upgrading
    • Screencasts
  • Command Line Tools
    • CLI Overview
    • Quick Start Guide
    • Command Reference
      • Core Commands
        • wheels init
        • wheels info
        • wheels reload
        • wheels deps
        • wheels destroy
        • wheels watch
      • Code Generation
        • wheels generate app
        • wheels generate app-wizard
        • wheels generate controller
        • wheels generate model
        • wheels generate view
        • wheels generate property
        • wheels generate route
        • wheels generate resource
        • wheels generate api-resource
        • wheels generate frontend
        • wheels generate test
        • wheels generate snippets
        • wheels scaffold
      • Database Commands
        • wheels dbmigrate info
        • wheels dbmigrate latest
        • wheels dbmigrate up
        • wheels dbmigrate down
        • wheels dbmigrate reset
        • wheels dbmigrate exec
        • wheels dbmigrate create blank
        • wheels dbmigrate create table
        • wheels dbmigrate create column
        • wheels dbmigrate remove table
        • wheels db schema
        • wheels db seed
      • Testing Commands
        • wheels test
        • wheels test run
        • wheels test coverage
        • wheels test debug
      • Configuration Commands
        • wheels config list
        • wheels config set
        • wheels config env
      • Environment Management
        • wheels env
        • wheels env setup
        • wheels env list
        • wheels env switch
      • Plugin Management
        • wheels plugins
        • wheels plugins list
        • wheels plugins install
        • wheels plugins remove
      • Code Analysis
        • wheels analyze
        • wheels analyze code
        • wheels analyze performance
        • wheels analyze security
      • Security Commands
        • wheels security
        • wheels security scan
      • Performance Commands
        • wheels optimize
        • wheels optimize performance
      • Documentation Commands
        • wheels docs
        • wheels docs generate
        • wheels docs serve
      • CI/CD Commands
        • wheels ci init
      • Docker Commands
        • wheels docker init
        • wheels docker deploy
      • Deployment Commands
        • wheels deploy
        • wheels deploy audit
        • wheels deploy exec
        • wheels deploy hooks
        • wheels deploy init
        • wheels deploy lock
        • wheels deploy logs
        • wheels deploy proxy
        • wheels deploy push
        • wheels deploy rollback
        • wheels deploy secrets
        • wheels deploy setup
        • wheels deploy status
        • wheels deploy stop
    • CLI Development Guides
      • Creating Commands
      • Service Architecture
      • Migrations Guide
      • Testing Guide
  • Working with Wheels
    • Conventions
    • Configuration and Defaults
    • Directory Structure
    • Switching Environments
    • Testing Your Application
    • Using the Test Environment
    • Contributing to Wheels
    • Submitting Pull Requests
    • Documenting your Code
  • Handling Requests with Controllers
    • Request Handling
    • Rendering Content
    • Redirecting Users
    • Sending Files
    • Sending Email
    • Responding with Multiple Formats
    • Using the Flash
    • Using Filters
    • Verification
    • Event Handlers
    • Routing
    • URL Rewriting
      • Apache
      • IIS
      • Tomcat
      • Nginx
    • Obfuscating URLs
    • Caching
    • Nesting Controllers
    • CORS Requests
  • Displaying Views to Users
    • Pages
    • Partials
    • Linking Pages
    • Layouts
    • Form Helpers and Showing Errors
    • Displaying Links for Pagination
    • Date, Media, and Text Helpers
    • Creating Custom View Helpers
    • Localization
  • Database Interaction Through Models
    • Object Relational Mapping
    • Creating Records
    • Reading Records
    • Updating Records
    • Deleting Records
    • Column Statistics
    • Dynamic Finders
    • Getting Paginated Data
    • Associations
    • Nested Properties
    • Object Validation
    • Object Callbacks
    • Calculated Properties
    • Transactions
    • Dirty Records
    • Soft Delete
    • Automatic Time Stamps
    • Database Migrations
      • Migrations in Production
    • Using Multiple Data Sources
  • Plugins
    • Installing and Using Plugins
    • Developing Plugins
    • Publishing Plugins
  • Project Documentation
    • Overview
  • External Links
    • Source Code
    • Issue Tracker
    • Sponsor Us
    • Community
Powered by GitBook
LogoLogo
On this page
  • Synopsis
  • Description
  • Subcommands
  • Options
  • Direct Usage
  • Examples
  • Show plugin overview
  • Quick plugin check
  • Update all plugins
  • Plugin system info
  • Plugin System
  • Plugin Structure
  • Plugin Metadata
  • Plugin Registry
  • Official Registry
  • Custom Registries
  • Plugin Lifecycle
  • Discovery
  • Installation
  • Configuration
  • Updates
  • Plugin Development
  • Create Plugin
  • Plugin API
  • Environment Support
  • Environment-Specific Plugins
  • Conditional Loading
  • Plugin Commands
  • Dependency Management
  • Automatic Resolution
  • Conflict Resolution
  • Plugin Storage
  • Global Plugins
  • Project Plugins
  • Security
  • Plugin Verification
  • Permission Control
  • Troubleshooting
  • Common Issues
  • Best Practices
  • Plugin Cache
  • Clear Cache
  • Rebuild Cache
  • Notes
  • See Also

Was this helpful?

Edit on GitHub
Export as PDF
  1. Command Line Tools
  2. Command Reference
  3. Plugin Management

wheels plugins

Base command for plugin management in Wheels applications.

Synopsis

wheels plugins [subcommand] [options]

Description

The wheels plugins command provides comprehensive plugin management for Wheels applications. It handles plugin discovery, installation, configuration, and lifecycle management.

Subcommands

Command
Description

list

List installed plugins

install

Install a plugin

remove

Remove a plugin

Options

Option
Description

--help

Show help information

--version

Show version information

Direct Usage

When called without subcommands, displays plugin overview:

wheels plugins

Output:

Wheels Plugin Manager
====================

Installed Plugins: 5
├── authentication (v2.1.0) - User authentication system
├── pagination (v1.5.2) - Advanced pagination helpers
├── validation (v3.0.1) - Extended validation rules
├── caching (v2.2.0) - Enhanced caching strategies
└── api-tools (v1.8.3) - RESTful API utilities

Available Updates: 2
- validation: v3.0.1 → v3.1.0
- api-tools: v1.8.3 → v2.0.0

Run 'wheels plugins list' for detailed information

Examples

Show plugin overview

wheels plugins

Quick plugin check

wheels plugins --check

Update all plugins

wheels plugins --update-all

Plugin system info

wheels plugins --info

Plugin System

Plugin Structure

/plugins/
├── authentication/
│   ├── Authentication.cfc
│   ├── config/
│   ├── models/
│   ├── views/
│   └── plugin.json
├── pagination/
└── ...

Plugin Metadata

Each plugin contains plugin.json:

{
  "name": "authentication",
  "version": "2.1.0",
  "description": "User authentication system",
  "author": "Wheels Community",
  "wheels": ">=2.0.0",
  "dependencies": {
    "validation": ">=3.0.0"
  }
}

Plugin Registry

Official Registry

Default source for plugins:

https://plugins.cfwheels.org/

Custom Registries

Configure additional sources:

{
  "pluginRegistries": [
    "https://plugins.cfwheels.org/",
    "https://company.com/wheels-plugins/"
  ]
}

Plugin Lifecycle

Discovery

# Search for plugins
wheels plugins search authentication

# Browse categories
wheels plugins browse --category=security

Installation

# Install from registry
wheels plugins install authentication

# Install from GitHub
wheels plugins install github:user/wheels-plugin

# Install from file
wheels plugins install ./my-plugin.zip

Configuration

# Configure plugin
wheels plugins configure authentication

# View configuration
wheels plugins config authentication

Updates

# Check for updates
wheels plugins outdated

# Update specific plugin
wheels plugins update authentication

# Update all plugins
wheels plugins update --all

Plugin Development

Create Plugin

# Generate plugin scaffold
wheels generate plugin my-plugin

# Plugin structure created:
# /plugins/my-plugin/
#   ├── MyPlugin.cfc
#   ├── plugin.json
#   ├── config/
#   ├── tests/
#   └── README.md

Plugin API

component extends="wheels.Plugin" {
    
    function init() {
        this.version = "1.0.0";
        this.author = "Your Name";
        this.description = "Plugin description";
    }
    
    function setup() {
        // Plugin initialization
    }
    
    function teardown() {
        // Plugin cleanup
    }
}

Environment Support

Environment-Specific Plugins

{
  "plugins": {
    "production": ["caching", "monitoring"],
    "development": ["debug-toolbar", "profiler"],
    "all": ["authentication", "validation"]
  }
}

Conditional Loading

// In environment.cfm
if (get("environment") == "development") {
    addPlugin("debug-toolbar");
}

Plugin Commands

Plugins can register custom commands:

// In plugin
this.commands = {
    "auth:create-user": "commands/CreateUser.cfc",
    "auth:reset-password": "commands/ResetPassword.cfc"
};

Usage:

wheels auth:create-user admin@example.com
wheels auth:reset-password user123

Dependency Management

Automatic Resolution

# Installs plugin and dependencies
wheels plugins install api-tools
# Also installs: validation, serialization

Conflict Resolution

# When conflicts exist
wheels plugins install authentication --resolve=prompt

Options:

  • prompt: Ask for each conflict

  • newest: Use newest version

  • oldest: Keep existing version

Plugin Storage

Global Plugins

Shared across projects:

wheels plugins install authentication --global

Location: ~/.wheels/plugins/

Project Plugins

Project-specific:

wheels plugins install authentication

Location: /plugins/

Security

Plugin Verification

# Verify plugin signatures
wheels plugins verify authentication

# Install only verified plugins
wheels plugins install authentication --verified-only

Permission Control

{
  "pluginPermissions": {
    "fileSystem": ["read", "write"],
    "network": ["http", "https"],
    "database": ["read", "write"]
  }
}

Troubleshooting

Common Issues

  1. Plugin Not Loading

    wheels plugins diagnose authentication
  2. Dependency Conflicts

    wheels plugins deps --tree
  3. Version Incompatibility

    wheels plugins check-compatibility

Best Practices

  1. Version Lock: Lock plugin versions for production

  2. Test Updates: Test in development first

  3. Backup: Backup before major updates

  4. Documentation: Document custom plugins

  5. Security: Verify plugin sources

Plugin Cache

Clear Cache

wheels plugins cache clear

Rebuild Cache

wheels plugins cache rebuild

Notes

  • Plugins are loaded in dependency order

  • Some plugins require application restart

  • Global plugins override project plugins

  • Plugin conflicts are resolved by load order

See Also

PreviousPlugin ManagementNextwheels plugins list

Last updated 2 days ago

Was this helpful?

- List plugins

- Install plugins

- Remove plugins

wheels plugins list
wheels plugins install
wheels plugins remove
Plugin Development Guide