Skip to content

Command line, TUI, API, configuration ​

Commands ​

CommandWhat it does
nkt serve (or just nkt)the web UI and API
nkt scana one-off host scan as JSON — for scripts and a check before installing
nkt tuithe terminal UI
nkt users, nkt passwdaccounts and passwords without the web UI
nkt hubthe hub; nkt hub import restores the registry, nkt hub delete removes the hub's data completely
nkt versionthe version

The command language follows the terminal locale: LANG=ru_RU.UTF-8 (or LC_ALL, LC_MESSAGES) — Russian, anything else — English. The service journal (journalctl -u netknownsthat) is always in English, whatever the interface language.

Terminal UI ​

nkt tui shows the same data in the terminal: overview, findings, the resource map as a tree, services, containers, certificates, configs, availability and load. Service and container control, certificate renewal, config rollback. In English and Russian.

API ​

Everything visible in the UI is available as a JSON API with the same authorization: POST /api/auth/login → a session cookie, then GET /api/overview, /api/findings, /api/services… Through the hub — the same paths prefixed with /api/hosts/{id}/. All path groups and a curl example — in the API reference.

Configuration ​

Every setting is an NKT_* environment variable in /etc/netknownsthat/nkt.env; the full list with defaults is in the configuration reference. The essentials:

VariableMeaning
NKT_ADDRlisten address, 127.0.0.1:8077 by default
NKT_DATA_DIRdatabase and config history, /var/lib/netknownsthat by default
NKT_ALLOW_MUTATIONSfalse — read-only
NKT_COOKIE_SECUREfalse for plain HTTP (an SSH tunnel)
NKT_TLS_ENABLED, NKT_TLS_HOSTS, NKT_TLS_CERT, NKT_TLS_KEYits own HTTPS
NKT_TERMINAL_ENABLEDthe web terminal, off by default
NKT_COMPOSE_FILEScompose files, comma-separated
NKT_FILES_ROOTSfile browser roots
NKT_PROBE_INTERVALhow often to probe availability
NKT_AUTO_RENEW_CERTScertbot auto-renewal
NKT_SCHEDULER_ENABLEDbackground checks and metrics collection

The hub is configured the same way through hub.env; the NKT_HUB_* variables — in the reference.