fkx.

Cross-region Tuya IoT device CLI. Built for agents and scripts.

source <(curl -fsSL https://fkx.meet-jasmine.com/install.sh)

Requires Node.js ≥ 18. Installs to $HOME/.local/bin/fkx. Click command to select, ⌘C to copy.

Commands

fkx logsFetch event log. Auto-detects region; auto-paginates up to 15 days.
fkx watchStream new events continuously as NDJSON — pipe straight into agents and jq.
fkx dpPrint the product's data-point schema (id, code, mode, type, range, unit).
fkx detailDevice metadata — region, timezone, product, owner, data points.
fkx authManage SSO cookie. Actions: status · refresh.

Machine contract

--jsonFull payload on stdout, always complete, no truncation.
stderrProgress + diagnostics. Safe to discard with 2>/dev/null.
exit 0Success.
exit 1Runtime error — auth, network, or API.
exit 2Invalid invocation.

Pin a version

FKX_VERSION=0.1.0 source <(curl -fsSL https://fkx.meet-jasmine.com/install.sh)

Why fkx

The official intranet CLI is hardwired to the CN MCP gateway and refuses non-CN device logs. fkx talks directly to every regional Hestia endpoint using your browser SSO cookie — any device in any region, one command, JSON out.

v0.1.0 darwin · linux node ≥ 18 MIT-ish