azu plugin
Manage Azu CLI plugins to extend functionality with custom commands and generators.
Synopsis
azu plugin <operation> [arguments] [options]Description
The plugin command provides functionality to list, install, uninstall, enable, disable, and inspect plugins for the Azu CLI. Plugins allow you to extend the CLI with custom commands, generators, and functionality specific to your workflow or organization.
Operations
azu plugin list
azu plugin listDisplay all installed plugins.
Synopsis
azu plugin listDescription
Lists all available plugins, including both built-in plugins that ship with Azu CLI and any external plugins you've installed.
Example Output
Examples
azu plugin install
azu plugin installInstall a plugin from a repository or local path.
Synopsis
Description
Downloads and installs a plugin, making it available for use with the Azu CLI. Plugins can be installed from:
Official Azu plugin registry
GitHub repositories
Local file paths
Arguments
<name>
Plugin name or repository URL
Options
--source <url>
Plugin source URL
--version <version>
Specific version to install
--local <path>
Install from local directory
--global
Install globally (available to all projects)
Examples
Plugin Structure
Plugins should follow this structure:
Plugin Definition
azu plugin uninstall
azu plugin uninstallRemove an installed plugin.
Synopsis
Description
Removes a plugin from your system, cleaning up all associated files and configuration.
Arguments
<name>
Name of the plugin to uninstall
Examples
Safety
Built-in plugins cannot be uninstalled
Confirmation prompt shown before removal
Backup created automatically
azu plugin enable
azu plugin enableEnable a previously disabled plugin.
Synopsis
Description
Activates a plugin that was previously disabled, making its commands and features available again.
Arguments
<name>
Name of the plugin to enable
Examples
azu plugin disable
azu plugin disableTemporarily disable a plugin without uninstalling it.
Synopsis
Description
Deactivates a plugin while keeping it installed. Disabled plugins do not load their commands or run initialization code.
Arguments
<name>
Name of the plugin to disable
Examples
Use Cases
Troubleshooting plugin conflicts
Temporarily removing functionality
Testing without plugins
Development and debugging
azu plugin info
azu plugin infoDisplay detailed information about a plugin.
Synopsis
Description
Shows comprehensive information about a specific plugin, including version, description, status, dependencies, and provided commands.
Arguments
<name>
Name of the plugin to inspect
Example Output
Examples
Built-in Plugins
Azu CLI ships with several built-in plugins:
Generator Plugin
Name: generator Description: Code generation plugin for Azu CLI
Provides all code generation commands:
azu generate modelazu generate endpointazu generate scaffoldAnd more...
Database Plugin
Name: database Description: Database operations plugin for Azu CLI
Provides database management commands:
azu db:createazu db:migrateazu db:rollbackAnd more...
Development Plugin
Name: development Description: Development server plugin for Azu CLI
Provides development tools:
azu serveazu test --watchHot reloading functionality
Creating Custom Plugins
Plugin Template
Custom Command Example
Custom Generator Example
Plugin Configuration
Global Configuration
Plugins can be configured globally in ~/.azu/config.yml:
Project Configuration
Project-specific plugin settings in .azu/config.yml:
Best Practices
1. Follow Naming Conventions
2. Provide Comprehensive Documentation
Include:
README with installation instructions
Command documentation
Configuration examples
Troubleshooting guide
3. Version Your Plugin
Use semantic versioning:
4. Test Thoroughly
5. Handle Dependencies Gracefully
Troubleshooting
Plugin Not Loading
Check plugin is enabled:
Enable if disabled:
Command Not Found
Verify plugin provides the command:
Check plugin is properly registered:
Version Conflicts
Check installed versions:
Update to compatible version:
Plugin Installation Fails
Check dependencies:
Install dependencies:
Plugin Registry
Official Plugins
Visit the official plugin registry:
Community Plugins
Browse community-contributed plugins:
Environment Variables
AZU_PLUGINS_DIR
Plugin installation directory
~/.azu/plugins
AZU_DISABLE_PLUGINS
Comma-separated list of plugins to disable
AZU_PLUGIN_REGISTRY
Custom plugin registry URL
Official registry
Related Commands
azu help- Show help including plugin commandsazu version- Show version including plugin versions
See Also
Last updated