Skip to main content
Run nerdit --help or nerdit COMMAND --help for the help shipped with your installed version. This reference describes the 0.6.0 source interface; compare nerdit --version before using a command added after your installed release.

Global options

Choose the Engine

The CLI reads ~/.nerdit/config.toml. Its local destination is loopback on [daemon].port. A [client].remote_host selects the remote connection instead. nerdit connect HOST --port PORT --token TOKEN checks and saves a remote connection; it changes where subsequent CLI commands run. The CLI uses HTTP for this direct connection, so use a trusted network or a protected tunnel and avoid putting real tokens in shared shell history. There is no NERDIT_CONFIG environment variable or global --config selector in this version. The Engine configuration is separate from a project’s nerdit.toml.

Common workflows

Use explicit subcommands: nerdit services list, nerdit models list and nerdit db list. Their bare groups display help. For scripted waits, exit code 0 means convergence, 1 means failure or a superseding deploy, 2 is a usage error, and 3 is a wait timeout. A timeout does not cancel the deployment. Use the HTTP API for structured resource responses instead of parsing terminal tables.
services rm, gc, db restore, restore, unlink, uninstall and credential changes can remove resources or access. Read the relevant operations, recovery and security guide before using them. Plain nerdit token prints the selected credential: keep it out of recordings and logs.
The commands below are generated from the registered CLI. They are an inventory of the available interface; optional cloud, GPU, model and database actions still require their respective prerequisites.

Command reference

Check system dependencies and optionally install missing ones.
Initialize Nerdit: configuration, daemon, and GPU detection.
Register a service from nerdit.toml [deploy] + CLI flags, or serve a model.
Deploy an app folder (zip + upload) or a Git URL, then build server-side.
Watch a folder and redeploy on every change (Ctrl-C to stop).
Display logs for a service (resolved by id or name).
Connect the CLI to a remote daemon.
Run the Nerdit MCP server over stdio (requires the mcp extra).
Stop the nerditd daemon.
Fetch and install the daemon’s internal CA root certificate.
Remove a previously trusted internal CA from this machine’s trust store.
Share a deployed app at a hosted URL through this node’s cloud link.
Remove an app’s hosted share; the URL stops answering on the next request.
Remove this installation, its containers, images, data and credentials.
Update (or downgrade) an installed nerdit to the latest or a pinned release.
Explain why a service failed and what to do about it (one bounded call).
Diagnose the daemon: run its structured health checks and print them.
Show what this daemon can do, and what the current token may do.
List every registered route (models included, shown as unrouted).
Show what the daemon did on its own: deploys, health flaps, restarts, failures.
Show disk usage: docker totals + named-volume/model/archive/backup trees.
Garbage-collect orphan app images (and, opt-in, orphan data dirs).
Stage a backup tar.
Restore state from a backup tar — daemon must be stopped.
Create a scoped API token (admin token required).
List API tokens (admin token required). Hashes/plaintext are never shown.
Show the token this CLI is authenticating with (any role).
Rotate this token’s secret in place; the new value is shown once.
Revoke an API token (admin token required).
Show daemon configuration (secrets redacted).
Update daemon configuration keys (admin token required).
Declaratively apply a multi-section daemon config document.
Show a deployed app’s config (deploy fields, ai bindings, source/revision).
Update a deployed app’s config section (admin/owner token required).
List services (bounded, newest first).
Stop a service (desired_state → stopped).
Restart a service (desired_state → running, backoff cleared).
Rebuild a service from its recorded Git repository and ref.
Remove a service (tear down the container + delete the row).
Wait for a service’s deploy outcome.
Show live CPU, memory and network usage, cached for two seconds.
Run a bounded command in the service’s image without changing the service.
Set/merge secrets for a service (values are write-only).
List a service’s secret key names (values are never shown).
Delete one secret key, or all of a service’s secrets.
Rotate the secrets-at-rest encryption key (admin-only).
List served models (bounded, newest first).
Provision a managed database (kind=database desired-state workload).
List managed databases (bounded, newest first).
Capture a logical, application-consistent dump of a managed database.
List the dump archives this daemon holds for one database (newest first).
Restore a dump into a managed database — destructive.
List the app template catalog.
Show one template’s coordinates, defaults and env schema.
Deploy an app template: clone the catalog repo server-side, build, run.
Show the embedded proxy’s state, TLS, apex, respawn and route counts.
Restart the daemon to apply restart-required config (admin-only, audited).
List an app’s direct domains.
Add a direct domain to a deployed app.
Remove a direct domain; the route disappears on the next reconcile tick.
Install a signed license file on the daemon (admin).
Show the persisted license path and what the running daemon verified.
Delete the installed license from the daemon (admin).