The command line tool
sbctl reads the same engine without the window, and is how most of Switchboard is tested. It travels inside the app:
/Applications/Switchboard.app/Contents/MacOS/sbctl topFrom a clone, swift build && .build/debug/sbctl.
| Command | What it does |
|---|---|
sbctl top | Live connections, busiest first |
sbctl dump | The engine's whole model as JSON |
sbctl log query "process:Safari bytes>1MB" --since 7d | Search the log |
sbctl log export | Write the log as CSV or JSON lines |
sbctl geo 8.8.8.8 | Where an address is and whose it is |
sbctl trust /Applications/Safari.app | Who signed a program |
sbctl verify | Check the engine against netstat and known traffic |