.grpc

Onesimus extension

Toggle gRPC mode.

Synopsis

.grpc [on | off] [format=<json|text>] [compact=<yes|no>]

Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.

Description

Switches the console connection to the gRPC message format, or shows its state.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
onkeywordone of: switchSwitch on.
offkeywordone of: switchSwitch off.
format=enumjson, textOutput format.
compact=boolyes, noCompact JSON.

Examples

The state of the session and whether the gRPC service is enabled:

.grpc

Switch to gRPC mode with compact JSON:

.grpc on compact=yes

Return to the API mode used before .grpc on:

.grpc off

See also

Command reference