telys serve
Reference for telys serve — expose a collection path over a trusted Unix socket or an authenticated TCP endpoint for RemoteTelys clients.
Serve a collection directory over a socket so other processes — local or across the network — can reach it with connect / RemoteTelys. serve blocks, running in the foreground until interrupted. The server makes no outbound network calls.
Synopsis
telys serve --path PATH (--socket SOCKET | --host HOST --port PORT)
[--access-token TOKEN] [--license LICENSE] [--require-license]
[--save-interval SECONDS] [--supervise]Choose a transport: --socket (Unix domain socket) or both --host and --port (TCP). Providing neither is a usage error and exits 2.
Options
--path
dir
(required)
Collection directory to serve.
--socket
path
(none)
Serve over a Unix domain socket at this path.
--host
host
(none)
TCP bind host. Requires --port and --access-token.
--port
int
(none)
TCP bind port. Requires --host.
--access-token
token
$TELYS_ACCESS_TOKEN
Bearer token clients must present. Required for TCP.
--license
token
$TELYS_LICENSE
License token to verify when --require-license is set.
--require-license
flag
off
Verify a products.telys (ver 2) license offline on boot; refuse to start otherwise.
--save-interval
seconds
0.0
Periodically persist the collection. 0.0 disables the timer.
--supervise
flag
off
Run the server under a supervisor that keeps it alive.
Transports
The Unix socket is created with mode 0600 and treated as trusted: any local process that can open it is allowed, so no token is required.
Connect from a client:
TCP is never anonymous: pass an access token, or the server refuses to start a TCP listener. The token is compared in constant time.
Connect with the same token:
Usage errors
serve exits 2 for a malformed invocation:
Licenses and persistence
--require-licenseverifies aproducts.telyslicense (schema version 2) offline before the server starts. Pass the token with--licenseor$TELYS_LICENSE; if it does not verify, the server refuses to boot.--save-intervalpersists the served collection on a timer. The default0.0disables periodic saves; clients can still persist explicitly.
The server pre-registers AlgentaBigramEmbedder under the model id bigram on a best-effort basis, so text ingestion and text search work out of the box when the native kernel is present.
Exit codes
0
Server ran and shut down cleanly.
1
Runtime not available, or license verification failed.
2
Usage error (no transport chosen, or TCP without an access token).
See also
Run a Telys server — the guided walkthrough.
Connect with RemoteTelys — the client side.
Auth & network model — trusted sockets vs. authenticated TCP.
Remote API (connect / RemoteTelys) — the client SDK surface.
Last updated
Was this helpful?