workroom api

List, describe and call the terminal API's methods.

Synopsis

Raw access to every terminal API method, on the daemon WORKROOM_DAEMON names. api list lists the methods, api describe METHOD shows the JSON Schema of its parameters and its result, with examples, and api call METHOD [PARAMS] calls it. PARAMS is a JSON object given inline, @FILE to read it from a file, or - to read it from stdin; left out, it is {}. With --json, api call prints the method's reply in the envelope: its result, the API's revision, and more. A method that streams several replies gets one envelope per line (one result each without --json) until more is false. Every method, event and error is in the reference at https://workroom.computer/docs/reference/terminal-api.

workroom api [command]

Options

  -h, --help[=true|false]   help for api

Options inherited from parent commands

      --json[=true|false]      Emit machine-readable JSON (exactly one object on stdout)
  -v, --verbose[=true|false]   Print detailed and verbose output

How to use it

Raw access to every terminal API method on the daemon, for what no command above covers. api list lists the methods, api describe METHOD shows the JSON Schema of its parameters, its result and its errors, with examples, and api call METHOD [PARAMS] calls it, PARAMS a JSON object inline, @FILE or - for stdin. A method that streams prints one reply per line until more is false. The API only ever adds fields and methods; revision counts the additions. Every method, event and error, with an example of each method, is in the reference at https://workroom.computer/docs/reference/terminal-api.

See also

↑↓ to move, ↵ to open, esc to close