- CLI Reference
- Commands
- ironflow topic
ironflow topic
Manage developer pub/sub topics: list topics, view statistics, and publish messages.
ironflow topic <subcommand> [flags]Topics provide lightweight service-to-service messaging without triggering functions. See the Topics guide for full details.
ironflow topic list
Section titled “ironflow topic list”List all active developer pub/sub topics.
ironflow topic list [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--server | -s | string | Server URL override | |
--json | bool | false | Output as JSON |
Output:
NAME MESSAGES CONSUMERSorder.processed 42 2user.signup 15 1ironflow topic stats
Section titled “ironflow topic stats”Show detailed statistics for a specific topic.
ironflow topic stats <topic> [flags]Arguments:
| Argument | Required | Description |
|---|---|---|
topic | Yes | Topic name (e.g., order.processed) |
Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--server | -s | string | Server URL override | |
--json | bool | false | Output as JSON |
Output:
Topic: order.processedMessages: 42Consumers: 2Lag: 5First Seq: 1Last Seq: 42ironflow topic publish
Section titled “ironflow topic publish”Publish a message to a developer pub/sub topic.
ironflow topic publish <topic> [flags]Arguments:
| Argument | Required | Description |
|---|---|---|
topic | Yes | Topic name (e.g., order.processed) |
Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--data | -d | string | JSON data to publish | |
--data-file | -f | string | Path to JSON file with data | |
--idempotency-key | string | Idempotency key for deduplication | ||
--server | -s | string | Server URL override |
Data can be provided via --data flag, --data-file flag, or piped via stdin.
Output:
Published to order.processed (event_id=evt_abc123, seq=43)Examples:
# List all topicsironflow topic listironflow topic list --json
# View topic statisticsironflow topic stats order.processedironflow topic stats order.processed --json
# Publish a messageironflow topic publish order.processed --data '{"orderId": "123", "status": "shipped"}'
# Publish from fileironflow topic publish order.processed --data-file payload.json
# Publish from stdinecho '{"orderId": "123"}' | ironflow topic publish order.processed
# Publish with idempotency keyironflow topic publish order.processed --data '{"orderId": "123"}' --idempotency-key order-123-shipped