ZYVOPDOCS
MULTI-PLATFORM SYNC
CLI Reference

CLI Configuration & Environment Variables

Reference for ~/.zyvop/config.json and all supported environment variables.

Configuration & Environment Variables

The ZyVOP CLI can be configured via interactive login, a JSON configuration file, or system environment variables.


Configuration File (~/.zyvop/config.json)

When you run zyvop login, the CLI creates a secure configuration file in your user home directory:

  • Directory: ~/.zyvop (permissions: 0700)
  • File: ~/.zyvop/config.json (permissions: 0600)
~/.zyvop/config.json
{
  "token": "zv_<48-hex-character-token>",
  "endpoint": "https://zyvop.com/graphql"
}

Supported Environment Variables

Environment variables always take precedence over values in ~/.zyvop/config.json.

Core CLI Variables

VariableDescriptionDefault
ZYVOP_TOKENDeveloper API token (zv_...) used for authenticationundefined
ZYVOP_ENDPOINTCustom backend GraphQL / API URLhttps://zyvop.com/graphql
ZYVOP_WEB_URLBase URL used when printing public article linkshttps://zyvop.com

Local Cross-Posting Variables (--local mode)

When running zyvop publish post.md --local, the CLI bypasses the ZyVOP cloud database and publishes directly using these local environment variables:

DestinationVariableDescription
DEV.toZYVOP_DEVTO_API_KEYDEV.to API key from dev.to/settings/extensions
HashnodeZYVOP_HASHNODE_API_KEYHashnode Personal Access Token
MediumZYVOP_MEDIUM_API_TOKENMedium Integration Token
BlueskyZYVOP_BLUESKY_IDENTIFIERYour Bluesky handle (e.g. yourname.bsky.social)
BlueskyZYVOP_BLUESKY_APP_PASSWORDApp Password generated in Bluesky Settings
WordPressZYVOP_WORDPRESS_URLBase URL of WordPress installation (https://blog.dev)
WordPressZYVOP_WORDPRESS_USERNAMEWordPress administrative or author username
WordPressZYVOP_WORDPRESS_APP_PASSWORDWordPress Application Password

Example .env File for CI/CD

.env.local
# ZyVOP Authentication
ZYVOP_TOKEN="zv_<48-hex-character-token>"

# Local Mode Keys (Optional)
ZYVOP_DEVTO_API_KEY="dev_xxxx..."
ZYVOP_HASHNODE_API_KEY="hash_xxxx..."
ZYVOP_MEDIUM_API_TOKEN="med_xxxx..."
ZYVOP_BLUESKY_IDENTIFIER="alice.bsky.social"
ZYVOP_BLUESKY_APP_PASSWORD="xxxx-xxxx-xxxx-xxxx"

On this page