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/`)
|
||||
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:**
|
||||
```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)
|
||||
sqlmesh plan dev_<username>
|
||||
esc run beanflows/prod -- uv run sqlmesh -p transform/sqlmesh_materia plan dev_<username>
|
||||
|
||||
# Production
|
||||
sqlmesh plan prod
|
||||
esc run beanflows/prod -- uv run sqlmesh -p transform/sqlmesh_materia plan prod
|
||||
|
||||
# Run tests
|
||||
sqlmesh test
|
||||
uv run sqlmesh -p transform/sqlmesh_materia test
|
||||
|
||||
# Validate models
|
||||
sqlmesh validate
|
||||
uv run sqlmesh -p transform/sqlmesh_materia validate
|
||||
|
||||
# Run audits
|
||||
sqlmesh audit
|
||||
# Run audits (requires secrets)
|
||||
esc run beanflows/prod -- uv run sqlmesh -p transform/sqlmesh_materia audit
|
||||
|
||||
# Format SQL
|
||||
sqlmesh format
|
||||
uv run sqlmesh -p transform/sqlmesh_materia format
|
||||
|
||||
# Start UI
|
||||
sqlmesh ui
|
||||
# Start UI (requires secrets)
|
||||
esc run beanflows/prod -- uv run sqlmesh -p transform/sqlmesh_materia ui
|
||||
```
|
||||
|
||||
**Configuration:**
|
||||
|
||||
Reference in New Issue
Block a user