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

Display all installed plugins.

Synopsis

azu plugin list

Description

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

Install 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

Argument
Description

<name>

Plugin name or repository URL

Options

Option
Description

--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

Remove an installed plugin.

Synopsis

Description

Removes a plugin from your system, cleaning up all associated files and configuration.

Arguments

Argument
Description

<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

Enable a previously disabled plugin.

Synopsis

Description

Activates a plugin that was previously disabled, making its commands and features available again.

Arguments

Argument
Description

<name>

Name of the plugin to enable

Examples


azu plugin disable

Temporarily 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

Argument
Description

<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

Display detailed information about a plugin.

Synopsis

Description

Shows comprehensive information about a specific plugin, including version, description, status, dependencies, and provided commands.

Arguments

Argument
Description

<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 model

  • azu generate endpoint

  • azu generate scaffold

  • And more...

Database Plugin

Name: database Description: Database operations plugin for Azu CLI

Provides database management commands:

  • azu db:create

  • azu db:migrate

  • azu db:rollback

  • And more...

Development Plugin

Name: development Description: Development server plugin for Azu CLI

Provides development tools:

  • azu serve

  • azu test --watch

  • Hot 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

Variable
Description
Default

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


  • azu help - Show help including plugin commands

  • azu version - Show version including plugin versions

See Also

Last updated