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. Prompts you to choose the Dashboard, Web UI, or plain
CLI (unless |
|
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. |
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.
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 interface chooser
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 --host 0.0.0.0 --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. |
|
|
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. |
|
|
Auto-approve execution gates when ready. |
|
|
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. |
|
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 |
|---|---|---|
|
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.