File tree 1 file changed +7
-1
lines changed
packages/sanity/src/_internal/cli/commands/dataset
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ function parseFlags(rawFlags: ImportFlags): ParsedImportFlags {
103
103
}
104
104
}
105
105
106
+ // The minimum supported API version, providing the ability to handle version documents.
107
+ const MINIMUM_API_VERSION = '2025-02-19'
108
+
106
109
const importDatasetCommand : CliCommandDefinition = {
107
110
name : 'import' ,
108
111
group : 'dataset' ,
@@ -161,7 +164,10 @@ const importDatasetCommand: CliCommandDefinition = {
161
164
}
162
165
}
163
166
164
- const importClient = client . clone ( ) . config ( { dataset : targetDataset } )
167
+ const importClient = client . clone ( ) . config ( {
168
+ apiVersion : MINIMUM_API_VERSION ,
169
+ dataset : targetDataset ,
170
+ } )
165
171
166
172
// Print information about what projectId and dataset it is being imported to
167
173
const { projectId, dataset} = importClient . config ( )
You can’t perform that action at this time.
0 commit comments