Command
nylas webhook pubsub create
Create a Pub/Sub channel
Written by Qasim Muhammad Staff SRE
What does nylas webhook pubsub create do?
The nylas webhook pubsub create command creates a Pub/Sub channel. It is part of the Webhooks commands, which create and manage webhooks for real-time event notifications.
Usage
nylas webhook pubsub createFlags
| Flag | Description |
|---|---|
| --description string | Channel description |
| --encryption-key string | Optional encryption key identifier |
| --notify stringSlice(-n) | Notification email addresses |
| --topic string | Google Cloud Pub/Sub topic path (required) |
| --triggers stringSlice(-t) | Trigger types (required, comma-separated or repeated) |
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
Examples
The nylas webhook pubsub create command creates a Pub/Sub channel.
JSON output for scripting
nylas webhook pubsub create --jsonFilter by description
nylas webhook pubsub create --description <value> --jsonTroubleshooting
Command not found or fails
Run `nylas auth config` and `nylas auth login` to authenticate first.
Recommended guides
Send OTP and 2FA Codes by Email
Generate a cryptographically secure one-time code and send it by email from the terminal — no SMTP. Test the full round trip and learn email OTP's limits.
Email Prometheus Alerts without SMTP
Send Prometheus Alertmanager alerts to email via a webhook receiver that runs nylas email send, instead of configuring Alertmanager's built-in SMTP relay.
Send Sentry Issue Alerts by Email (CLI)
Turn a Sentry issue alert webhook into an enriched email with nylas email send: parse the issue title, level, and permalink, then route by severity.
Send Grafana Alert Emails without SMTP
Point a Grafana webhook contact point at a handler that runs nylas email send to route alert emails without configuring the built-in SMTP server.
How to Evaluate an Email AI Agent
Evaluate an email agent with a labeled test set, classification and action-accuracy metrics, and prompt-injection guardrail tests you run on every change.
Send Email to Discord with a Webhook (CLI)
Post email to a Discord channel from the terminal. Pull messages as JSON with the Nylas CLI and POST them to a Discord webhook as rich embeds. No bot to host.
Run nylas webhook pubsub create --help for full help output.