Skip to main content

Usage

Arguments

Flags

Description

Creates a new project directory with smart contracts, tests, deployment scripts, and a dokrypt.yaml configuration file scaffolded from the selected template. The scaffolding process:
  1. Validates the project name and checks that the target directory doesn’t already exist
  2. Loads the selected template (built-in or installed from marketplace)
  3. Renders all template files, replacing variables like {{ .ProjectName }}, {{ .ChainName }}, {{ .ChainID }}, and {{ .Engine }}
  4. Initializes a git repository (unless --no-git is set)
  5. Displays the created files and next steps

Available Templates

Examples

Basic project with defaults

Creates my-project/ with the evm-basic template, Anvil engine, and Ethereum chain.

DeFi project

Creates a full DeFi stack with AMM (Factory, Pair, Router), lending vault, staking rewards, and oracle contracts. Configures IPFS, Blockscout, and Chainlink mock services.

NFT project with custom chain

Skip git initialization

Scaffold into a specific directory

Output Structure

The created directory structure depends on the template. For evm-basic:
my-project
dokrypt.yaml
foundry.toml
README.md
contracts
Counter.sol
SimpleToken.sol
test
Counter.t.sol
SimpleToken.t.sol
scripts
deploy.js

Errors