Skip to content
Public BetaSkali v0.9.0 is freshly out and not yet tested on every OS setup. Feedback and bug reports are very welcome (open an issue). Need battle-tested stability? Check back in a few days for v1.0.

Manual deploy & CLI

While most users deploy and update Skali in one click from the desktop app, Skali is also first-class for developers, sysadmins, and CI/CD pipelines.

The pure-Rust skali CLI ships alongside the desktop app (named skali on Linux/macOS and skali-cli.exe on Windows):

Terminal window
# Check or install FFmpeg
skali ffmpeg status
# Manage instances
skali instance add my-site https://video.example.com --api-key skl_...
# Encode locally and publish a video
skali publish ./holiday-4k.mp4 --preset auto
# Check for updates, deploy, update, or roll back via Cloudflare API
skali check-updates
skali deploy
skali update
skali rollback

Run skali --help (or skali <subcommand> --help) to view all available flags.

If you prefer managing Cloudflare resources through wrangler and your own repository:

Terminal window
git clone https://github.com/toorop/skali.git
cd skali/apps/web
npm install
  1. Create D1 database & R2 bucket:
    Terminal window
    npx wrangler d1 create skali-db
    npx wrangler r2 bucket create skali-media
  2. Create a private production config (never commit personal emails, domains, or UUIDs into the tracked wrangler.jsonc):
    Terminal window
    cp wrangler.jsonc wrangler.prod.jsonc
    Fill in your database_id, APP_URL, SITE_NAME, EMAIL_FROM, ADMIN_EMAIL, and custom domain route in wrangler.prod.jsonc (which is gitignored).
  3. Optional: enable Cloudflare Email Service on your sending domain:
    Terminal window
    npx wrangler email sending enable yourdomain.com
  4. Set Worker secrets:
    Terminal window
    npx wrangler secret put PLAYBACK_HMAC_SECRET --config wrangler.prod.jsonc
    npx wrangler secret put R2_ACCOUNT_ID --config wrangler.prod.jsonc
    npx wrangler secret put R2_ACCESS_KEY_ID --config wrangler.prod.jsonc
    npx wrangler secret put R2_SECRET_ACCESS_KEY --config wrangler.prod.jsonc
  5. Apply migrations and deploy:
    Terminal window
    npx wrangler d1 migrations apply skali-db --remote --config wrangler.prod.jsonc
    npm run build
    npx wrangler deploy --config wrangler.prod.jsonc
  6. Visit https://your-domain/login, sign in with your ADMIN_EMAIL Magic Link, and create an API key in /admin for the Skali desktop/CLI app.
Terminal window
cd apps/web
npm install
cp .dev.vars.example .dev.vars
npm run db:migrate:local
npm run dev

Open http://localhost:5173. During local dev, Magic Link URLs are printed directly in your terminal.

Run verification checks:

Terminal window
npm run typecheck
npm test
npm run build
Terminal window
cd apps/desktop
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo run -p skali-desktop