cli

v2.14.0
@saplo/cli Checked 2 days ago Published 1 month ago

Official CLI + MCP server for Saplo hosting platform - 70 tools for Claude Code, Codex and Claude Desktop: one-call install of 100+ catalog apps, deploy, env…

Official CLI for the Saplo hosting platform. Authentication - saplo login [--token ] - Authenticate with Saplo - saplo whoami - Show current authenticated user Project Setup - saplo init - Initialize saplo.yaml in current directory - saplo link [--app-id ] - Link directory to an existing application

Summary extracted from the README.

@saplo/cli

Official CLI for the Saplo hosting platform.

Publisher: SK Space Kamila Dominik (brand: Saplo), Polish VAT ID 1231487221 - the same entity named in the terms of service at saplo.pl. Support: pomoc@saplo.pl. Official channels are listed at saplo.pl/oficjalne-kanaly. Verify this package before installing: npm view @saplo/cli dist.integrity. See SECURITY.md for the full verification procedure and token scopes.

Installation

npm install -g @saplo/cli

Quick Start

# Authenticate
saplo login

# In your project directory
saplo init          # generate saplo.yaml
saplo link          # connect to existing app
saplo deploy        # deploy!

Commands

Authentication

  • saplo login [--token <token>] - Authenticate with Saplo
  • saplo whoami - Show current authenticated user

Project Setup

  • saplo init - Initialize saplo.yaml in current directory
  • saplo link [--app-id <id>] - Link directory to an existing application

Deployment

  • saplo deploy - Deploy the current directory
  • saplo deploy --prebuilt - Upload prebuilt output (skip server build)
  • saplo deploy --no-logs - Deploy without streaming logs
  • saplo rollback [<deployment_id>] - Roll back to previous deployment
  • saplo status - Show current app status and recent deployments

Logs

  • saplo logs - Show recent logs
  • saplo logs --follow - Stream live logs
  • saplo logs --deployment <id> - Logs for a specific deployment

Environment Variables

  • saplo env - List all env vars
  • saplo env set KEY=value - Set one or more env vars
  • saplo env rm KEY - Remove an env var
  • saplo env pull - Pull non-secret vars to .env.local

Domains

  • saplo domain ls - List custom domains
  • saplo domain add example.com - Add a custom domain
  • saplo domain rm example.com - Remove a domain

Catalog apps (for AI agents)

The MCP tools saplo_catalog_list and saplo_catalog_suggest expose 100+ ready-made apps (Uptime Kuma, Ghost, Vaultwarden, Nextcloud, n8n...). saplo_create_app accepts their app_type, so an agent in Claude Code or Codex can install them in one call. saplo_box_capacity tells the agent how much RAM and disk is still free in a Box (apps share the Box resources).

Python and Django version

  • saplo python list <app-id> - Show the current Python and Django version of a Django app and the versions available
  • saplo python set <app-id> <python-version> [django-version] - Change the Python version of a Django app (queues the change, rebuilds the venv, rolls back on error)

Django 6 requires Python 3.12 or newer, so Python 3.11 always gets Django 5.x. When django-version is omitted, the newest Django compatible with the chosen Python is installed. The same operations are available to Claude Code and Claude Desktop as the MCP tools saplo_python_list and saplo_python_set.

Utilities

  • saplo open - Open app URL in browser

saplo.yaml Reference

version: 1
name: my-app                  # lowercase slug
stack: nextjs                 # nextjs|react|django|static|docker|node|astro
app_id: 1234                  # set by `saplo init` or `saplo link`

runtime:
  node: "22"                  # node version
  python: "3.13"              # python version

build:
  install: "npm ci"
  command: "npm run build"
  output: ".next"

start:
  command: "npm run start"
  port: 3000
  healthcheck: "/api/health"
  workers: 1

env:
  MY_VAR: "value"

domains: [example.com, www.example.com]

hooks:
  pre_build: "scripts/setup.sh"
  post_deploy: "curl -X POST $NOTIFY_URL"

branches:
  production: main

resources:
  ram_mb: 2048
  ssd_gb: 20

.saploignore

Create a .saploignore file (like .gitignore) to exclude files from deployment:

my-large-file.bin
local-only/

Default ignores: node_modules, .git, .next/cache, *.log, .env*, .DS_Store

License

MIT - Studio Kalmus