caddy list-modules command lists all installed Caddy modules, with optional version and package information.
Usage
Description
Lists all Caddy modules that are compiled into the binary. This is useful for:- Checking what modules are available in your build
- Verifying plugins are installed
- Debugging module issues
- Auditing third-party dependencies
- Comparing different Caddy builds
- Standard modules - Shipped with official Caddy builds
- Non-standard modules - Third-party plugins
- Unknown modules - Modules where info couldn’t be determined
Flags
boolean
default:"false"
Print package paths for each module.Shows the Go module path and any replacements.
boolean
default:"false"
Print version information for each module.Shows the Go module version (e.g.,
v1.2.3).boolean
default:"false"
Skip printing standard modules.Useful when you only want to see third-party plugins.
boolean
default:"false"
Output modules in JSON format.Useful for programmatic processing.
Examples
List all modules
List with versions
List with package paths
List with both versions and packages
List only third-party plugins
JSON output
JSON output for third-party plugins only
Exit Codes
0- Success
Module Naming
Caddy modules follow a hierarchical naming convention:caddy.*- Core Caddy moduleshttp.*- HTTP app moduleshttp.handlers.*- HTTP handlershttp.matchers.*- Request matchershttp.reverse_proxy.*- Reverse proxy sub-modulestls.*- TLS app modulestls.issuers.*- Certificate issuers
Module Types
Standard Modules
Modules that ship with official Caddy builds:- Core functionality (admin API, config loaders)
- HTTP server and handlers
- TLS/ACME support
- Logging and metrics
Non-Standard Modules
Third-party plugins added via xcaddy or custom builds:http.handlers.cache- HTTP cachedns.providers.*- DNS providers for ACMEhttp.handlers.crowdsec- CrowdSec integration- Custom plugins
Programmatic Usage
Parse JSON output
Check if module exists
Compare two builds
Building with Custom Modules
To add modules to your Caddy build, use xcaddy:Related Commands
caddy version- Show Caddy version