Skip to main content

Usage

Subcommands


list

List all available templates (built-in and installed).

Example Output


info

Show detailed information about a template.
Displays: name, version, description, author, category, difficulty, tags, chains, services, and license.

Examples


pull

Download a template from the marketplace.
If the template is built-in, the download is skipped. Otherwise, downloads from the marketplace registry and installs to ~/.dokrypt/templates/.

Examples


push

Publish the current directory as a template to the marketplace.
Requires a template.yaml in the current directory and the DOKRYPT_REGISTRY_TOKEN environment variable.

Examples


create

Scaffold a new template directory with boilerplate files.

Created Files

Example

Creates:
my-defi-template
template.yaml
dokrypt.yaml.tmpl

template.yaml format

Template Variables

Templates use Go’s text/template syntax. Available variables: Files ending in .tmpl are rendered through the template engine and the .tmpl extension is removed. All other files are copied as-is.