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.
channel create
Section titled “channel create”Creates a new channel and returns publish and subscribe tokens.
npx zooid channel create <id> [options]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
id | URL-safe slug (lowercase alphanumeric + hyphens, 3-64 chars) |
Options
Section titled “Options”| Option | Description |
|---|---|
--name <name> | Display name (defaults to id) |
--description <desc> | Channel description |
--public | Make channel public (default) |
--private | Make channel private |
--strict | Set config.strict_types: true |
--config <file> | Path to channel config JSON file |
--schema <file> | Path to JSON schema file (shorthand for config) |
Examples
Section titled “Examples”# Create a public channelnpx zooid channel create market-signals
# Create a private channel with a descriptionnpx 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.jsonchannel list
Section titled “channel list”Lists all channels on the server with their visibility and event count.
npx zooid channel listArguments
Section titled “Arguments”None.
Options
Section titled “Options”None.
Examples
Section titled “Examples”npx zooid channel listchannel update
Section titled “channel update”Updates an existing channel’s metadata or configuration.
npx zooid channel update <id> [options]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
id | Channel ID to update |
Options
Section titled “Options”| Option | Description |
|---|---|
--name <name> | Update display name |
--description <desc> | Update description |
--tags <csv> | Set tags (comma-separated) |
--public | Make channel public |
--private | Make channel private |
--strict | Set config.strict_types: true |
--no-strict | Set config.strict_types: false |
--config <file> | Path to channel config JSON file |
--schema <file> | Path to JSON schema file (shorthand for config) |
Examples
Section titled “Examples”# Add tags to a channelnpx zooid channel update market-signals --tags "finance,crypto,realtime"
# Make a channel privatenpx zooid channel update internal-alerts --private
# Update description and enable schema validationnpx zooid channel update typed-events --description "Validated events only" --strict --schema ./schema.jsonchannel delete
Section titled “channel delete”Deletes a channel and all its associated events and webhook subscriptions.
npx zooid channel delete <id> [options]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
id | Channel ID to delete |
Options
Section titled “Options”| Option | Description |
|---|---|
-y, --yes | Skip confirmation prompt |
Examples
Section titled “Examples”# Delete with confirmation promptnpx zooid channel delete old-channel
# Delete without confirmationnpx 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.