cloneSchema
Last updated: January 27, 2026
Creates a zero-copy clone of a Snowflake schema with optional time travel support. Clones can be created from the current state or from a specific point in time within the retention window.
Note: This change type does not support automatic rollback or database inspection features (snapshot, diff, diff-changelog, and generate-changelog commands).
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the database containing the source schema | No |
| String | Name of the schema to clone from | Yes |
| String | Name of the database for the cloned schema | No |
| String | Name of the new cloned schema | Yes |
| Boolean | Replace existing schema with | No |
| Boolean | Only create if target doesn't exist with | No |
| Boolean | Skip tables lacking historical data (time travel only)** | No |
| Boolean | Skip hybrid tables during clone (time travel only)** | No |
| Boolean | Include named internal stages and files (time travel only)** | No |
| Nested | Time travel options for cloning from historical state | No |
* replaceIfExists and ifNotExists are mutually exclusive.
** These options require a timeTravelClause to be specified.
timeTravelClause attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Either | Yes |
| String | Absolute timestamp or SQL expression (e.g., | No |
| String | Relative seconds (e.g., | No |
| String | Statement ID from query history*** | No |
*** Exactly one of timestamp, offset, or statement must be specified.