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
| Flag | Description | Default |
|---|---|---|
-d, --debug | Enable or disable debug mode | |
-j, --json | Enable JSON output | |
-f, --osapi-file | Path to config file | /etc/osapi/osapi.yaml |
Output tells how the result is printed, and what --json gives.