Overview
Plugins extend Dokrypt’s functionality with custom lifecycle hooks, CLI commands, and services. Plugins can be installed globally or per-project.Plugin Types
Installation
- Local:
./plugins/(project directory) - Global:
~/.dokrypt/plugins/
Plugin Manifest
Every plugin has aplugin.yaml manifest:
Lifecycle Hooks
Plugins can subscribe to these lifecycle events:Plugin Configuration
Configure plugins indokrypt.yaml:
Creating a Plugin
Scaffold
my-plugin
plugin.yaml
Dockerfile
README.md
Plugin Environment
Plugins receive an environment interface with:Publishing
Managing Plugins
Hooks Configuration (dokrypt.yaml)
In addition to plugin hooks, you can define shell command hooks directly indokrypt.yaml: