platform

Manage the repo-scoped shared services platform.

Usage

docktree platform <subcommand>

Manages the "platform tier" — shared services declared in shared.services of docktree.yml that run once and serve all worktrees (e.g., a shared Postgres with per-database tenancy).

Subcommands

SubcommandDescription
upStart the repo-scoped platform stack (must be run from main repo root)
downStop the repo-scoped platform stack (preserves data)
statusShow platform stack state (running or not)
tenantsList tenant databases across all instances
logsStream platform service logs (pass service name to filter)
cleanStop platform, drop ALL tenant DBs, remove network. Destructive.

platform clean flags

FlagDescription
-y, --yesSkip confirmation (required in non-interactive mode)
--dry-runShow what would be dropped without making changes

Examples

Start the shared platform:

docktree platform up

List tenant databases:

docktree platform tenants

Stream logs for a specific service:

docktree platform logs postgres