content-hub is a CLI tool that syncs directory content between one origin and one or more workspaces, driven by a config file.
Requires Python 3.14+.
pip install content-hubInitialize a config:
contentctl initThis creates content-hub.yaml:
origin: origin
workspaces:
docs: ./docsRun sync flows:
contentctl deploy docs # deploy origin → workspace
contentctl deploy docs --delete # deploy + remove workspace files missing in origin
contentctl adopt docs # adopt workspace → origin
contentctl deploy docs --dry-run # show planned operations without changesBehavior:
--pathis relative to the origin/workspace roots (default.).--deleteremoves workspace files missing in origin, filtered byinclude/excludeglobs.
originsets the primary content directory.workspacesmaps aliases to workspace paths.${VAR}environment variable expansion is supported in config values.