skiff

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2026 License: Apache-2.0, MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Skiff

Release CI License

Ship it to a server you own. Push-to-deploy with a web console, automatic HTTPS, managed databases, and preview environments — running on infrastructure you control, not rented. One small Go binary detects your stack, builds it, and runs it on Docker, local or over SSH.

$ skiff deploy

  Skiff v0.1.0

  Deploying myapp
  target   local docker
  build    Node.js

  ✓ Built skiff-myapp:latest
  ✓ Healthy
  ✓ Live at http://myapp.localhost:8080  (2.4s)

Install

macOS / Linux:

curl -fsSL https://useskiff.xyz/cli | sh

Or with Homebrew: brew install nuelScript/tap/skiff. Or with Go (any platform): go install github.com/nuelScript/skiff@latest.

You'll need Docker running to build and deploy apps.

Quickstart

In your app's directory:

skiff proxy      # once, in its own terminal — the local *.localhost router
skiff init       # scaffold a skiff.toml
skiff deploy     # build + run → http://<app>.localhost:8080

Then skiff open <app> opens it. Want to try it without an app of your own? Clone the repo and deploy an example:

git clone https://github.com/nuelScript/skiff && cd skiff
go build -o skiff . && ./skiff deploy -c examples/node-hello/skiff.toml

What it builds

No Dockerfile required — Skiff detects the stack and generates the build:

Stack Detected by
Node.js package.json — framework-aware (Next, Vite, Astro, SvelteKit, Remix, Nuxt, …)
Python requirements.txt / *.py
Go go.mod → multi-stage, tiny image
Rust Cargo.toml → multi-stage
Ruby Gemfile
Elixir mix.exs → mix release
Java Maven / Gradle
.NET *.csproj
PHP index.php
Static index.html

Have a Dockerfile? Skiff uses it instead. Need to tweak a step? Set [build] commands in skiff.toml — the escape hatch short of a full Dockerfile.

The platform

Run the web console with skiff panel (or set it up on a server) for the whole platform in the browser:

  • Push-to-deploy — connect GitHub and every push builds and ships, with zero-downtime rollout and instant rollback.
  • Preview environments — every branch gets its own live URL and certificate, posted on its pull request and removed when the branch is deleted. In a monorepo, only projects whose folder the branch changed get one. Put them behind a password to keep work in progress private.
  • Observability — per-project requests, errors, latency, visitors, top pages and referrers, with deploys marked on the charts, plus uptime checks and incidents.
  • Cost — what each app, database and bucket costs per month out of your server's price, and how much room is left.
  • Sleep when idle — stop quiet apps to free their memory; the next visit wakes them.
  • Managed databases — Postgres, MySQL, MongoDB, and Redis, provisioned and wired into your apps, with automatic daily backups (optionally copied to any S3-compatible bucket). Databases you started by hand can be brought under management too.
  • Object storage — S3-compatible buckets.
  • Email forwarding — point a domain's MX at your server and send hello@yourdomain.com to any inbox, catch-all included.
  • Custom domains + automatic HTTPS — Let's Encrypt certificates, issued and renewed for you.
  • Autoscaling — add and retire replicas to hold each app near a target CPU.
  • Workers & cron — long-running background processes and scheduled jobs.
  • Alerts — email, Slack, or webhook when a deploy fails, an app goes down, or 5xx errors spike.
  • Teams, audit log, and API tokens — collaborators, an activity trail, and a token-authenticated API for CI.
  • Agents — skiff mcp lets an AI assistant list projects, deploy, read logs and traffic, change env vars and roll back.

Apps shipped with skiff deploy show up in the console too, with their history, logs, metrics and rollback.

Commands

skiff init scaffold a skiff.toml
skiff deploy build + zero-downtime deploy
skiff rollback instantly re-run a retained build, no rebuild
skiff open <app> open a deployed app's URL
skiff status / skiff ls app state + health / list apps
skiff logs [-f] <app> app logs
skiff down <app> stop + remove
skiff sync prune orphans / dead entries
skiff proxy local *.localhost router
skiff server setup <user@host> bootstrap Docker on a fresh box over SSH
skiff login <dashboard> / logout / whoami sign the CLI in, so deploys land in your team and use dashboard env vars
skiff mcp serve your projects to AI agents over MCP
skiff server restore <file> rebuild Skiff's state on a new server from a backup

The control plane itself — the web console (skiff panel) and edge router (skiff router) — is normally run for you by the server installer.

skiff.toml

name = "myapp"

[build]
port = 3000              # the port your app listens on
# dockerfile = "Dockerfile"

[env]                    # available at build + runtime
API_URL = "https://api.example.com"

[secrets]                # runtime only — never baked into the image
API_KEY = "..."

[resources]
memory = "512m"
cpu    = "0.5"

# [server]               # omit for local Docker
# host = "root@1.2.3.4"  # deploy to a remote box over SSH

A .env file next to skiff.toml is loaded too.

Zero-downtime

Every deploy builds the new version, health-checks it, atomically cuts traffic over, then drains and retires the old one. If the new version never becomes healthy, it rolls back and the old one keeps serving.

Run it on your own server

One command on a fresh Ubuntu/Debian box sets up the whole platform — Docker, the edge router (:80/:443 with automatic HTTPS), and the web console:

curl -fsSL https://useskiff.xyz/install | sh -s -- --domain example.com

Point *.example.com at the box, open https://dash.example.com, and log in with the setup key it prints. The full walkthrough is in the self-hosting guide.

Prefer the CLI? skiff server setup user@host bootstraps Docker on a box so you can skiff deploy to it over SSH.

Moving to a new server

Skiff backs up its own state every day to your offsite bucket, sealed with a recovery key you can view on the Server page. On the new box, install Skiff, then:

skiff server restore skiff-<date>.skiffbak --key <recovery key>

Projects, settings, domains and tokens come back as they were, and each managed database is recreated and loaded from its newest offsite backup.

Contributing

Contributions are welcome — see CONTRIBUTING.md to get set up, and please follow our Code of Conduct. Found a security issue? Report it privately per SECURITY.md — not in a public issue.

License

Dual-licensed under either MIT or Apache-2.0, at your option.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cmd defines the skiff CLI: the root command and every subcommand.
Package cmd defines the skiff CLI: the root command and every subcommand.
internal
auth
Package auth is Skiff's accounts + teams layer: users belong to teams, and projects/env/deploys are scoped to a team.
Package auth is Skiff's accounts + teams layer: users belong to teams, and projects/env/deploys are scoped to a team.
builder
Package builder turns app source into a Dockerfile by detecting the stack.
Package builder turns app source into a Dockerfile by detecting the stack.
config
Package config loads and validates a skiff.toml describing a single app.
Package config loads and validates a skiff.toml describing a single app.
cpbackup
Package cpbackup packs Skiff's own state (its database, keys and registry) into an encrypted bundle, and restores it.
Package cpbackup packs Skiff's own state (its database, keys and registry) into an encrypted bundle, and restores it.
db
Package db opens Skiff's embedded SQLite database (pure-Go, no CGO) and applies the schema.
Package db opens Skiff's embedded SQLite database (pure-Go, no CGO) and applies the schema.
docker
Package docker deploys apps to a Docker engine, local or remote over SSH.
Package docker deploys apps to a Docker engine, local or remote over SSH.
gate
Package gate is the list of previews behind a password: the panel writes it, the router asks visitors for the password before letting them through.
Package gate is the list of previews behind a password: the panel writes it, the router asks visitors for the password before letting them through.
github
Package github integrates Skiff with a GitHub App: manifest creation, installation tokens, repo listing, authenticated clone URLs, and webhook verification.
Package github integrates Skiff with a GitHub App: manifest creation, installation tokens, repo listing, authenticated clone URLs, and webhook verification.
mail
Package mail receives SMTP for forwarded addresses and relays each message on to its destinations.
Package mail receives SMTP for forwarded addresses and relays each message on to its destinations.
mcp
Package mcp serves tools over the Model Context Protocol on stdio: newline-delimited JSON-RPC 2.0.
Package mcp serves tools over the Model Context Protocol on stdio: newline-delimited JSON-RPC 2.0.
panel
Package panel is Skiff's login-gated control panel where teams deploy git projects onto the box, served behind the router at dash.<domain>.
Package panel is Skiff's login-gated control panel where teams deploy git projects onto the box, served behind the router at dash.<domain>.
proxy
Package proxy routes *.localhost requests to locally deployed apps.
Package proxy routes *.localhost requests to locally deployed apps.
reconcile
Package reconcile squares a Docker engine's skiff containers with the local registry.
Package reconcile squares a Docker engine's skiff containers with the local registry.
registry
Package registry tracks the apps Skiff has deployed locally, in ~/.skiff/apps.json.
Package registry tracks the apps Skiff has deployed locally, in ~/.skiff/apps.json.
router
Package router is Skiff's edge router: it discovers apps from Docker labels and reverse-proxies <app>.<domain> to them, with automatic HTTPS.
Package router is Skiff's edge router: it discovers apps from Docker labels and reverse-proxies <app>.<domain> to them, with automatic HTTPS.
s3
Package s3 is a minimal client for S3-compatible object storage: put, delete and a write check.
Package s3 is a minimal client for S3-compatible object storage: put, delete and a write check.
sleep
Package sleep is the shared list of apps stopped for being idle: the panel writes it, the router reads it to wake them.
Package sleep is the shared list of apps stopped for being idle: the panel writes it, the router reads it to wake them.
ui
Package ui holds Skiff's styled terminal output.
Package ui holds Skiff's styled terminal output.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL