── ADVANCED ──

Plugins

Extend Exo with custom plugins — add new generators, integrations, and template types.

## Plugin System Overview

Plugins are executable scripts or binaries installed to ~/.exo/plugins/. They follow the naming convention exo-<name> and are automatically discovered by the Exo CLI.

## Plugin Management

bash
# Install a plugin
exo plugin install <name>
# List installed plugins
exo plugin list
# Remove a plugin
exo plugin remove <name>

## Creating a Plugin

Any executable named exo-<name> placed in ~/.exo/plugins/ becomes available as exo <name>:

~/.exo/plugins/exo-hello
1#!/bin/bash
2# A simple Exo plugin
3echo "Hello from Exo plugin!"
4echo "Project: $(cat .exo.yaml | grep name | awk '{print $2}')"
5echo "Language: $(cat .exo.yaml | grep language | awk '{print $2}')"
bash
chmod +x ~/.exo/plugins/exo-hello
exo hello # → "Hello from Exo plugin!"

## Plugin Directory Structure

text
~/.exo/
├── plugins/
│ ├── exo-terraform-modules # Custom terraform module generator
│ ├── exo-security-scan # Security scanning integration
│ └── exo-deploy # Deployment automation
└── templates/ # Local template overrides