Skip to main content

Setup

Create osapi's streams and buckets on a NATS server.

It connects as the controller does, with controller.nats: its host, port, namespace and auth. Run it one time before you start the controller and the agents with that server.

Run it again after you change the settings of a stream or a bucket. Each stream and bucket is created or updated to match the config, so running it again changes nothing. osapi nats server start does the same for the embedded server when the server starts. Thus a deployment that runs the NATS server of osapi does not need this command.

osapi nats setup

Examples​

osapi nats setup -f /etc/osapi/osapi.yaml

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file/etc/osapi/osapi.yaml

Output tells how the result is printed, and what --json gives.