Skip to content

klim generate

Auto-generate CI and container configuration files from your .klim.yaml tool requirements. The generated files use package IDs from the klim marketplace to produce install commands for each tool.

Terminal window
klim generate <github-action|dockerfile|devcontainer> [flags]
FormatDescriptionOutput
github-actionGitHub Actions workflowReusable workflow with install + verify steps
dockerfileDockerfileMulti-stage with apt/brew/npm installs
devcontainerdevcontainer.jsonVS Code / GitHub Codespaces config with features
FlagShortDescription
--file-fPath to .klim.yaml (default: auto-detect)
--output-oWrite to file instead of stdout
--baseBase image for Dockerfile (default: ubuntu:24.04)
Terminal window
# Generate GitHub Actions workflow
klim generate github-action
# Generate and save to file
klim generate github-action -o .github/workflows/setup-tools.yml
# Generate Dockerfile with custom base image
klim generate dockerfile --base ubuntu:22.04 -o Dockerfile.tools
# Generate devcontainer.json
klim generate devcontainer -o .devcontainer/devcontainer.json

The devcontainer generator automatically maps known tools to official Dev Container Features:

ToolFeature
kubectlghcr.io/devcontainers/features/kubectl-helm-minikube
terraformghcr.io/devcontainers/features/terraform
nodeghcr.io/devcontainers/features/node
pythonghcr.io/devcontainers/features/python
goghcr.io/devcontainers/features/go
ghghcr.io/devcontainers/features/github-cli
azghcr.io/devcontainers/features/azure-cli
dockerghcr.io/devcontainers/features/docker-in-docker

Tools without a known feature are installed via postCreateCommand.