Developer Workflows
Choose the right ZyVOP workflow for terminal publishing, repositories, automation, APIs, and AI agents.
The web editor is the simplest place to learn ZyVOP. Developer workflows become useful when your articles already live in files, a repository, a CMS, or an automated system.
Choose the right tool
| Workflow | Choose it when |
|---|---|
| Web editor | You want an interactive writing, preview, and publishing experience |
| CLI | You keep articles as local Markdown and want explicit terminal commands |
| GitHub Actions | Repository changes should validate or publish through CI |
| REST API | Your application, CMS, or service needs programmatic publishing |
| MCP | You want a compatible AI client to inspect or act on your ZyVOP account with an approved developer token |
| GitHub Backup | You want versioned repository copies of ZyVOP content |
Start with the CLI
The CLI provides the clearest bridge between a Markdown file and ZyVOP:
npx zyvop login
npx zyvop publish ./posts/my-article.md --dry-run
npx zyvop publish ./posts/my-article.mdUse --dry-run before the first real publish to inspect validation and destination choices without sending the article.
See CLI Overview, Configuration, and zyvop publish.
Keep publishing metadata with the article
YAML frontmatter can describe the title, excerpt, tags, canonical URL, cover image, publication state, AI disclosure, and selected destinations. Keeping this metadata in the file makes changes reviewable in Git.
---
title: "How I Diagnosed a Slow Query"
tags: [postgres, performance, debugging]
canonical_url: https://example.com/posts/slow-query
cross_post:
devto: true
hashnode: false
ai_disclosure: human_written
---Use only documented fields from the Frontmatter Reference.
Automate carefully
Before enabling automatic publication from a repository:
- make a dry run part of pull-request validation;
- store tokens in repository or CI secrets;
- publish only intended files and branches;
- use stable identifiers so updates match the correct article;
- review canonical and destination settings in code review; and
- test with one article before enabling a large content directory.
The GitHub Actions guide includes validation and publication examples.
Use the REST API for application workflows
The REST API is appropriate when publishing is initiated by a CMS, internal tool, or backend service. Authenticate with a ZyVOP developer token and handle validation and provider failures explicitly.
Start with REST API Overview & Authentication, then use the Publish Article reference and API errors.
Use MCP with clear intent
MCP lets compatible clients perform supported ZyVOP operations through structured tools. Begin with read-only requests, such as listing posts or checking analytics, before allowing content changes.
When asking an agent to create content, specify whether the result should be a draft, scheduled post, or published article. Explicitly name distribution destinations and review the returned content before publication.
Understand authentication choices
- Browser sessions authenticate the web application.
- Developer tokens authenticate the CLI, API, GitHub workflows, and MCP tools.
- Provider credentials authorize delivery to external destinations.
These credentials serve different purposes. Do not substitute one for another or expose them in frontmatter, logs, prompts, or committed workflow files.
Protect production publishing
Treat a developer token with publish permission like any production credential. Scope its use, keep it in a secret store, rotate it after exposure, and revoke tokens that are no longer needed.
A sensible progression
- Publish one draft through the web editor.
- Publish one local file with a CLI dry run.
- Add frontmatter and stable identifiers.
- Add CI validation without automatic publication.
- Enable publication only after the reviewed workflow behaves predictably.
- Add external destinations one at a time.