Files
netris-nestri/apps/api/install
Wanjohi 7e47294448 feat(install): the install token is optional
`bash <(curl -fsSL https://api.nestri.io/install.sh)` with nothing after
it now installs the host agent and hands over to onboarding without a
token, and the agent signs in instead: it shows a code, and the machine
is registered once that code is approved in a browser on any device.
That removes the step of copying a command with a secret in it from the
dashboard, and keeps a secret out of shell history.

A token still works exactly as before and skips the browser; `-u`,
`-h` and asking sudo for root are unchanged. With no token,
NESTRI_INSTALL_TOKEN is left unset rather than set empty, and the
re-run under sudo is passed no argument rather than an empty one.
2026-10-16 01:03:02 +03:00
..