DEV Community

Alex Spinov
Alex Spinov

Posted on

Porter Has a Free API You've Never Heard Of

Porter is a Kubernetes-powered PaaS that deploys directly to your own cloud account (AWS, GCP, Azure). Think Heroku experience, but on your own infrastructure with full control.

What Makes Porter Special?

  • Your cloud, your data — deploys to YOUR AWS/GCP/Azure account
  • Heroku DX — git push to deploy, auto-scaling, logs
  • Kubernetes under the hood — full K8s access when you need it
  • Free tier — deploy to your own cluster

The Hidden API: Deployment Automation

# Install Porter CLI
curl -L https://porter.run/cli | sh

# Connect your cloud
porter connect aws
porter cluster create --name production

# Deploy from GitHub
porter app create myapp \
  --source github \
  --repo myorg/myrepo \
  --branch main

# Scale
porter app scale myapp --replicas 3 --cpu 500m --memory 512Mi

# Environment variables
porter env set myapp DATABASE_URL=postgres://...
porter env set myapp REDIS_URL=redis://...
Enter fullscreen mode Exit fullscreen mode

Porter API — Programmatic Control

// Porter exposes a REST API for automation
const response = await fetch('https://dashboard.porter.run/api/v1/projects/1/clusters/1/apps', {
  headers: { Authorization: `Bearer ${PORTER_TOKEN}` }
});
const apps = await response.json();

// Trigger deployment
await fetch(`https://dashboard.porter.run/api/v1/projects/1/deploy`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${PORTER_TOKEN}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    app_name: 'myapp',
    git_branch: 'main',
    image_tag: 'latest'
  })
});
Enter fullscreen mode Exit fullscreen mode

Add-ons API

# Managed databases on your cloud
porter addon create postgres --name mydb --tier standard
porter addon create redis --name cache --tier basic

# Link to app
porter addon link mydb myapp
Enter fullscreen mode Exit fullscreen mode

Quick Start

curl -L https://porter.run/cli | sh
porter auth login
porter cluster create --name dev --provider aws --region us-east-1
Enter fullscreen mode Exit fullscreen mode

Why Teams Choose Porter

A VP of Engineering shared: "We moved from Heroku to Porter. Same developer experience, but our AWS bill is 60% lower and we have full control over the infrastructure. The migration took one afternoon."


Need cloud automation or data tools? Email spinov001@gmail.com or check my solutions.

How do you deploy? Porter vs Railway vs Fly.io — what's your pick?

Top comments (0)