Fix SQLMesh command documentation
Corrected SQLMesh commands to show proper usage: - Run from project root (not from transform/sqlmesh_materia/) - Use -p flag to specify project directory - Use uv run for all commands - Use esc run for commands requiring secrets (plan, audit, ui) - Clarified which commands need secrets vs local-only This aligns with the actual working pattern and Pulumi ESC integration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
23
CLAUDE.md
23
CLAUDE.md
@@ -96,32 +96,33 @@ extract_psd
|
|||||||
### 2. Transform Layer (`transform/sqlmesh_materia/`)
|
### 2. Transform Layer (`transform/sqlmesh_materia/`)
|
||||||
SQLMesh project implementing a layered data architecture.
|
SQLMesh project implementing a layered data architecture.
|
||||||
|
|
||||||
**Working directory:** All SQLMesh commands must be run from `transform/sqlmesh_materia/`
|
**Working directory:** All SQLMesh commands must be run from the project root with `-p transform/sqlmesh_materia`
|
||||||
|
|
||||||
**Key commands:**
|
**Key commands:**
|
||||||
```bash
|
```bash
|
||||||
cd transform/sqlmesh_materia
|
# Load secrets and run SQLMesh commands
|
||||||
|
# Always run from project root with -p flag and uv
|
||||||
|
|
||||||
# Local development (creates virtual environment)
|
# Local development (creates virtual environment)
|
||||||
sqlmesh plan dev_<username>
|
esc run beanflows/prod -- uv run sqlmesh -p transform/sqlmesh_materia plan dev_<username>
|
||||||
|
|
||||||
# Production
|
# Production
|
||||||
sqlmesh plan prod
|
esc run beanflows/prod -- uv run sqlmesh -p transform/sqlmesh_materia plan prod
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
sqlmesh test
|
uv run sqlmesh -p transform/sqlmesh_materia test
|
||||||
|
|
||||||
# Validate models
|
# Validate models
|
||||||
sqlmesh validate
|
uv run sqlmesh -p transform/sqlmesh_materia validate
|
||||||
|
|
||||||
# Run audits
|
# Run audits (requires secrets)
|
||||||
sqlmesh audit
|
esc run beanflows/prod -- uv run sqlmesh -p transform/sqlmesh_materia audit
|
||||||
|
|
||||||
# Format SQL
|
# Format SQL
|
||||||
sqlmesh format
|
uv run sqlmesh -p transform/sqlmesh_materia format
|
||||||
|
|
||||||
# Start UI
|
# Start UI (requires secrets)
|
||||||
sqlmesh ui
|
esc run beanflows/prod -- uv run sqlmesh -p transform/sqlmesh_materia ui
|
||||||
```
|
```
|
||||||
|
|
||||||
**Configuration:**
|
**Configuration:**
|
||||||
|
|||||||
Reference in New Issue
Block a user