Skip to content

nhub commands

nhub is installed with the hub package on the hub box. The table lists its subcommands as nhub --help does, with each one's flags, whether it needs root, and what it does.

CommandArguments and flagsRootWhat it does
nhub setup--stdin reads every answer as one JSON object from standard input; --json <path> reads them from a fileyesSets this gateway up, once, through the browser wizard or the terminal's screens.
nhub run--host, --port, --reload, --interface; one of --only-web, --only-xray, --only-cliproxyapi, --only-dnsmasq, --only-supplicant, --only-dhcpcdnoRuns the control panel, or one process, in the foreground; it is what the systemd units start.
nhub stop--interface; one of --only-web, --only-cliproxyapi, --only-dnsmasq, --only-xray, --only-router, --only-supplicant, --only-dhcpcdyesStops what the hub runs on this box, or one service.
nhub apply--only <component> for router, xray, dnsmasq, cliproxyapi or easytier, repeatable; --dry-run; --skip-applyyesRenders every generated configuration from config/, validates it and applies it; --dry-run prints it and changes nothing.
nhub unlockyesRemoves the login lockout and every fail2ban SSH ban.
nhub resetall or password; --stdin reads the new password from standard inputyesReturns the box, or the panel password, to a fresh state.
nhub vault rekey--stdin reads the new passphrase from standard inputyesWraps the vault's data key under a new master passphrase; nothing sealed is re-encrypted.
nhub scan-secrets--staged, --history, --no-entropy, --no-vendor, --quietnoScans the working tree, the staged files or the history for secrets; a development command.
FlagWhereWhat it does
--versionnhubPrints the package version and exits.
--devnhub, before the subcommandRuns against hub_dev_root/ in a working copy and lifts the root check; a packaged hub rejects it.
-hevery levelPrints that level's help and exits.

A subcommand that needs root and is run without it prints the sudo line and exits with status 2. nhub with no subcommand prints its help and exits with status 2. A command interrupted with Ctrl-C prints that it was stopped and exits with status 130.

Neutrino · personal developer infrastructure