Skip to content

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.

Appelée seule, lemni ouvre une session interactive. Avec un prompt, elle le lui transmet.

Fenêtre de terminal
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 tags and excess whitespace from output. Only works with -p/–print flag.
--resume Resume from last session
--fork <sessionId> Fork from an existing session ID

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’)

List recent chat sessions and select one to resume

Option Effet
--json Output in JSON format

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

Test remote TUI mode with a local server

Option Effet
--url <url> Server URL (default: http://localhost:8000)

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

AI-designed onboarding course for a zone of this repository.

Option Effet
--config <path> Config file for the assistant

Review the AI-designed course as the expert: pending learner questions first

CI guard: re-read every code anchor against today’s code. Lessons whose code

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//cours.yaml)
--config <path> Config file for the assistant

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)

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 login
  • lemni logout
  • lemni remote