CLI for managing BaseHub CMS content.
- Clone the repo to your Integrations directory:
mkdir -p ~/Integrations/basehub
cd ~/Integrations/basehub
git clone https://github.com/zocomputer/zocms.git- Create a global symlink:
ln -sf ~/Integrations/basehub/zocms/zocms.ts /usr/local/bin/zocms- Copy the prompt tool to your Prompts directory:
cp ~/Integrations/basehub/zocms/zocms.prompt.md ~/Prompts/- Set your BaseHub MCP token (copy from Claude Code MCP command)
cd ~/Integrations/basehub/zocms
git pull| Command | Description |
|---|---|
zocms list <collection> |
List items as: title | id |
zocms get <id> |
Download item → slug.md |
zocms push <file.md> |
Push and publish directly |
zocms refresh <file.md> |
Pull published version (overwrites local) |
zocms update |
Update CLI to latest version |
posts- Blog poststutorials- Tutorialsuse-cases- Use casescomparisons- Comparisonsfeatures- Features
# Find the post you want to edit
zocms list posts
# Download it
zocms get abc123 # saves as e.g. personal-ai.md
# Pull latest from BaseHub before editing
zocms refresh personal-ai.md
# Edit the markdown...
# Push changes back
zocms push personal-ai.mdOnce the prompt tool is installed, you can use natural language:
"List all blog posts" "Pull the latest version of the personal-ai post" "Push my changes to the features article"
Zo will use the zocms CLI automatically.