@ contentstack/cli-cm-export-to-csv (中文(简体) )
Cm: 导出到csv命令允许您将以下数据导出到 CSV 文件:
- 多堆栈的内容和结构( schema)
- 组织用户详情
要能导出堆栈的内容,需要能够访问. 同样,要输出一个组织的用户数据,就需要 " 拥有者”或“.....管理员“该组织的用户.
参见 导出内容到.CSV 要学习更多的文件指南.
使用量
$ npm install -g @contentstack/cli-cm-export-to-csv
$ csdx COMMAND
running command...
$ csdx (-v|--version|version)
@contentstack/cli-cm-export-to-csv/2.0.1 darwin-arm64 node-v22.21.1
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
...
图标
csdx cm:export-to-csv
用此命令导出条目或组织用户到 csv
USAGE
$ csdx cm:export-to-csv [--action entries|users|teams|taxonomies] [-a <value>] [--org <value>] [-n <value>] [-k <value>] [--org-name <value>] [--locale <value>] [--content-type <value>] [--branch <value>] [--team-uid <value>] [--taxonomy-uid <value>] [--include-fallback] [--fallback-locale <value>] [--delimiter <value>]
FLAGS
--action=<option> Option to export data (entries, users, teams, taxonomies).
<options: entries|users|teams|taxonomies>
-a, --alias=<value> Alias of the management token.
--org=<value> Provide organization UID to clone org users.
-n, --stack-name=<value> Name of the stack that needs to be created as CSV filename.
-k, --stack-api-key=<value> API Key of the source stack.
--org-name=<value> Name of the organization that needs to be created as CSV filename.
--locale=<value> Locale of entries that will be exported.
--content-type=<value> Content type of entries that will be exported.
--branch=<value> Branch from which entries will be exported.
--team-uid=<value> Provide the UID of a specific team in an organization.
--taxonomy-uid=<value> Provide the taxonomy UID of the related terms you want to export.
--include-fallback [Optional] Include fallback locale data when exporting taxonomies.
--fallback-locale=<value> [Optional] Specify a specific fallback locale for taxonomy export.
--delimiter=<value> [optional] Provide a delimiter to separate individual data fields within the CSV file.
参见代码 : src/commands/cm/导出到csv.ts