Reference
On this page
Server and daemon binaries — tjetd, tjet-worker, tjet-agent
tjetd
tjetd
trunkjet service
Usage: tjetd [OPTIONS]
Options:
--config <CONFIG>
Installation configuration file (TOML). Command-line flags override its values [env: TJETD_CONFIG=]
--cluster-file <CLUSTER_FILE>
FoundationDB cluster file [env: TJET_FDB_CLUSTER_FILE=]
--installation <INSTALLATION>
Installation name (Directory Layer root). Default "dev" [env: TJET_INSTALLATION=]
--cell <CELL>
Cell name. Default "c1" [env: TJET_CELL=]
--store-dir <STORE_DIR>
Durable local content store directory (development adapter) [env: TJET_STORE_DIR=]
--store <STORE>
Content backend: "local" (default; single-host) or "s3" (configured via TJET_S3_*) [env: TJET_STORE=]
--s3-durability <S3_DURABILITY>
Durability the S3 storage contract was qualified for: "single-host" (default) or "regional" [env: TJET_S3_DURABILITY=]
--search-dir <SEARCH_DIR>
Directory for search index generations (search is disabled without it) [env: TJET_SEARCH_DIR=]
--archive-dir <ARCHIVE_DIR>
Directory for archives written or received over the API [env: TJET_ARCHIVE_DIR=]
--tree-snapshot-dir <TREE_SNAPSHOT_DIR>
Cache directory of tree snapshots (D-1756, `read.treeSnapshot`); none are kept without it (also `[tree_snapshots] dir`) [env: TJET_TREE_SNAPSHOT_DIR=]
--web-dir <WEB_DIR>
Serve the built web application (web/dist) from this server's origin [env: TJET_WEB_DIR=]
--downloads-dir <DOWNLOADS_DIR>
Client release files to offer at /download, /install.sh and /install.ps1: a directory with SHA256SUMS and the files it lists (`tools/release/stage_downloads.py`) [env: TJET_DOWNLOADS_DIR=]
--public-origin <PUBLIC_ORIGIN>
Canonical web origin (spec 21 §5.2), e.g. `https://trunkjet.io`: the passkey relying party (its host is the RP ID) and an allowed browser origin. Passkeys are off without it [env: TJET_PUBLIC_ORIGIN=]
--alias-origins <ALIAS_ORIGINS>
Alias web origins, comma-separated (spec 21 §5.2), e.g. `https://tjet.io`: web pages there answer 301 to the canonical origin (`--public-origin`, required), the API and CLI work there unchanged with bearer credentials; session cookies never [env: TJET_ALIAS_ORIGINS=]
--smtp-relay <SMTP_RELAY>
SMTP relay (`host:port`) for email sign-in codes; email sign-in is off without it [env: TJET_SMTP_RELAY=]
--smtp-tls <SMTP_TLS>
Transport security to the relay: `none` (a local MTA on loopback or the private network; the default), `starttls` (submission, port 587) or `tls` (port 465). An external relay needs `starttls` or `tls`; there is no fallback to plain text [env: TJET_SMTP_TLS=] [default: none]
--smtp-user <SMTP_USER>
`AUTH PLAIN` user of the relay; needs TJET_SMTP_PASSWORD_FILE and TLS [env: TJET_SMTP_USER=]
--smtp-password-file <SMTP_PASSWORD_FILE>
File holding the relay password (first line; mode 0600 or a mounted Secret) [env: TJET_SMTP_PASSWORD_FILE=]
--smtp-ca-file <SMTP_CA_FILE>
Extra CA certificates (PEM) for the relay's certificate, besides the platform's roots [env: TJET_SMTP_CA_FILE=]
--pii-key-file <PII_KEY_FILE>
Installation PII key file: `<key-id> <base64 32-byte key>` per line, the active key first; stored email addresses are sealed with it. Mode 0600. Email sign-in needs it [env: TJET_PII_KEY_FILE=]
--password-pepper-file <PASSWORD_PEPPER_FILE>
Password pepper file: `<key-id> <base64 32-byte key>` per line, the active key first (older keys only verify; a sign-in re-hashes). Mode 0600. Password sign-in needs it [env: TJET_PASSWORD_PEPPER_FILE=]
--password-argon2 <PASSWORD_ARGON2>
Argon2id cost of new password hashes: `m=<KiB>,t=<passes>,p=<lanes>`; at least m=19456,t=2. Existing hashes are re-hashed at their next sign-in [env: TJET_PASSWORD_ARGON2=] [default: m=65536,t=3,p=1]
--password-min-length <PASSWORD_MIN_LENGTH>
Minimum length of a new password (at least 8) [env: TJET_PASSWORD_MIN_LENGTH=] [default: 12]
--setup-token-file <SETUP_TOKEN_FILE>
First-run setup token file: whoever holds this token creates the first account and its organisation once (`/setup`). Mode 0600, at least 32 characters. Needs TJET_PII_KEY_FILE [env: TJET_SETUP_TOKEN_FILE=]
--mail-from <MAIL_FROM>
Sender address of sign-in mail [env: TJET_MAIL_FROM=] [default: [email protected]]
--signup <SIGNUP>
Self-service signup (ID-5): `off` (default), `open`, or `domains` (only addresses in TJET_SIGNUP_DOMAINS). Needs TJET_SMTP_RELAY and TJET_PII_KEY_FILE [env: TJET_SIGNUP=] [default: off]
--signup-domains <SIGNUP_DOMAINS>
Comma-separated email domains that may sign up under `--signup domains` [env: TJET_SIGNUP_DOMAINS=] [default: ""]
--signup-blocked-domains-file <SIGNUP_BLOCKED_DOMAINS_FILE>
Email domains refused at signup (disposable-mail list): one per line, `#` comments [env: TJET_SIGNUP_BLOCKED_DOMAINS_FILE=]
--terms-version <TERMS_VERSION>
The terms version a signup must accept (hosted installations); none: no terms step [env: TJET_TERMS_VERSION=]
--terms-url <TERMS_URL>
Where the terms can be read (shown on the signup page) [env: TJET_TERMS_URL=]
--signup-join-org <SIGNUP_JOIN_ORG>
Self-hosted: the organisation (tenant name) every verified signup joins as a member without roles [env: TJET_SIGNUP_JOIN_ORG=]
--signup-limits <SIGNUP_LIMITS>
Signups per hour per address, per source network, per email domain and per sign-in provider (`address,network,domain[,provider]`; default `5,20,500,1000`) [env: TJET_SIGNUP_LIMITS=]
--listen <LISTEN>
Listener address. Default 127.0.0.1:8640 [env: TJET_LISTEN=]
--metrics-listen <METRICS_LISTEN>
Separate listener for `GET /metrics` (Prometheus text format; aggregates only, no identifiers). Bind it to a private interface. Off unless set [env: TJET_METRICS_LISTEN=]
--trusted-proxies <TRUSTED_PROXIES>
Reverse proxies (CIDRs, comma-separated) whose `X-Forwarded-For` (or the `[server] client_address_header`) names the client address for per-address limits; overrides `[server] trusted_proxies`. Only the proxies themselves [env: TJET_TRUSTED_PROXIES=]
--proxy-listen <PROXY_LISTEN>
Second API listener for the reverse proxy only: with it, only this listener reads forwarding headers from the trusted proxies; the main listener never does [env: TJET_PROXY_LISTEN=]
--max-connections <MAX_CONNECTIONS>
Connections each API listener holds at once; one over it is closed at accept [env: TJET_MAX_CONNECTIONS=] [default: 16384]
--max-connections-per-client <MAX_CONNECTIONS_PER_CLIENT>
Connections one client address (IPv6 by its /64) may hold on each API listener; the trusted proxies are exempt [env: TJET_MAX_CONNECTIONS_PER_CLIENT=] [default: 256]
--header-read-timeout-ms <HEADER_READ_TIMEOUT_MS>
Milliseconds a connection may take to send its first 24 bytes and each HTTP/1 request head (D-1878; 100..=300000). Slow or silent clients are closed after it [env: TJET_HEADER_READ_TIMEOUT_MS=] [default: 15000]
--dev
Loopback-only development identities and banner. Never use in production
--dev-users <DEV_USERS>
Development tenant and identities to bootstrap (`subject[:roles]`, comma separated), e.g. `alice:tenant_admin,bob,carol,agent1:agent,ci:service` [default: alice:tenant_admin,bob,carol,agent1:agent,ci:service]
--with-worker
Also run the background worker in-process (single-command development stack)
--reapi
Serve the build cache (REAPI v2 over gRPC on the API listener)
--registry
Serve the container registry (OCI Distribution on `/v2/`)
--deletion-recovery-days <DELETION_RECOVERY_DAYS>
Days a deleted repository stays restorable; overrides `[security] deletion_recovery_days`. 0 = the purge starts with the delete [env: TJET_DELETION_RECOVERY_DAYS=]
--gc-grace-ms <GC_GRACE_MS>
Development only: GC sweep grace in milliseconds (default 72 h). Fault-injection runs use 0 so the GC barrier, not the grace period, is what keeps live content alive [env: TJET_GC_GRACE_MS=]
--gc-catch-up-ms <GC_CATCH_UP_MS>
Development only: how long a collection waits in MARK_OPEN, after the roots of its boundary are marked, for the mark to catch up with new writes (default 10 minutes). Load runs shorten it to reach DRAIN within a run [env: TJET_GC_CATCH_UP_MS=]
--gc-mark-open-max-ms <GC_MARK_OPEN_MAX_MS>
Development only: the longest a collection stays in MARK_OPEN after its root scan in any case (default 30 minutes) [env: TJET_GC_MARK_OPEN_MAX_MS=]
--gc-concurrency <GC_CONCURRENCY>
Collections the embedded worker (`--with-worker`) runs at once, as tjet-worker's `--gc-concurrency` [env: TJET_GC_CONCURRENCY=] [default: 4]
--gc-memory-budget-mib <GC_MEMORY_BUDGET_MIB>
Memory the embedded worker's collections may hold together, in MiB [env: TJET_GC_MEMORY_BUDGET_MIB=] [default: 256]
--gc-full-interval-ms <GC_FULL_INTERVAL_MS>
D-1570: how long incremental collections may trust a full collection's marks, in ms (default 7 days); the first scheduled collection after it is full. 0: every collection is full (set it on every tjetd and tjet-worker process before a rolling upgrade from a version before D-1570, whose processes refuse an incremental collection's state) [env: TJET_GC_FULL_INTERVAL_MS=] [default: 604800000]
--gc-mark-objects-per-s <GC_MARK_OBJECTS_PER_S>
D-1584: logical marking work admitted per second across this process's collections (0: unlimited). One object can consume multiple queue/read/fetch/completion units; existing fanout and retry bounds still apply [env: TJET_GC_MARK_OBJECTS_PER_S=] [default: 4000]
--background-scan-rows-per-s <BACKGROUND_SCAN_ROWS_PER_S>
D-1572: catalog rows this process's sweeps and storage reconciliations may read per second (0: no limit) [env: TJET_BACKGROUND_SCAN_ROWS_PER_S=] [default: 20000]
--upload-ttl-ms <UPLOAD_TTL_MS>
Development only: upload-session hold lifetime in milliseconds (default 24 h) [env: TJET_UPLOAD_TTL_MS=]
--prepare-ttl-ms <PREPARE_TTL_MS>
Development only: prepared-revision hold lifetime in milliseconds (default 24 h) [env: TJET_PREPARE_TTL_MS=]
--session-retain-ms <SESSION_RETAIN_MS>
Development only: how long finished upload and preparation records are kept after their expiry before maintenance removes them (default 7 days). End-to-end tests use 0 to reach a removed upload record quickly [env: TJET_SESSION_RETAIN_MS=]
--expiry-interval-ms <EXPIRY_INTERVAL_MS>
Development only: interval in milliseconds of the repository maintenance pass and of its expiry duty (defaults 5 and 10 minutes). Takes effect with `--with-worker` [env: TJET_EXPIRY_INTERVAL_MS=]
--max-upload-bytes <MAX_UPLOAD_BYTES>
Development only: the largest byte limit one upload session may declare (default 64 GiB); the 100 GiB large-transfer qualification raises it [env: TJET_MAX_UPLOAD_BYTES=]
--max-batch-mutations <MAX_BATCH_MUTATIONS>
Development only: the largest mutation batch one revision may carry (default 100,000); the batch-limit e2e lowers it to exercise the explicit refusal [env: TJET_MAX_BATCH_MUTATIONS=]
--blame-sync-max-diffs <BLAME_SYNC_MAX_DIFFS>
Development only: line diffs `history.blame` may compute inside the request (default 2,000) before it continues as a background job; end-to-end tests lower it [env: TJET_BLAME_SYNC_MAX_DIFFS=]
--land-test-delay-ms <LAND_TEST_DELAY_MS>
Development only: wait this long before every landing round's begin, so a client's wait for a queued `integration.land` request can be tested end to end
--history-index <HISTORY_INDEX>
Per-path history index: "on" (default) maintains it and answers first-parent history and blame from it; "off" is the kill switch (every query walks exactly, no index job is queued; an existing index is kept and caught up when turned on again) [env: TJET_HISTORY_INDEX=] [possible values: on, off]
--metadata-tier <METADATA_TIER>
Where new metadata objects (namespace pages, revisions, mutation pages, file manifests and chunk trees) go: "fdb" (default: one FoundationDB value per object) or "segments" (the rollback setting: content-store segments, as before; FoundationDB-resident objects stay readable). Set it on every tjetd and tjet-worker process [env: TJET_METADATA_TIER=] [possible values: fdb, segments]
--metadata-tier-repo-max-bytes <METADATA_TIER_REPO_MAX_BYTES>
FoundationDB-resident value bytes one repository may hold (D-989; default 1 GiB, 0 = no FoundationDB-tier writes); beyond it new metadata goes to segments [env: TJET_METADATA_TIER_REPO_MAX_BYTES=]
--fdb-encryption-at-rest <FDB_ENCRYPTION_AT_REST>
The operator's declaration of the FoundationDB volumes' encryption at rest, reported by the doctor: file and directory names live there with the metadata tier [env: TJET_FDB_ENCRYPTION=]
--history-time-budget-ms <HISTORY_TIME_BUDGET_MS>
Wall time in milliseconds one history computation may take inside a request (default 20,000): a path history page ends early with a cursor, a blame continues as a background job [env: TJET_HISTORY_TIME_BUDGET_MS=]
-h, --help
Print help
-V, --version
Print version
tjet-worker
tjet-worker
trunkjet background worker
Usage: tjet-worker [OPTIONS]
Options:
--cluster-file <CLUSTER_FILE>
[env: TJET_FDB_CLUSTER_FILE=]
--installation <INSTALLATION>
[env: TJET_INSTALLATION=] [default: dev]
--cell <CELL>
[env: TJET_CELL=] [default: c1]
--store-dir <STORE_DIR>
[env: TJET_STORE_DIR=]
--store <STORE>
Content backend: "local" (default; single-host) or "s3" (configured via TJET_S3_*) [env: TJET_STORE=] [default: local]
--s3-durability <S3_DURABILITY>
Durability the S3 storage contract was qualified for: "single-host" (default) or "regional" (as tjetd's `--s3-durability` / `store.s3_durability`) [env: TJET_S3_DURABILITY=] [default: single-host]
--search-dir <SEARCH_DIR>
This worker's search index directory: its builds and replicas (D-853; search builds are skipped without it) [env: TJET_SEARCH_DIR=]
--webhook-allow <WEBHOOK_ALLOW>
Hosts webhooks may reach despite non-public addresses (administrator setting)
--once
Run one pass and exit (prints a JSON summary)
--activity-retain-days <ACTIVITY_RETAIN_DAYS>
Days repository activity-feed rows are kept before maintenance trims them [env: TJET_ACTIVITY_RETAIN_DAYS=] [default: 365]
--dev
Development mode, as tjetd's `--dev`: development credentials and the staged purge are honoured, and S3 may use plain http. Off by default; never use in production
--history-index <HISTORY_INDEX>
Per-path history index: "on" (default) runs pathlog index jobs and lets background blame consult the index; "off" is the kill switch, as tjetd's `--history-index` (set it on every tjetd and tjet-worker process) [env: TJET_HISTORY_INDEX=] [default: on] [possible values: on, off]
--metadata-tier <METADATA_TIER>
Where new metadata objects (namespace pages, revisions, mutation pages, file manifests and chunk trees) go: "fdb" (default) or "segments" (the rollback setting), as tjetd's `--metadata-tier` (set it on every tjetd and tjet-worker process) [env: TJET_METADATA_TIER=] [default: fdb] [possible values: fdb, segments]
--metadata-tier-repo-max-bytes <METADATA_TIER_REPO_MAX_BYTES>
As tjetd's `--metadata-tier-repo-max-bytes` [env: TJET_METADATA_TIER_REPO_MAX_BYTES=] [default: 1073741824]
--metrics-listen <METRICS_LISTEN>
Separate listener for `GET /metrics` (Prometheus text format; aggregates only, as tjetd's `--metrics-listen`): the collector's progress and every duty's counters live in this process. Off by default; bind it to a private address [env: TJET_WORKER_METRICS_LISTEN=]
--gc-concurrency <GC_CONCURRENCY>
Collections this worker runs at once, also bounded by `--gc-memory-budget-mib` [env: TJET_GC_CONCURRENCY=] [default: 4]
--gc-memory-budget-mib <GC_MEMORY_BUDGET_MIB>
Memory this worker's collections may hold together, in MiB: each running collection is charged 64 MiB [env: TJET_GC_MEMORY_BUDGET_MIB=] [default: 256]
--gc-full-interval-ms <GC_FULL_INTERVAL_MS>
D-1570: how long incremental collections may trust a full collection's marks, in ms (default 7 days); the first scheduled collection after it is full. 0: every collection is full (set it on every tjetd and tjet-worker process before a rolling upgrade from a version before D-1570, whose processes refuse an incremental collection's state) [env: TJET_GC_FULL_INTERVAL_MS=] [default: 604800000]
--gc-mark-objects-per-s <GC_MARK_OBJECTS_PER_S>
D-1584: logical marking work admitted per second across this process's collections (0: unlimited). One object can consume multiple queue/read/fetch/completion units; existing fanout and retry bounds still apply [env: TJET_GC_MARK_OBJECTS_PER_S=] [default: 4000]
--background-scan-rows-per-s <BACKGROUND_SCAN_ROWS_PER_S>
D-1572: catalog rows this process's sweeps and storage reconciliations may read per second (0: no limit) [env: TJET_BACKGROUND_SCAN_ROWS_PER_S=] [default: 20000]
-h, --help
Print help
-V, --version
Print version
tjet-agent
tjet-agent
trunkjet per-user workspace daemon
Usage: tjet-agent [OPTIONS]
Options:
--agent-dir <AGENT_DIR>
Absolute daemon directory (run/ and state/); overrides TJET_AGENT_DIR. Used by explicit OS service registration so the manager need not inherit a shell environment
--detach
Start a new session (detach from the controlling terminal); used by `tjet daemon start`
--allow-elevated
Windows: run even though this process is elevated. Accepted only where UAC is off machine-wide (EnableLUA = 0): an elevated daemon can be driven by any program of the user. A command-line flag only: no settings file can set it
--idle-timeout <IDLE_TIMEOUT>
Exit after this many seconds without requests; 0 disables idle shutdown (a daemon `tjet` starts on demand inherits `TJET_AGENT_IDLE_TIMEOUT`) [env: TJET_AGENT_IDLE_TIMEOUT=] [default: 1800]
--managed
Started by the OS autostart (DB-17b): never exit when idle (overrides --idle-timeout)
--build-info
Print this build's identity (JSON: version, build_number, commit, target, dirty) and exit; `tjet daemon start` reads it to tell whether this binary would replace the running daemon (DB-17a)
--verify-interval <VERIFY_INTERVAL>
Run a full verification scan at least this often per workspace (seconds); 0 disables [default: 300]
--refuse-protocol3-remote-marks
Refuse remote marks (`save {remote: true}`) from protocol 3 clients, which send no authorization; they get AUTH_REQUIRED with a request to upgrade `tjet`. Also the setting `refuse_protocol3_remote_marks` in `settings.toml` of the state directory
--log-file
Write the log to `agent.log` in the state directory (rotated: 10 MiB per file, 5 files; secrets redacted) instead of standard error. Implied by --detach (DB-23)
-h, --help
Print help
-V, --version
Print version
Local endpoint only (a private Unix socket, or a user-only named pipe on Windows); the trust boundary is the OS user. Bounds: 256 connections (the next gets RETRY_LATER and is closed), 64 parked long-polls, hello within 10 s, a started frame within 10 s, a response taken within 10 s; 64 event streams (protocol 4, apart from the connections), each ended when an event frame is not taken within 10 s. Windows: clients are identified by their token (anonymous, restricted, AppContainer and below-medium-integrity clients are refused), and the daemon refuses to run elevated unless --allow-elevated is given. Upgrades (DB-17a): when a daemon already runs, a strictly newer clean build asks it to drain (at most 120 s, then running operations are cancelled at a safe boundary, and after 30 s more it stops as after a crash) and takes its place; any other build exits with code 3.