2. Command-line & interactive commands
This page is the complete reference for LatticeMind’s command-line entry points, their flags, and every interactive (slash) command. For a friendlier, task-first introduction see Interactive commands.
2.1. Console commands
The wheel installs these commands on your PATH:
Command |
Purpose |
|---|---|
|
Start the assistant in the plain CLI. |
|
Launch the browser-based Web UI directly. |
2.2. Shell discovery and one-shot commands
The latticemind command also provides non-interactive commands for shell
users and general agents. Add --json or --format json anywhere in a
command to receive the versioned JSON response documented in
Using LatticeMind from Codex, Claude, and shell agents.
Command |
Purpose |
|---|---|
|
Print the installed LatticeMind version without a license/provider check. |
|
Return solvers, shell commands, slash commands, exit codes, and execution safeguards. |
|
Return the full interactive command catalog or one category/search match. |
|
Print one concise answer after inferring LatticeMind, RESCU, NanoDCAL, or all corpora from the question. |
|
List packaged LatticeMind manual source paths. |
|
Read one exact packaged LatticeMind manual |
|
Return the versioned runtime protocol manifest. |
|
Run read-only local and remote-configuration checks. |
|
Read project workflow, calculation status, artifact status, and indexed files. |
|
Answer from existing project files and matching LatticeMind manual sections without writing project metadata. |
|
Run one planning/validation turn; solver execution is disabled by default. |
|
Run one turn with explicit permission for the validated solver launch. |
|
Release the approved calculations and return immediately. See Releasing a long calculation. |
|
Work in the current folder instead of creating a project subdirectory. Home, root, system, and software folders still get a subdirectory. |
|
Bind a new project to one solver. Left unset, a new project uses RESCU and an existing project keeps the solver it was created with. |
|
Execute on the named profile from |
|
Continue an existing project, or create a new managed project even when the current directory could be attached. A continuation inherits the device, material, and settings of the request the project was founded on. |
See Using LatticeMind from Codex, Claude, and shell agents for the recommended Codex/Claude command sequence, JSON fields, exit codes, project continuation, and license/provider setup.
2.3. Releasing a long calculation
A calculation does not need LatticeMind to stay running. Adding --detach
releases the approved calculations to run independently — as a Slurm job, an
nohup-ed SSH bundle, or a detached local supervisor — and returns
immediately:
latticemind run "scf + bs + dos for Si: mp-149" \
--execute --approve-execution --detach
You can then close the terminal, log out, or shut down the client machine if the work is running remotely. Pick the project up later with:
latticemind run --project <project-dir> "continue"
LatticeMind reattaches to the released work, collects whatever finished while it
was away, and carries on from there. Inside the assistant, /status reports
what is running and what has completed, and /stale reports steps whose
inputs changed and therefore need recomputing.
Released work is tracked through an execution lease recorded inside the
project. /lease status shows the lease and whether it still blocks a new
launch; if a launch ever reports that it is waiting on a lease you know is
finished, /lease clear removes it and the next run proceeds normally.
Finished foreground runs leave no lease behind, and a stale lease left by an
interrupted session heals automatically on the project’s next run.
This is the recommended way to run anything long — geometry relaxations, phonon dispersions, or large supercells — and the only practical way to use a batch scheduler, where the job may not start until long after you submit it.
Solver documentation searches return excerpts only. --source cannot read
an exact RESCU or NanoDCAL page. The wheel contains the sanitized RESCU text
corpus and the hand-reviewed NanoDCAL keyword/calculation-name schema; it does
not contain the raw mirrors from solver_docs/rst_manual or
solver_docs/nanodcal.
docs uses --corpus auto by default. Use --corpus <name> to override
the inferred corpus, --json for a compact machine-readable response, and
--verbose for full fields on the returned excerpts, including scores,
distribution names, and corpus counts. --limit N changes the maximum number
of returned excerpts. These commands also bypass the interactive banner and any
interface selection when an older installation still maps latticemind to
runner.py.
2.4. latticemind-web options
Flag |
Meaning |
|---|---|
|
Bind host. Default: |
|
Bind port. Default: |
|
Do not attempt to open a local browser (use on servers/cloud). |
|
Force opening a local browser. |
Example:
latticemind-web --port 7865 --no-open
2.5. Remote utility subcommands
Before opening the interactive app, you can manage remote SSH sessions directly
from the shell. These are handled by latticemind at startup:
latticemind remote setup <profile> # install SSH session-reuse settings
latticemind remote warm <profile> # open one approved SSH session (2FA once)
latticemind remote status <profile> # check recorded remote job status
latticemind remote close <profile> # close the saved SSH session early
See Remote & HPC execution for the full remote/HPC workflow.
2.6. Interactive command palette
Inside any interface, type a command beginning with /. Type /commands
(alias /help) to browse them in-app. The full palette:
Help
Command |
Description |
Example |
|---|---|---|
|
Show the command palette (alias |
|
|
Explain a command or topic. |
|
|
Explain the current pause, blocker, or suggested action (alias |
|
|
Show context-aware next actions. |
|
|
Show short example prompts. |
|
Project
Command |
Description |
Example |
|---|---|---|
|
Start a fresh managed project. |
|
|
List recent indexed projects. |
|
|
Resume a project by id, prefix, or path. |
|
|
Fork a project before experimenting. |
|
|
Adopt the current folder as the active project. |
|
|
Create a project subdirectory for new work (on, the default) or work in the current folder (off). Alone, report the setting and where the next prompt lands. |
|
|
Adopt an existing folder without copying it. |
|
|
Attach documents/files to the active or next project. |
|
|
Inspect the current folder before choosing new/resume/attach. |
|
|
Set a readable display title (alias |
|
|
Show active project, mode, backend, settings (alias |
|
|
Show workflow and calculation status. |
|
Files
Command |
Description |
Example |
|---|---|---|
|
Show key project folders and artifacts. |
|
|
List known solver input files. |
|
|
List known results, plots, logs, and reports. |
|
Workflow & validation
Command |
Description |
Example |
|---|---|---|
|
List failed calculation instances and suggested reruns. |
|
|
List stale calculation instances. |
|
|
Continue a failed/stale workflow target. |
|
|
Force a target to rerun. |
|
|
Enable or skip validation. |
|
|
Show launch probability and gate findings. |
|
|
Show workflow-contract summary. |
|
|
Show validation/readiness warnings. |
|
Execution
Command |
Description |
Example |
|---|---|---|
|
Enable or disable solver execution. |
|
|
Assess each pending action and approve bounded low-risk work; anything else still asks. Hard holds are never bypassed. |
|
|
Approve every gate without asking, except deleting files and cancelling remote work. Hard holds still stop the run. The two modes are exclusive. |
|
|
Set the RESCU executable or launch command. |
|
|
Choose local, SSH, or Slurm execution. |
|
|
Preview what would run before launch (alias |
|
|
Estimate resource risk and staged-run recommendations. |
|
|
Enable or disable RESCU’s built-in plotter ( |
|
|
Show the recorded execution lease and whether it blocks the next launch
(alias |
|
|
Clear a settled or stale execution lease so the next run launches
normally. Refuses to clear a lease whose wave is still running unless
given |
|
Remote / HPC
Command |
Description |
Example |
|---|---|---|
|
Create or update a remote profile with guided prompts. |
|
|
List remote profiles. |
|
|
Select a remote profile. |
|
|
Install SSH session-reuse settings. |
|
|
Open a reusable SSH session for 2FA. |
|
|
Run SSH/transfer/scheduler preflight. |
|
|
Explain remote readiness and next checks. |
|
|
Check recorded remote job status. |
|
|
Fetch recorded remote job outputs. |
|
|
Tail latest remote execution logs. |
|
|
Show remote work directory and local bundle paths. |
|
|
Cancel the recorded remote job. |
|
Post-processing
Command |
Description |
Example |
|---|---|---|
|
Run or preview post-processing scripts. |
|
|
List generated plots. |
|
|
Show the analysis summary. |
|
Runtime, cloud & session
Command |
Description |
Example |
|---|---|---|
|
Show the active AI model provider and models, or switch to another
(alias |
|
|
Show the active model, pin an exact model id, or clear the pin. |
|
|
Read-only environment diagnostics (CLI, web, RESCU, remote). |
|
|
Inspect or persist runtime/deployment context. |
|
|
Choose the final report language (alias |
|
|
Show the qBraid Web UI and proxy quickstart. |
|
|
Show cloud/headless web settings. |
|
|
Launch the Web UI. |
|
|
Exit LatticeMind. |
|
2.7. Environment variables
Every setting also has an environment variable. See Settings & configuration reference for the complete list.