Bond CLI Crash Course

Hey all, I’ve put some work into the Bond CLI these last few weeks. It’s still got a ways to go but there’s some useful functionality that I’d like to share with you.

First off, it’s on PyPi now, so you could install it with the following command:

$ pip install bond-cli

You could then discover all Bond devices on your network with

$ bond discover

once they’re discovered you could select one to interact with with

$ bond select <bond_id or a prefix>

If the token is unlocked “select” will store it, otherwise you can unlock it yourself and run

$ bond token

to set it automatically. Or, set it manually with

$ bond token <token>

Now you can get the log output from your Bond with

$ bond livelog

(increase verbosity with the --level tag)
upgrade it with

$ bond upgrade beta

see its devices with

$ bond devices

create a device with

$ bond device-create ...

or send a signal with

$ bond signal ...

The next set of features I’ll add are probably selecting a device, modifying it, and calling actions on it, since that will further accelerate development of remote definitions. Let me know if there’s anything more you’d like to see from this tool and I’ll look in to it. (Or, if you’d like to contribute to this project yourself, check it out on Github!)

3 Likes

This is incredibly useful.
Specifically, livelog command alone will cut out all of my conversations with your customer support team.

and upgrade beta as well as future device management commands will be very useful as I tinker with my home setup beyond just fans.

Thank you for building this CLI out.

2 Likes