-
Notifications
You must be signed in to change notification settings - Fork 89
Controlling Ironbar
Jake Stanger edited this page Nov 23, 2025
·
15 revisions
Ironbar includes a simple IPC server which can be used to control it programmatically at runtime.
It also includes a Command Line Interface, which can be used for interacting with the IPC server. The CLI is auto-generated from the IPC definition, so always includes all commands.
This is shipped as part of the ironbar binary. To view commands, you can use ironbar --help.
You can also view help per sub-command or command, for example using ironbar var --help or ironbar var set --help.
The CLI supports plaintext and JSON output. Plaintext will:
- Print
okfor empty success responses - Print the returned body for each success response
- Some commands act on multiple objects, in which case the CLI will print one line for each body.
- Print
errorto followed by the error on the next line for error responses. This is printed tostderr.
Example:
$ ironbar var set subject world
ok
$ ironbar var get subject
world
$ ironbar var get foo
error
Variable not foundAll error responses will cause the CLI to exit code 3.