Skip to content

lsp

Start the LSP server for IDE integration.

The server communicates over stdin/stdout using JSON-RPC. The project root and state database are determined by the client's initialization request (rootUri parameter).

Usage

bash
leapsql lsp

Global Options

OptionShortDefaultDescription
--configconfig file (default: ./leapsql.yaml)
--databasePath to DuckDB database (empty for in-memory)
--envEnvironment name
--macros-dirPath to macros directory
--models-dirPath to models directory
--output-oOutput format (auto|text|markdown|json)
--project-dir-CProject root directory (auto-detected from models-dir or config file location)
--seeds-dirPath to seeds directory
--statePath to state database
--target-tTarget environment to use (e.g., dev, staging, prod)
--verbose-vfalseVerbose output

Examples

bash
# Start LSP server (usually called by an IDE)
leapsql lsp

Released under the MIT License.