Set up the CLI for development
masterTo develop the CLI, you must be able to interact remotely with the Home Assistant Supervisor using the remote_api app from the developer app repository.
- Install and start the
remote_apiapp. - Retrieve the token from the
remote_apiapp log. - Set the
SUPERVISOR_ENDPOINTandSUPERVISOR_API_TOKENenvironment variables to point to your instance.
Example:
export SUPERVISOR_ENDPOINT=http://192.168.1.2
export SUPERVISOR_API_TOKEN=replace_this_with_remote_api_token
go run main.go infoNote: Replace 192.168.1.2 with your actual Home Assistant instance IP address.
export SUPERVISOR_ENDPOINT=http://192.168.1.2
export SUPERVISOR_API_TOKEN=replace_this_with_remote_api_token
go run main.go info