Skip to main content

Usage

Deploys the server defined in ezforge.toml. Runs the full pipeline: build → scan → push → provision → health check → traffic swap.

Flags

Examples

Deploy from source (Dockerfile in current directory):
Deploy a pre-built image:
Deploy to a specific server in a specific project:

Deploy pipeline

When you run ezforge deploy, the following steps occur in order:
  1. Build — Builds the container image from Dockerfile (skipped if --image is used)
  2. Scan — Runs Trivy vulnerability scan; HIGH CVEs flag the deployment with a warning, CRITICAL CVEs block the deployment
  3. Push — Pushes the image to the ezForge private registry
  4. Provision — Creates or updates the Fly.io Machines VM
  5. Health check — Polls GET {health.path} until it returns 200 or the timeout is reached
  6. Traffic swap — Routes live traffic to the new machine
  7. Cleanup — Stops the old machine; keeps for 1 hour before deletion (for emergency recovery)
If any step fails:
  • Auto-rollback restores the previous healthy deployment (unless --no-rollback is set)
  • Old machine is preserved in stopped state for 1 hour

Output