Skip to content

zooid channel

Manage channels on your Zooid server. Channels are named endpoints that events are published to and consumed from.

All channel commands that modify state (create, update, delete) write to both the server and .zooid/workforce.json, keeping them in sync.

Creates a new channel and returns publish and subscribe tokens.

Terminal window
npx zooid channel create <id> [options]
ArgumentDescription
idURL-safe slug (lowercase alphanumeric + hyphens, 3-64 chars)
OptionDescription
--name <name>Display name (defaults to id)
--description <desc>Channel description
--publicMake channel public (default)
--privateMake channel private
--strictSet config.strict_types: true
--config <file>Path to channel config JSON file
--schema <file>Path to JSON schema file (shorthand for config)
Terminal window
# Create a public channel
npx zooid channel create market-signals
# Create a private channel with a description
npx zooid channel create internal-alerts --private --description "Internal monitoring alerts"
# Create a channel with full config (types, storage, etc.)
npx zooid channel create typed-events --config ./channel.json
# Create a channel with schema validation (shorthand)
npx zooid channel create typed-events --strict --schema ./event-schema.json

Lists all channels on the server with their visibility and event count.

Terminal window
npx zooid channel list

None.

None.

Terminal window
npx zooid channel list

Updates an existing channel’s metadata or configuration.

Terminal window
npx zooid channel update <id> [options]
ArgumentDescription
idChannel ID to update
OptionDescription
--name <name>Update display name
--description <desc>Update description
--tags <csv>Set tags (comma-separated)
--publicMake channel public
--privateMake channel private
--strictSet config.strict_types: true
--no-strictSet config.strict_types: false
--config <file>Path to channel config JSON file
--schema <file>Path to JSON schema file (shorthand for config)
Terminal window
# Add tags to a channel
npx zooid channel update market-signals --tags "finance,crypto,realtime"
# Make a channel private
npx zooid channel update internal-alerts --private
# Update description and enable schema validation
npx zooid channel update typed-events --description "Validated events only" --strict --schema ./schema.json

Deletes a channel and all its associated events and webhook subscriptions.

Terminal window
npx zooid channel delete <id> [options]
ArgumentDescription
idChannel ID to delete
OptionDescription
-y, --yesSkip confirmation prompt
Terminal window
# Delete with confirmation prompt
npx zooid channel delete old-channel
# Delete without confirmation
npx zooid channel delete old-channel --yes
  • Channel IDs must be URL-safe slugs: lowercase letters, numbers, and hyphens only, between 3 and 64 characters.
  • Deleting a channel is irreversible. All events and webhook registrations for that channel are permanently removed.
  • Public channels are readable without authentication. Private channels require a subscribe token.
  • All create/update/delete operations write to both the server and .zooid/workforce.json.