You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Option to export data (entries, users, teams, taxonomies). <options: entries|users|teams|taxonomies>',
20
+
description:
21
+
'Option to export data (entries, users, teams, taxonomies). <options: entries|users|teams|taxonomies>',
22
22
}),
23
23
alias: flags.string({
24
24
char: 'a',
@@ -67,12 +67,22 @@ class ExportToCsvCommand extends Command {
67
67
'taxonomy-uid': flags.string({
68
68
description: 'Provide the taxonomy UID of the related terms you want to export.',
69
69
}),
70
+
'include-fallback': flags.boolean({
71
+
description:
72
+
"[Optional] Include fallback locale data when exporting taxonomies. When enabled, if a taxonomy term doesn't exist in the specified locale, it will fallback to the hierarchy defined in the branch settings.",
73
+
default: false,
74
+
}),
75
+
'fallback-locale': flags.string({
76
+
description:
77
+
"[Optional] Specify a specific fallback locale for taxonomy export. This locale will be used when a taxonomy term doesn't exist in the primary locale. Takes priority over branch fallback hierarchy when both are specified.",
78
+
required: false,
79
+
}),
70
80
delimiter: flags.string({
71
-
description: '[optional] Provide a delimiter to separate individual data fields within the CSV file. For example: cm:export-to-csv --delimiter \'|\'',
81
+
description:
82
+
"[optional] Provide a delimiter to separate individual data fields within the CSV file. For example: cm:export-to-csv --delimiter '|'",
72
83
default: ',',
73
84
}),
74
-
};
75
-
85
+
};
76
86
asyncrun(){
77
87
try{
78
88
letaction,managementAPIClient;
@@ -87,9 +97,11 @@ class ExportToCsvCommand extends Command {
87
97
'content-type': contentTypesFlag,
88
98
alias: managementTokenAlias,
89
99
branch: branchUid,
90
-
"team-uid": teamUid,
100
+
'team-uid': teamUid,
91
101
'taxonomy-uid': taxonomyUID,
92
-
delimiter
102
+
'include-fallback': includeFallback,
103
+
'fallback-locale': fallbackLocale,
104
+
delimiter,
93
105
},
94
106
}=awaitthis.parse(ExportToCsvCommand);
95
107
@@ -127,7 +139,12 @@ class ExportToCsvCommand extends Command {
throwcheckManagementTokenValidity.valid==='failedToCheck'?checkManagementTokenValidity.message:(`error: Management token or stack API key is invalid. ${checkManagementTokenValidity.message}`);
0 commit comments