Dagger CLI
$ dagger Official Med RiskExecutes modular, containerized CI/CD pipelines written in Go, TypeScript, or Python on top of BuildKit. Agents can inspect module functions via dagger functions, call typed pipelines via dagger call, and query the engine via GraphQL JSON with dagger query.
brew install dagger/tap/dagger Run dagger call and dagger query directly for typed CI pipelines; Dagger also provides container-sandbox primitives useful for agent tool execution.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Strongly typed dagger functions, dagger call, --progress=plain, and JSON-native dagger query GraphQL interface.
dagger queryreturns GraphQL JSON responsesdagger functionsself-describes module arguments and return types
Containerized execution isolates side effects unless explicit host directories or secrets are passed to dagger call.
- Explicit capability passing via CLI arguments (
--source,--token)
Single CLI binary across major OSes, but requires a Docker/container runtime to spin up the Dagger Engine container.
- Requires Docker/container runtime for engine execution
Replaces fragile YAML CI steps with typed, locally testable pipelines in Go, Python, or TypeScript.
- Identical execution locally and in CI runners
Official Dagger project under Apache-2.0 with active releases.
- First-party
dagger/daggerrepository
Well-maintained docs.dagger.io reference and typed CLI help.
- Official docs at docs.dagger.io
Security, Auth & Guardrails
Local engine runs need no auth; optional Dagger Cloud telemetry uses DAGGER_CLOUD_TOKEN.
Apache-2.0 open-source CLI and engine are free; optional Dagger Cloud dashboard has free and paid plans.
# Dagger CLI (dagger) Agent Rules - Always pass `--progress=plain` in agent shells so TUI spinners do not scramble logs. - Inspect `dagger functions` before calling unfamiliar module entrypoints.
Agent-Ready Command Recipes
Safe Read-Only Queries
dagger functions --progress=plain
Inspects the module's typed pipeline functions and descriptions without running them.
echo '{ version }' | dagger query --progress=plain Queries the Dagger GraphQL engine and returns structured JSON.
Controlled Writes & Previews
dagger call test --progress=plain
Runs the module's test pipeline inside BuildKit containers with linear plain logs.
Strengths for Agents
- + Typed
dagger functionsself-documentation makes pipeline discovery accurate for agents. - +
dagger queryreturns clean GraphQL JSON. - + Pipelines run identically in local Docker and remote CI.
Caveats & Pitfalls
- ! Requires Docker/BuildKit daemon access to run the Dagger Engine.
- ! Default TUI progress view must be overridden with
--progress=plainin headless logs.