Deployment

Deploy to any platform with a single command. DevOS auto-detects your project type and configures the deployment accordingly.

# Just deploy — DevOS figures out the rest
devos deploy

Auto-Detection

DevOS analyzes your project and automatically selects the best platform and configuration:

Vercel

# Deploy to Vercel
devos deploy --target=vercel

# Requirements:
# - Vercel CLI installed (npm i -g vercel)
# - Logged in (vercel login)

Best for: Next.js, React, static sites, serverless functions.

Railway

# Deploy to Railway
devos deploy --target=railway

# Requirements:
# - Railway CLI installed
# - Logged in (railway login)

Best for: Node.js backends, APIs with databases, full-stack apps.

Fly.io

# Deploy to Fly.io
devos deploy --target=fly

# Requirements:
# - Fly CLI installed (flyctl)
# - Logged in (fly auth login)

Best for: Global distribution, Docker-based apps, low-latency APIs.

Docker

# Generate Dockerfile and build
devos deploy --target=docker

# DevOS will:
# 1. Analyze your project
# 2. Generate an optimized Dockerfile
# 3. Build the image
# 4. Provide run instructions

DevOS generates production-optimized Dockerfiles with multi-stage builds, proper caching, and security best practices.

Rollback

# Rollback to previous deployment
devos rollback

# Rollback to specific version
devos rollback v1.2.3

# View deployment history
devos status

Every deployment is tracked in .devos/deployments/. Rollback restores the previous state on your deployment platform.

Environment Variables

# Set environment variables
devos env set DATABASE_URL=postgres://...
devos env set API_SECRET=my-secret

# List all env vars
devos env list

# Sync to deployment platform
devos env sync

Environment variables are stored securely and synced to your deployment platform when you deploy.