Documentation
Sign inGet started

bird realtime apps create

Usage

Ejemplo de código
bird realtime apps create [flags]

Description

Create a Realtime app
Provision a Realtime app and its first key. region is immutable once set and must be one of listRealtimeRegions. The response is the only place the key's secret ever appears, and no operation can read it back: recovering from a lost secret means creating another key. An app is what the publish and channel-inspection operations address.
Build the request from flags, a JSON RealtimeAppCreate body via --body-file ("-" reads stdin), or both — a flag overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.

Procedure

Step 2 of 3 of "Provision a Realtime app for a client to connect to". Previous: bird realtime regions list. Next: bird realtime apps get.

Examples

Ejemplo de código
# print the body shape (no credentials needed)
bird realtime apps create --example

# the body it prints:
Ejemplo de código
{
  "connection_counting": true,
  "name": "chat-production",
  "region": "eu1"
}

Options

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--client-eventsAllow clients to trigger events directly (client events).
--connection-countingCount the connections subscribed to each channel and expose the count on channel queries.
--connection-count-eventsBroadcast a connection-count event to a channel's subscribers whenever its connection count changes. Requires connection_counting.
--authorized-connectionsRequire every connection to be authorized.
--nameA label for the app, shown wherever it is listed.
--regionThe region this app runs in. Unlike other Bird products, a Realtime app can be placed in a region other than the workspace's home region. Immutable after creation. Possible values: us1, eu1.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird realtime apps deleteDelete a Realtime app
bird realtime apps getGet a Realtime app
bird realtime apps listList Realtime apps
bird realtime apps updateUpdate a Realtime app