0.4.0 • Published 4 years ago

@node-blue/cli v0.4.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

Node-BLUE CLI

Write your automations for Home Assistant in JavaScript using a modern, intuitive API.

Installation

Node-BLUE CLI requires Node.js version 12 or above. To install, run the following command from any directory in your terminal:

$ npm i -g @node-blue/cli

Usage

Installing the CLI globally provides access to the node-blue command.

$ node-blue [command]

# Run `help` for detailed information about the CLI
$ node-blue help

# Run `start` to start the main application
$ node-blue start [nodes]

node-blue start takes a single (optional) argument of a path to a directory Node-BLUE should watch for nodes. By default ./nodes is used.

node-blue start accepts the following options. All options may also be set by environment variables. CLI options take precedence over environment variables.

CLI option.env equivalentdetailsdefault
-h, --hostHASS_HOSTSpecify your Home Assistant hosthassio.local
-P, --pathHASS_PATHSpecify the path to the Websocket API on your Home Assistant instance/api/websocket
-p, --portHASS_PORTSpecify which port to use when connecting to your Home Assistant Instance8123
-s, --sHASS_SECUREConnect to Home Assistant using the wss protocolfalse
-t, --tokenHASS_TOKENSpecify a long-lived access token for your Home Assistant instance
0.4.0

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago