Stack commands
All stack-scoped commands take the stack either positionally
(shc start nextcloud) or via the global -s/--stack flag
(shc -s nextcloud start). Service-level operations use -S/--service.
shc ls
Section titled “shc ls”List deployments (one row per stack + environment), including status and node binding:
shc lsshc -o json lsFor per-deployment detail use shc inspect (on-disk + rendered
configuration) and shc status (health, per-service counts).
shc start
Section titled “shc start”Start stack services:
shc start nextcloud # positional stackshc -s nextcloud start # global -sshc -s nextcloud start -S web # one service onlyshc stop
Section titled “shc stop”Stop stack services:
shc stop nextcloudshc -s nextcloud stop -f # kill instead of graceful stopshc -s nextcloud stop -S web # one service onlyshc restart
Section titled “shc restart”Restart services:
shc restart nextcloudshc -s nextcloud restart -S webshc exec
Section titled “shc exec”Execute non-interactive command (stack from ctx, service via -S, then
-- and the command):
shc -s nextcloud exec -S web -- ls -lashc -s nextcloud exec -S web -w /app -- cat config.phpshc -s nextcloud exec -S web -u www-data -- whoamishc shell
Section titled “shc shell”Interactive shell access:
shc -s nextcloud shellshc -s nextcloud shell -S webshc -s nextcloud shell -S web -u www-datashc logs
Section titled “shc logs”View container logs:
shc -s nextcloud logsshc -s nextcloud logs --followshc -s nextcloud logs -S web --since 1hshc -s nextcloud logs --tail 100shc status
Section titled “shc status”Health status:
shc statusshc -s nextcloud statusshc status --allSee Also
Section titled “See Also”shc@docs:~$