How to Manage SQL Models using Rudder CLI Beta
- free
- growth
- enterprise
2 minute read
This feature is in Public Beta, where we work with early users and customers to test new features and get feedback before making them generally available.
Contact the Product team if you have any questions.
The SQL Models feature in Rudder CLI lets you manage your Reverse ETL SQL model sources through a Git-based workflow. It lets you store your SQL model configurations as YAML files in Git repositories, and use standard Git workflows to collaborate on any changes.
This approach brings version control, collaboration, and review processes to your SQL model configurations, addressing key limitations of managing these resources solely through the UI.
Key features
Bi-directional management
- Create new SQL model resources directly from CLI
- Import existing SQL model sources from your workspace into Git
Validation and preview
- Validate SQL syntax and connectivity before deployment
- Preview query results to ensure correctness
- Check primary key constraints and column mappings
Flexible configuration
- Define SQL queries inline in YAML files or reference external
.sqlfiles - Support for multiple warehouse types (listed below)
Automation ready
- GitHub Actions integration for CI/CD workflows
- Dry-run capabilities to preview changes before applying them
- Cross-domain resource management alongside Data Catalog and Tracking Plan resources
Supported warehouses
The SQL Models feature supports the following data warehouses:
- PostgreSQL
- MySQL
- Snowflake
- Amazon Redshift
- Google BigQuery
- Databricks
- Trino
Workflow overview
- Configure your Git repository and Rudder CLI project.
- Create new SQL models or import existing ones from your workspace.
- Make changes to your SQL models using your preferred editor.
- Validate your changes using the
validatecommand andapplycommand in dry-run mode (via the--dry-runflag). - Use the
previewcommand for SQL validation and connection validation. - Apply your changes using the
applycommand. - Create pull requests for team review and approval.
- Automatically sync approved changes to your workspace via GitHub Actions.
Get started
See the following guides for detailed documentation on managing SQL models using Rudder CLI: