{"id":18045253,"url":"https://github.com/dpb587/hubitat-cli","last_synced_at":"2025-06-16T08:31:54.906Z","repository":{"id":64307424,"uuid":"459461481","full_name":"dpb587/hubitat-cli","owner":"dpb587","description":"An unofficial CLI for some Hubitat commands.","archived":false,"fork":false,"pushed_at":"2023-05-09T03:06:47.000Z","size":63,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-10T01:40:47.893Z","etag":null,"topics":["cli","go","hubitat"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dpb587.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-15T06:51:01.000Z","updated_at":"2023-05-08T15:27:07.000Z","dependencies_parsed_at":"2024-06-20T14:46:42.685Z","dependency_job_id":"044d2bf2-dcc9-41dc-9324-55b34168751e","html_url":"https://github.com/dpb587/hubitat-cli","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dpb587/hubitat-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpb587%2Fhubitat-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpb587%2Fhubitat-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpb587%2Fhubitat-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpb587%2Fhubitat-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpb587","download_url":"https://codeload.github.com/dpb587/hubitat-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpb587%2Fhubitat-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260126290,"owners_count":22962618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","go","hubitat"],"created_at":"2024-10-30T18:12:39.087Z","updated_at":"2025-06-16T08:31:54.876Z","avatar_url":"https://github.com/dpb587.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hubitat-cli\n\nAn unofficial CLI for some [Hubitat](https://hubitat.com/) commands.\n\nHubitat doesn't really have a formal API so this is a little hacky and may break across platform updates. It currently supports a few management commands that I rely on in automation (namely downloading backups and rotating HTTPS certificates). Use at your own risk.\n\n## Usage\n\nDownload and install the binary for your Linux, macOS, or Windows environment from the [releases page](https://github.com/dpb587/hubitat-cli/releases). At a minimum, you'll need to configure the IP or hostname of your Hubitat node.\n\n```bash\n$ hubitat-cli --hub-url='http://192.0.2.100' ...\n```\n\nIf your hub requires login ([learn more](https://docs.hubitat.com/index.php?title=Hub_Login_Security)), you will also want to configure your username and password.\n\n```bash\n$ hubitat-cli \\\n  --hub-url='http://192.0.2.100' \\\n  --hub-username='janedoe' \\\n  --hub-password='secretpassword' \\\n  ...\n```\n\nEnvironment variables may be used for many of the global flags to help with automation or avoid repetitive commands.\n\n```bash\n$ export HUBITAT_URL=http://192.0.2.100\n$ export HUBITAT_USERNAME='janedoe'\n$ export HUBITAT_PASSWORD='secretpassword'\n$ hubitat-cli ...\n```\n\nUse the `--help` flag at any point to view more details on flags, arguments, and any available subcommands. For example, to download the latest backup you might use the following.\n\n```bash\n$ hubitat-cli backup download \\\n  --output=latest.lzf\n```\n\nTo update server certificates you might use the following.\n\n```bash\n$ hubitat-cli advanced certificate update \\\n  --certificate-path=/mnt/config/tls.crt \\\n  --private-key-path=/mnt/config/tls.key\n```\n\nTo manually reboot the hub (and optionally `--follow` progress until it's back online):\n\n```bash\n$ hubitat-cli reboot --follow\n```\n\nTo check if updates are available:\n\n```bash\n$ hubitat-cli cloud check-for-update\n```\n\nTo immediately apply an update (and optionally `--follow` progress until it's back online):\n\n```bash\n$ hubitat-cli cloud update-platform --follow\n```\n\nIf the CLI is erroring or not behaving as you expect, try enabling logging with the `-v` verbosity flag. If logs are unhelpful or you still have a concern, refer to them when searching and reporting a [project issue](https://github.com/dpb587/hubitat-cli/issues).\n\n### Advanced\n\nIf Hubitat has HTTPS enabled, the CLI will reject any certificates your system does not already trust. To trust a custom CA, configure the CA certificate file path with the `--hub-ca-path=` flag (or `HUBITAT_CA_PATH` environment variable). See the `--help` option for additional connection options and methods for disabling secure connections.\n\nA minimal image is available for use from [Docker](https://www.docker.com/), [Kubernetes](https://kubernetes.io/), or any other container runtime. To avoid potentially breaking changes, use a major version tag (e.g. `v0`) rather than the default `latest` tag.\n\n```bash\n$ docker run ghcr.io/dpb587/hubitat-cli\n```\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpb587%2Fhubitat-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpb587%2Fhubitat-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpb587%2Fhubitat-cli/lists"}