Documentation/Node
On this page
Node CLI reference
Keep four layers separate: the installed binary, the account credential, this machine’s identity, and the running process.
Connect an account
login— interactive sign-in, then start in the backgroundpair— wait for Desktop or App to claim a one-time codejoin [CODE]— redeem a Desktop join codelogout— clear the account credential and stop; keep machine identity
Useful flags: --name 'lab-1', --no-start, --foreground, and --yes where confirmation is supported.
Run and inspect
start/stop— change the process without changing loginautostart status|on|off— inspect or change startup integrationinfo— account, identity, process, and pathswhere— binary, data directories, and relevant environmentlogs,logs -n 200,logs --once— follow or inspect logscode— show the permanent short codeversion— show the binary versionlang— show or set the persisted CLI language
Diagnose and reset
doctor— check binary, API, account, and process, then suggest a fixreset --auth— clear the credential, keeping machine identityreset --identity— clear identity; the next connection creates or claims a new cloud identityreset --all— remove the complete local configuration
Upgrade and uninstall
upgrade— install the latest approved binary and keep configurationuninstall— remove the binaryuninstall --purge— remove binary and configuration
If an install replaces a running Node, it normally stops and restarts it. Set AIHPER_NO_RESTART=1 only when you deliberately want to replace the file without restarting.
Identity rule
logout is not “forget this machine”. The instance ID stays so a later login can reclaim the same cloud entry. Use reset --identity only when you intentionally want a new identity.
