Usage
Subcommands
generate
Generate a CI/CD pipeline configuration file for your project.Flags
Supported Providers
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.