# Install
brew tap theognis1002/lightfold
brew install lightfold
# Deploy your app
cd your-project
lightfold deployThat's it! Lightfold will:
- Auto-detect your framework (Next.js, Django, Rails, etc.)
- Set up a server on your preferred infra (DigitalOcean, Vultr, Hetzner, etc.)
- Deploy your app with zero configuration
- Works With Your Stack: Supports 15+ frameworks including Next.js, Astro, Django, Rails, Laravel
- Deploy Anywhere: DigitalOcean, Vultr, Hetzner Cloud, or bring your own server
- Zero Config: Automatic framework detection and server setup
- Smart Deploys: Only deploys what changed, skips everything else
- Multi-App: Deploy multiple applications to a single server with automatic port management
brew tap theognis1002/lightfold
brew install lightfoldDownload Pre-built Binary: Visit the releases page and download the binary for your platform.
Build from Source:
git clone https://github.com/theognis1002/lightfold-cli.git
cd lightfold-cli
make build
sudo make installlightfold deploy - Full deployment (recommended)
For granular control over deployment steps:
lightfold create- Create infrastructure onlylightfold configure- Configure server onlylightfold push- Deploy code changes only
lightfold status- View deployment statuslightfold server- Manage servers and multi-app deploymentslightfold logs- View application logslightfold rollback- Rollback to previous releaselightfold sync- Sync local state with current configlightfold ssh- SSH into deployment targetlightfold destroy- Destroy VM and remove local config
Config stored in ~/.lightfold/config.json:
{
"targets": {
"myapp-prod": {
"project_path": "/path/to/project",
"framework": "Next.js",
"provider": "digitalocean",
"builder": "nixpacks",
"provider_config": {
"digitalocean": {
"ip": "192.168.1.100",
"ssh_key": "~/.ssh/id_rsa",
"username": "deploy",
"region": "nyc1",
"size": "s-1vcpu-1gb",
"provisioned": true,
"droplet_id": "123456789"
}
}
}
}
}Tokens stored locally in ~/.lightfold/tokens.json:
{
"digitalocean": "dop_v1_...",
"vultr": "...",
"hetzner": "...",
"flyio": "..."
}State per target in ~/.lightfold/state/<target>.json:
{
"created": true,
"configured": true,
"last_commit": "abc123...",
"last_deploy": "2025-10-03T10:30:00Z",
"last_release": "20251003103000",
"provisioned_id": "123456789",
"builder": "nixpacks"
}- Frontend: Next.js, Astro, Gatsby, Svelte/SvelteKit, Vue.js, Angular
- Backend: Django, Flask, FastAPI, Express.js, NestJS, tRPC, Laravel, Rails, Spring Boot, ASP.NET Core, Phoenix
- Languages: JavaScript/TypeScript, Python, PHP, Ruby, Go, Java, C#, Elixir
- AWS EC2 - Full provisioning support with Elastic IP and security group management
- DigitalOcean - Full provisioning support
- Hetzner Cloud - Full provisioning support
- Vultr - Full provisioning support
- Linode - Full provisioning support
- Fly.io - Container-based deployment only
- BYOS (Bring Your Own Server) - Use any existing server
- Google Cloud (Compute Engine)
- Azure (VMs)
- Caddy
- Traefik
make build && ./lightfold .
make testSee Documentation for complete guides, API reference, and examples.

