Commandes du CLI
This content is not available in your language yet.
Les intitulés et les descriptions sont reproduits tels que lemni --help les
affiche, donc en anglais. Les traduire ferait dire à cette page autre chose que
ce que le lecteur a sous les yeux dans son terminal.
Sans sous-commande
Section intitulée « Sans sous-commande »Appelée seule, lemni ouvre une session interactive. Avec un prompt, elle le
lui transmet.
lemni "explique-moi ce fichier"| Option | Effet |
|---|---|
-p, --print |
Print response and exit (useful for pipes) |
--format <format> |
Output format for headless mode (json). Only works with -p/–print flag. |
--silent |
Strip |
--resume |
Resume from last session |
--fork <sessionId> |
Fork from an existing session ID |
Options communes
Section intitulée « Options communes »Elles s’appliquent à la session interactive et aux sous-commandes qui les partagent.
| Option | Effet |
|---|---|
--config <path> |
Configuration file for the assistant (can be a file path or hub slug) |
--org <slug> |
Organization slug to use for this session (supported only in headless mode) |
--readonly |
Start in plan mode (read-only tools) |
--auto |
Start in auto mode (all tools allowed) |
--verbose |
Enable verbose logging |
--beta-status-tool |
Enable beta status tool |
--rule <rule> |
Add a rule (can be a file path, hub slug, or string content). Can be specified multiple times. |
--mcp <slug> |
Add an MCP server from the hub (slug in format ‘owner/package’). Can be specified multiple times. |
--model <slug> |
Add a model from the hub (slug in format ‘owner/package’). Can be specified multiple times. |
--prompt <prompt> |
Add to the initial user message (can be a file path, hub slug, or string content). Can be specified multiple times. |
--allow <tool> |
Allow specified tool (overrides default policies). Can be specified multiple times. |
--ask <tool> |
Ask for permission before using specified tool (overrides default policies). Can be specified multiple times. |
--exclude <tool> |
Exclude specified tool from use (overrides default policies). Can be specified multiple times. |
--agent <slug> |
Load agent file from the hub (slug in format ‘owner/package’) |
Sous-commandes
Section intitulée « Sous-commandes »lemni ls
Section intitulée « lemni ls »List recent chat sessions and select one to resume
| Option | Effet |
|---|---|
--json |
Output in JSON format |
lemni serve [prompt]
Section intitulée « lemni serve [prompt] »Commande masquée. Elle n’apparaît pas dans lemni --help.
Start an HTTP server with /state and /message endpoints
| Option | Effet |
|---|---|
--timeout <seconds> |
Inactivity timeout in seconds (default: 300) |
--port <port> |
Port to run the server on (default: 8000) |
--host <host> |
Interface to bind to (default: 127.0.0.1, loopback only) |
--id <storageId> |
Upload session snapshots to Lemniscate-managed storage using the provided identifier |
--beta-upload-artifact-tool |
Enable beta UploadArtifact tool for uploading screenshots, videos, and logs |
lemni remote-test [prompt]
Section intitulée « lemni remote-test [prompt] »Test remote TUI mode with a local server
| Option | Effet |
|---|---|
--url <url> |
Server URL (default: http://localhost:8000) |
lemni pr [prompt]
Section intitulée « lemni pr [prompt] »Orchestrate a complete PR workflow: branch, implement, push, create PR, self-review, CI loop.
| Option | Effet |
|---|---|
--yes |
Skip workflow confirmations (push, PR creation) |
--max-retries <n> |
Max CI fix attempts (default: 5) |
--guidelines <path> |
Path to Markdown guidelines file for self-review |
--base-branch <ref> |
Base branch (default: main) |
--dry-run |
Show execution plan without running |
--config <path> |
Config file for the assistant |
lemni onboard [zone]
Section intitulée « lemni onboard [zone] »AI-designed onboarding course for a zone of this repository.
| Option | Effet |
|---|---|
--config <path> |
Config file for the assistant |
lemni onboard review [zone]
Section intitulée « lemni onboard review [zone] »Review the AI-designed course as the expert: pending learner questions first
lemni onboard check [zone]
Section intitulée « lemni onboard check [zone] »CI guard: re-read every code anchor against today’s code. Lessons whose code
lemni onboard build <paths...>
Section intitulée « lemni onboard build <paths...> »Design (or redesign) the onboarding course of a zone.
| Option | Effet |
|---|---|
--label <label> |
Human label of the zone (default: first path) |
--sortie <file> |
Output file (default: .lemniscate/onboarding/ |
--config <path> |
Config file for the assistant |
lemni map [path]
Section intitulée « lemni map [path] »Render a map of the repository: modules and their dependencies.
| Option | Effet |
|---|---|
--level <level> |
Node granularity: package | dir | file | symbol (default: dir) |
--focus <nodeId> |
Center the view on a file or symbol (V2) |
--depth <n> |
Neighborhood depth around –focus (default: 1) |
--cycles |
List import cycles only; exit 1 if any |
--check-layers |
List layer violations only; exit 1 if any |
--pr |
Map what the current branch changed (V7) |
--base-ref <ref> |
Base ref for –pr (default: upstream branch, else origin’s default branch) |
--format <format> |
Output format: mermaid | json (default: mermaid) |
--max-nodes <n> |
Maximum number of visible nodes (default: 15) |
Non documentées
Section intitulée « Non documentées »Ces commandes existent dans le binaire mais visent un service qui n’est pas opéré. Elles sont listées pour qu’un lecteur qui les découvre dans le code sache pourquoi elles ne figurent pas ci-dessus.
lemni loginlemni logoutlemni remote