Usage
Subcommands
generate
Generate a CI/CD pipeline configuration file for your project.Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--provider | string | github | CI provider: github, gitlab |
--output | string | . | Output directory for generated files |
--deploy | bool | false | Include testnet deployment step |
Supported Providers
| Provider | Flag Value | Generated File |
|---|---|---|
| GitHub Actions | github | .github/workflows/dokrypt.yml |
| GitLab CI | gitlab | .gitlab-ci.yml |
Examples
GitHub Actions (default)
.github/workflows/dokrypt.yml with test job.
GitHub Actions with deploy
deploy-testnet job that runs after tests pass on the main branch.
GitLab CI
.gitlab-ci.yml with Docker-in-Docker service.
Custom output directory
Generated Pipeline Steps
Every generated workflow includes:- Install Dokrypt via npm
- Run
dokrypt doctorto verify prerequisites - Start environment with
dokrypt up --detach --fresh - Wait for services with
dokrypt status --wait --timeout 60s - Run tests with
dokrypt test run --json - Upload results as build artifact
- Clean up with
dokrypt down --volumes(runs even on failure)
Config Integration
If your project has adokrypt.yaml with test settings, the generated workflow respects them:
--gas-report --coverage flags automatically.
validate
Check that an existing CI workflow file contains the required Dokrypt steps.What It Checks
| Check | Looks For |
|---|---|
| Code checkout | actions/checkout |
| Environment startup | dokrypt up |
| Test execution | dokrypt test |
| Environment cleanup | dokrypt down |