Skip to main content
Clone a GitHub repository, analyze its stack, and generate a deployment plan.

Usage

clanker deploy <repo-url> [flags]

How it works

The deploy command follows a multi-stage process:
1

Clone repository

Clones the GitHub repository to a temporary directory
2

Analyze stack

Detects the technology stack (Node.js, Python, Go, Docker, etc.)
3

Generate plan

Uses AI to create a deployment plan based on detected stack and target platform
4

Apply (optional)

Executes the deployment plan if --apply flag is provided

Flags

--apply
boolean
default:"false"
Execute the deployment plan immediately
--provider
string
default:"aws"
Target cloud provider: aws, gcp, azure, cloudflare
--target
string
Deployment target: ec2, eks, ecs, lambda, cloudflare-workers
--instance-type
string
EC2 instance type for VM deployments
--new-vpc
boolean
default:"false"
Create a new VPC for the deployment
--enforce-image-deploy
boolean
default:"false"
Force container image deployment (build and push Docker image)
--profile
string
AWS profile to use
--gcp-project
string
GCP project ID
--azure-subscription
string
Azure subscription ID
--ai-profile
string
AI provider profile to use for plan generation

Examples

# Generate deployment plan
clanker deploy https://github.com/user/repo

# Deploy immediately
clanker deploy https://github.com/user/repo --apply

Supported stacks

The deploy command automatically detects:
  • Node.js: package.json, npm/yarn/pnpm
  • Python: requirements.txt, setup.py, Pipfile
  • Go: go.mod, go.sum
  • Docker: Dockerfile, docker-compose.yml
  • Static sites: HTML/CSS/JS files

Deployment targets

AWS

  • EC2: Virtual machines with systemd services
  • EKS: Kubernetes deployments
  • ECS: Container services
  • Lambda: Serverless functions

GCP

  • Compute Engine: Virtual machines
  • GKE: Kubernetes clusters
  • Cloud Run: Containerized services
  • Cloud Functions: Serverless functions

Azure

  • Virtual Machines: VM instances
  • AKS: Kubernetes clusters
  • Container Instances: Containers
  • Functions: Serverless functions

Cloudflare

  • Workers: Edge functions
  • Pages: Static site hosting
The deployment creates all necessary infrastructure including networking, load balancers, and security groups.

Creating infrastructure

Learn about maker mode and infrastructure creation

Maker mode

Understand plan/apply workflow

Multi-cloud

Deploy across multiple clouds

AWS maker

Advanced AWS infrastructure creation

Build docs developers (and LLMs) love