Skip to content

mine craft

Scaffold projects and bootstrap dev tool configurations. Recipes are data-driven templates embedded in the binary — extensible via user-local recipes.

Terminal window
mine craft dev go # Go project with module, main.go, Makefile
mine craft dev node # Node.js with package.json
mine craft dev python # Python with pyproject.toml and .venv
mine craft dev rust # Rust project with Cargo.toml, src/main.rs, Makefile
mine craft dev docker # Dockerfile, docker-compose.yml, .dockerignore
Terminal window
mine craft git # git init + .gitignore
Terminal window
mine craft ci github # GitHub Actions CI workflow (.github/workflows/ci.yml)
Terminal window
mine craft list # show all recipes with details and aliases

Drop template files in ~/.config/mine/recipes/ using the naming convention <category>-<name>/ (e.g. dev-mytemplate/). Files inside are Go text/template files with {{.Dir}} available as the project directory name.

~/.config/mine/recipes/
└── dev-myframework/
├── main.go
└── config.yaml

Then run:

Terminal window
mine craft dev myframework
Terminal window
# Bootstrap a new Go project
mkdir myapi && cd myapi
mine craft dev go
# Add GitHub Actions CI
mine craft ci github
# Bootstrap a Python project
mkdir myapp && cd myapp
mine craft dev python
# List all available recipes
mine craft list