Skip to content

Lightfold CLl - Minimal deployment tool for indie devs. Detects your app framework, builds, and deploys to your own VPS with simple defaults. No YAML, no lock-in.

License

Notifications You must be signed in to change notification settings

theognis1002/lightfold-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightfold - Deploy your app with a single command

CI Latest Release License Stars

Documentation

Lightfold CLI Demo

Quick Start

# Install
brew tap theognis1002/lightfold
brew install lightfold

# Deploy your app
cd your-project
lightfold deploy

That'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

Features

  • 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

Installation

Homebrew (macOS/Linux)

brew tap theognis1002/lightfold
brew install lightfold

Manual Installation

Download 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 install

Commands

Primary Command

lightfold deploy - Full deployment (recommended)

Advanced Commands

For granular control over deployment steps:

  • lightfold create - Create infrastructure only
  • lightfold configure - Configure server only
  • lightfold push - Deploy code changes only

Management Commands

  • lightfold status - View deployment status
  • lightfold server - Manage servers and multi-app deployments
  • lightfold logs - View application logs
  • lightfold rollback - Rollback to previous release
  • lightfold sync - Sync local state with current config
  • lightfold ssh - SSH into deployment target
  • lightfold destroy - Destroy VM and remove local config

Configuration

Target-Based 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"
        }
      }
    }
  }
}

API Tokens

Tokens stored locally in ~/.lightfold/tokens.json:

{
  "digitalocean": "dop_v1_...",
  "vultr": "...",
  "hetzner": "...",
  "flyio": "..."
}

State Tracking

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"
}

Supported Frameworks

  • 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

Supported Providers

Available

  • 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

Coming Soon

Development

Building Locally

make build && ./lightfold .
make test

See Documentation for complete guides, API reference, and examples.

Star History

Star History Chart

About

Lightfold CLl - Minimal deployment tool for indie devs. Detects your app framework, builds, and deploys to your own VPS with simple defaults. No YAML, no lock-in.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published