sitectl
sitectl is the LibOps command-line tool for managing Docker Compose-backed application sites. It keeps contexts, Compose lifecycle commands, service helpers, component changes, local image overrides, validation, health checks, and deployment entrypoints in one consistent CLI.
Documentation: https://sitectl.libops.io
Requirements
Quick Start
Install sitectl, install the app plugin for the template you want to run, then create a local site:
sitectl create wp/default \
--template-repo https://github.com/libops/wp \
--path ./my-wordpress-site \
--type local \
--checkout-source template \
--default-context
Start the site with the context-aware Compose wrapper:
sitectl compose up --remove-orphans -d
See Managed applications for the Compose, local image build, HTTPS, and development override contract.
Common Operations
Compose lifecycle is documented in sitectl compose:
sitectl compose ps
sitectl compose logs -f
sitectl compose down
Context and site checks are documented in sitectl healthcheck and sitectl validate:
sitectl healthcheck
sitectl validate
Local image overrides are documented in sitectl image:
sitectl image set --image app=ghcr.io/example/app:pr-123
Component changes are written with sitectl set and applied with sitectl converge:
sitectl set ingress enabled --mode https-default --domain app.localhost
sitectl set ingress enabled --trusted-ip 203.0.113.10/32 --max-upload-size 2G --upload-timeout 10m
sitectl converge
License
sitectl is licensed under the MIT License.
Attribution
- The
config commands for setting contexts were heavily inspired by kubectl.
- Adding a TUI was inspired by 37signals' once CLI.