@winmatrix/daemon
v0.2.6
Published
WinMatrix Daemon for Computer registration and external agent hosting.
Readme
@winmatrix/daemon
WinMatrix Daemon for Computer registration and external agent hosting.
Quick Start
Local link
cd clients/daemon
npm install
npm run build
npm linkThen:
winmatrix-daemon help
winmatrix-daemon setup
# Persist config to ~/.winmatrix/daemon.json
winmatrix-daemon setup --token 'wmc_...' [--server https://...]
WINMATRIX_TOKEN='wmc_...' winmatrix-daemon --persist-token
winmatrix-daemon restartWhen --server is omitted, the daemon defaults to the production WinMatrix service:
https://winmatrix.winning.com.cn/winmatrix.
Config
~/.winmatrix/daemon.json is stored with restricted permissions.
| Field | Meaning |
|------|------|
| serverUrl | WinMatrix service URL or External Agent WebSocket URL |
| computerToken | Computer registration token (wmc_...); legacy key token is still read |
Priority: --token > WINMATRIX_TOKEN > computerToken in config.
Install As Package
cd clients/daemon && npm install && npm run build && cd ../..
npm install -g ./clients/daemonUninstall:
npm uninstall -g @winmatrix/daemonAfter publish, you can also use:
npm install -g @winmatrix/daemon