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.
Using the skali CLI
Section titled “Using the skali CLI”The pure-Rust skali CLI ships alongside the desktop app (named skali on Linux/macOS and skali-cli.exe on Windows):
# Check or install FFmpegskali ffmpeg status
# Manage instancesskali instance add my-site https://video.example.com --api-key skl_...
# Encode locally and publish a videoskali publish ./holiday-4k.mp4 --preset auto
# Check for updates, deploy, update, or roll back via Cloudflare APIskali check-updatesskali deployskali updateskali rollbackRun skali --help (or skali <subcommand> --help) to view all available flags.
Manual deployment with Wrangler
Section titled “Manual deployment with Wrangler”If you prefer managing Cloudflare resources through wrangler and your own repository:
git clone https://github.com/toorop/skali.gitcd skali/apps/webnpm install- Create D1 database & R2 bucket:
Terminal window npx wrangler d1 create skali-dbnpx wrangler r2 bucket create skali-media - Create a private production config (never commit personal emails, domains, or UUIDs into the tracked
wrangler.jsonc):Fill in yourTerminal window cp wrangler.jsonc wrangler.prod.jsoncdatabase_id,APP_URL,SITE_NAME,EMAIL_FROM,ADMIN_EMAIL, and custom domain route inwrangler.prod.jsonc(which is gitignored). - Optional: enable Cloudflare Email Service on your sending domain:
Terminal window npx wrangler email sending enable yourdomain.com - Set Worker secrets:
Terminal window npx wrangler secret put PLAYBACK_HMAC_SECRET --config wrangler.prod.jsoncnpx wrangler secret put R2_ACCOUNT_ID --config wrangler.prod.jsoncnpx wrangler secret put R2_ACCESS_KEY_ID --config wrangler.prod.jsoncnpx wrangler secret put R2_SECRET_ACCESS_KEY --config wrangler.prod.jsonc - Apply migrations and deploy:
Terminal window npx wrangler d1 migrations apply skali-db --remote --config wrangler.prod.jsoncnpm run buildnpx wrangler deploy --config wrangler.prod.jsonc - Visit
https://your-domain/login, sign in with yourADMIN_EMAILMagic Link, and create an API key in/adminfor the Skali desktop/CLI app.
Local development
Section titled “Local development”Web (apps/web)
Section titled “Web (apps/web)”cd apps/webnpm installcp .dev.vars.example .dev.varsnpm run db:migrate:localnpm run devOpen http://localhost:5173. During local dev, Magic Link URLs are printed directly in your terminal.
Run verification checks:
npm run typechecknpm testnpm run buildDesktop & CLI (apps/desktop)
Section titled “Desktop & CLI (apps/desktop)”cd apps/desktopcargo test --workspacecargo clippy --workspace --all-targets -- -D warningscargo run -p skali-desktop