Core Commands¶
kelpmesh init¶
Scaffold a new KelpMesh project.
Options:
- --encrypt — Initialize with state encryption support
kelpmesh run¶
Execute models in dependency order.
Options:
- --select — Model selection expression (+model, model+, @model)
- --full-refresh — Re-run all models regardless of state
- --threads — Number of parallel threads (default: 4)
kelpmesh test¶
Run SQL assertion tests.
Options:
- --warn — Treat test failures as warnings (non-blocking)
- --select — Test selection expression
kelpmesh build¶
Run models then tests in a single command.
kelpmesh diff¶
Compare current model output against the previous run.
kelpmesh preview¶
Preview model data from the warehouse.
Options:
- --limit — Number of rows to show (default: 100)
kelpmesh docs¶
Generate static HTML documentation for your project.
Options:
- --serve — Serve docs with a local HTTP server
- --port — Port for HTTP server (default: 8000)
kelpmesh ls¶
List models with their status and materialization type.
kelpmesh clean¶
Remove target/ directory and reset project state.
kelpmesh seed¶
Load seed SQL data into the warehouse.
KelpMesh schema diff¶
Detect schema drift by comparing current warehouse schema against stored schema.
kelpmesh debug¶
Show project health summary including encryption status, warehouse connection, and security posture.
KelpMesh pre-commit¶
Validate SQL files and detect circular dependencies. Designed for CI/pre-commit hooks.
Options:
- --project-dir — Project directory (default: current directory)
KelpMesh orchestrate¶
Multi-project orchestration across repositories.