Skip to main content

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

Storage locations:
  • Local: ./plugins/ (project directory)
  • Global: ~/.dokrypt/plugins/

Plugin Manifest

Every plugin has a plugin.yaml manifest:

Lifecycle Hooks

Plugins can subscribe to these lifecycle events:

Plugin Configuration

Configure plugins in dokrypt.yaml:

Creating a Plugin

Scaffold

Creates:
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 in dokrypt.yaml: