hactl 0.0.0-stage → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +39 -2
  2. package/dist/cli.js +13085 -0
  3. package/package.json +36 -4
package/README.md CHANGED
@@ -1,3 +1,40 @@
1
- # Temporary Holding Version
1
+ # hactl
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Manage Home Assistant instances from the command line. Built to be run by people and by AI agents.
4
+
5
+ ## Install
6
+
7
+ A standalone binary for macOS (Apple silicon) and Linux (x64, arm64; needs `libatomic1`). Installs to `~/.local/bin`, or to `HACTL_INSTALL_DIR`.
8
+
9
+ ```bash
10
+ curl -fsSL https://raw.githubusercontent.com/houfio/hactl/main/install.sh | sh
11
+ ```
12
+
13
+ Set `HACTL_VERSION` to install a specific version. To update, run `hactl upgrade`.
14
+
15
+ To check that a binary was built by this repository's release workflow, use the GitHub CLI:
16
+
17
+ ```bash
18
+ gh attestation verify ~/.local/bin/hactl --repo houfio/hactl
19
+ ```
20
+
21
+ With Node 26 or later, on macOS or Linux, you can install from npm instead. Update that with the same command.
22
+
23
+ ```bash
24
+ npm install -g hactl@latest
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ `hactl` reads entities, devices, areas and services from Home Assistant and calls services, with JSON output. It works on contexts, one per instance, with tokens kept in the OS keychain.
30
+
31
+ ```bash
32
+ hactl ctx set home --url https://ha.example.ts.net --install haos
33
+ hactl ctx token-set home
34
+ hactl ctx use home
35
+
36
+ hactl get entities --domain light
37
+ hactl call light.turn_on --entity light.kitchen
38
+ ```
39
+
40
+ Everything else is in the CLI: start with `hactl --help`, and add `--help` to any command.