hswhich can be added to your terminal shell environment with hs.ipc.cliInstall. The command line tool will not work unless the
hs.ipcmodule is loaded first, so it is recommended that you add
require("hs.ipc")to your Hammerspoon
init.luafile (usually located at ~/.hammerspoon/init.lua) so that it is always available when Hammerspoon is running.