Edit Preview
Skill for managing temporary Lightdash preview environments to test semantic layer changes in isolation.
Purpose
Enables the "Semantic Layer Developer" to create safe, isolated environments for stakeholders to review changes and for automated validation before production deployment.
Commands
- •
lightdash preview: Creates a temporary project with the current local state. - •
lightdash stop-preview: Tiers down a specific preview environment.
Behavior
- •Environment Creation: Run
lightdash previewafter local compilation is successful. - •Naming Convention: ALWAYS use the
--nameflag to provide a descriptive name for the preview (e.g.,feature-revenue-calc). This allows for consistent tracking and cleanup. - •Iterative Development: Changes pushed to an existing preview name will update that environment.
- •Cleanup: Run
lightdash stop-previewonce testing is complete to free up resources and keep the workspace organized.
References
- •Basics: Common preview flags and environment lifecycle management.
- •CLI Reference: General CLI usage and environment setup.
Rules
- •ALWAYS include the
--nameflag when creating or stopping a preview. - •Do NOT use preview environments for production workflows.
- •Ensure that the
LIGHTDASH_API_KEYandLIGHTDASH_API_URLare correctly set in the environment before running preview commands.