Usage
Subcommands
list
List all available templates (built-in and installed).Example Output
info
Show detailed information about a template.Examples
pull
Download a template from the marketplace.~/.dokrypt/templates/.
Examples
push
Publish the current directory as a template to the marketplace.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
| File | Description |
|---|---|
template.yaml | Template metadata (name, version, description, author, tags, chains, services, license) |
dokrypt.yaml.tmpl | Configuration template with {{ .ProjectName }} placeholder |
Example
my-defi-template
template.yaml
dokrypt.yaml.tmpl
template.yaml format
Template Variables
Templates use Go’stext/template syntax. Available variables:
| Variable | Description | Example |
|---|---|---|
{{ .ProjectName }} | User’s project name | my-dapp |
{{ .ChainName }} | Blockchain name | ethereum |
{{ .ChainID }} | Chain ID | 31337 |
{{ .Engine }} | Node engine | anvil |
{{ .Author }} | Project author | dev |
.tmpl are rendered through the template engine and the .tmpl extension is removed. All other files are copied as-is.