Defang
$ defang Official High Riskdefang takes standard Docker Compose (compose.yaml) definitions and deploys them to Defang Playground, AWS, GCP, or DigitalOcean clouds. It provides both --dry-run and --json flags on key commands, plus defang compose config for safe pre-flight inspection.
brew install DefangLabs/defang/defang Defang also ships an official MCP server, but defang compose up --dry-run --json gives tighter CI/terminal determinism inside coding agents.
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
Supports --dry-run, --json, and --non-interactive flags across compose up, though initial Playground login requires browser OAuth unless BYOC credentials are used.
- Native
--dry-runand--jsonsupport oncompose up - Initial
defang loginuses GitHub browser OAuth
--dry-run previews deployment plans safely, while live compose up / compose down provisions or tears down real cloud resources and incurs billing.
- Dedicated
--dry-runflag prevents blind cloud provisioning - Live runs provision paid cloud infrastructure in BYOC accounts
Single static Go binary available via Homebrew tap, winget, npm wrapper, and GitHub Releases on macOS, Linux, and Windows.
- Cross-platform Go binary with zero runtime dependencies
Turns existing compose.yaml files directly into ECS/Cloud Run/App Platform deployments without authoring Terraform.
- Single
compose.yamltargets Playground, AWS, GCP, or DigitalOcean
Official DefangLabs/defang repository under MIT license with active development.
- Official vendor repository under MIT
Clear documentation at docs.defang.io covering providers, Compose extensions, and CLI flags.
- CLI and provider docs at docs.defang.io
Security, Auth & Guardrails
Stores Defang Playground GitHub OAuth token locally in ~/.config/defang/; BYOC deployments read standard AWS_*, GOOGLE_APPLICATION_CREDENTIALS, or DIGITALOCEAN_TOKEN env vars.
MIT open-source CLI with free Playground tier; BYOC cloud deployments incur AWS/GCP/DigitalOcean provider billing and commercial team plans.
# Defang Agent Rules - Always run `defang compose up --dry-run --json` before live cloud deployments. - Verify `--provider` (`playground`, `aws`, `gcp`, `digitalocean`) matches user intent. - Never run `defang compose down` on production stacks without explicit approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
defang compose up --dry-run --json
Validates compose.yaml and simulates cloud resource changes in JSON without provisioning infrastructure.
defang compose config
Outputs the merged, validated Docker Compose configuration locally.
Controlled Writes & Previews
defang compose up --provider aws --non-interactive
Deploys services defined in compose.yaml to your configured AWS account without interactive prompts.
Strengths for Agents
- + Supports
--dry-run --jsonondefang compose upfor safe pre-flight verification. - + Reuses standard
compose.yamlfiles across AWS, GCP, DigitalOcean, and Playground. - + Fast single static Go binary across all three major OSes.
Caveats & Pitfalls
- ! Defang Playground login defaults to interactive GitHub browser OAuth.
- ! Live BYOC deployments provision billable cloud resources in your AWS/GCP account.