command
module
Version:
v1.4.0
Opens a new window with list of versions in this module.
Published: Sep 22, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Hass.io CLI
Description
Commandline interface to facilitate interaction with hass.io server
Usage
hassio help
hassio <subcommand> <action> [<options>]
E.g.:
hassio homeassistant info --rawjson
Modifiers
Global
- --debug,-d -> Enables debug output
SubCommand
- --rawjson,-j -> Will return the data in JSON format on a
single line (useful for passing to other
programs to parse / utilise)
- --options,-o -> Used to send commands to hass.io
hassio homeassistant update --options version=0.60
- --filter,-f -> Used to filter the data returned from hass.io so only the specified properties are output
Note: Modifer order is important.
hassio <GlobalModifier> <SubCommand> <Action> <SubCommandModifier>
Install
To install, use go get
:
go get -d github.com/home-assistant/hassio-cli
Contribution
- Fork (https://github.com/home-assistant/hassio-cli/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes
- Run
gofmt -s
- Create a new Pull Request
Building
go test ./...
gox -osarch="linux/arm" -ldflags="-s -w" -output="hassio"
upx --brute hassio
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.