CLI
nearhost TUInearhost up [project...] headless: start projects, run until Ctrl-Cnearhost add [path] non-interactive add using discovery defaultsnearhost ls print projects and statesnearhost trust | untrust local CA in the keychainnearhost hosts apply|clean hosts block (apply reads aliases from stdin)nearhost doctor checks: ports 80/443 free, CA trusted, hosts block present, each server reachable, Linux port binding capabilitynearhost
Section titled “nearhost”Starts the TUI. On first run it shows the setup screen. See First run.
nearhost up
Section titled “nearhost up”Starts the named projects without the TUI and runs until Ctrl-C.
nearhost up myappnearhost add
Section titled “nearhost add”Non-interactive add. Runs discovery on [path] and accepts its defaults. See Add a project.
nearhost ls
Section titled “nearhost ls”Prints projects and their states.
nearhost trust
Section titled “nearhost trust”Installs the local CA root into the system trust store, with one password prompt. It then reports on the browser stores that Firefox and Linux Chromium-based browsers use, and updates them when certutil is installed. Run it again at any time; it only does what is missing.
nearhost untrust
Section titled “nearhost untrust”Reverses trust.
nearhost hosts
Section titled “nearhost hosts”apply reads the aliases from stdin, one per line, and rewrites the Nearhost block in /etc/hosts. clean removes the block. Both prompt for sudo. See The hosts file.
nearhost doctor
Section titled “nearhost doctor”Reports:
- ports 80 and 443 are free
- the CA is trusted
- the hosts block is present
- each server is reachable
- on Linux, the port binding capability is set