Skip to main content

SUM Platform CLI: single control plane for site lifecycle management

Project description

SUM CLI (v3)

PyPI

The SUM CLI is the single control plane for deploying and managing SUM Platform client sites.

Install

pip install sum-cli
sum-platform --version

With Gitea Support

If using Gitea instead of GitHub for repository hosting:

pip install sum-cli[gitea]

Quick Usage

# Create a new production site (requires sudo)
sudo sum-platform init acme --theme theme_a

# Create site with custom content profile
sudo sum-platform init acme --content-path /path/to/profiles/acme

# Update a deployed site
sum-platform update acme

# Backup a site
sum-platform backup acme --include-media

# Promote staging to production
sum-platform promote acme --domain acme.example.com

# List available themes
sum-platform themes

# Validate a project setup
sum-platform check acme

Commands

Command Description Requires Sudo
init Create new site at /srv/sum/<name>/ Yes
update Pull updates, migrate, restart No (staging)
backup Database and media backup No
promote Deploy staging site to production No
check Validate project setup No
themes List available themes No
run Start development server No

Git Provider Support

The CLI supports both GitHub and Gitea for repository hosting. Configure your provider in /etc/sum/config.yml:

GitHub (default):

agency:
  name: "Your Agency"
  git_provider: "github"
  github_org: "your-org"

Gitea:

agency:
  name: "Your Agency"
  git_provider: "gitea"
  gitea_url: "https://gitea.example.com"
  gitea_org: "your-org"
  gitea_token_env: "GITEA_TOKEN"

For Gitea, set the GITEA_TOKEN environment variable with your API token.

Development Install (monorepo)

pip install -e ./cli

Configuration

System-wide configuration is read from /etc/sum/config.yml. See config.yml.example for the full schema.

Documentation

The full User Guide is bundled with the package at sum/docs/USER_GUIDE.md.

For monorepo development:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sum_cli-3.0.0.tar.gz (125.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sum_cli-3.0.0-py3-none-any.whl (117.7 kB view details)

Uploaded Python 3

File details

Details for the file sum_cli-3.0.0.tar.gz.

File metadata

  • Download URL: sum_cli-3.0.0.tar.gz
  • Upload date:
  • Size: 125.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sum_cli-3.0.0.tar.gz
Algorithm Hash digest
SHA256 e458e650583d32a4eca5a06f5feb53c81adae011377e3be2d04a39181f093678
MD5 98e93381f1043cb0743dcda241f90190
BLAKE2b-256 722ccd1bbfef8d5ef7d1d83d62ef50b0add00f2971f156fa711f309a1d8f9b01

See more details on using hashes here.

File details

Details for the file sum_cli-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: sum_cli-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sum_cli-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25c2761f3d3a6a3d054daecf9c91087f1f1bca4bc0bf4b799b8f6bb3410322ec
MD5 08c2b1af7cac8ea6dbd54904657684d8
BLAKE2b-256 29106fe9be587ba0246c6be75f39940d792f94a577bd1b247964f4949d253689

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page