wschenk / tradfri-cli

cli scripts to control tradfri internet gateway
https://willschenk.com/articles/2019/controlling_ikea_tradfri_with_node
24 stars 3 forks source link

tradfri-cli as global executable npm module #3

Open MDecker-MobileComputing opened 4 years ago

MDecker-MobileComputing commented 4 years ago

It would be convenient if tradfri-cli could be installed as global npm package (i.e. npm install -g tradfri-cli), so that is can be used on the command line in every folder on the machine.

Examples for how the global execution of a global tradfri-cli could look like:

tradfri-cli devices
tradfri-cli change "Bulb 1" --on --color efd275
tradfri-cli scenes
tradfri-cli scene "Room 1" my_scene

In this article it is described how to implement an npm package which a global executable script.