Documentation Index
Fetch the complete documentation index at: https://docs.sqlbuild.com/llms.txt
Use this file to discover all available pages before exploring further.
sqb clone
Copies model relations from one environment to another. Uses zero-copy cloning where the adapter supports it, falling back to physical copies with--hard-copy.
No manifest.json generation or artifact management is required. Clone works directly against live environments.
Usage
Flags
| Flag | Description |
|---|---|
--from | Source environment (required) |
--to | Target environment (required) |
--hard-copy | Force physical table copies instead of zero-copy cloning |
--no-sql-validation | Skip compile-time SQL syntax validation |
--select, -s | Select specific models to clone |
--exclude | Exclude specific models from cloning |
Examples
Clone policies
Environments must allow cloning insqlbuild_project.yml. See Project Configuration for details.
