wwwision/contentrepositorydumper

此包的最新版本(9.0.0)没有可用的许可证信息。

用于导出和比较 Neos 内容存储库的 CLI 命令

9.0.0 2023-01-04 11:39 UTC

This package is auto-updated.

Last update: 2024-09-13 18:44:47 UTC


README

CLI 命令用于导出和比较 Neos 内容存储库 实例

安装

通过 composer 安装

composer require wwwision/contentrepositorydumper

注意: 目前此包有两个不同的版本

  • 7.x 版本与 Neos 内容存储库的 7.x 和 8.x+ 版本兼容
  • 9.x 版本与 Neos 内容存储库的 9.x 版本兼容

用法

目前,此包包含单个 CLI 命令 cr:dump

Dump the structure of the Content Repository to flat files in order to debug/compare them

COMMAND:
wwwision.contentrepositorydumper:cr:dump

USAGE:
./flow cr:dump [<options>] <site>

ARGUMENTS:
--site               Name of the site node to dump (e.g. "neosdemo")

OPTIONS:
--dimensions         The dimensions to export in the format: "<key1>:<value1>,<value2>;<key2>:<value1>,...;..." (e.g. "language:de,en_UK;market:us").
                     If omitted, all dimensions will be included
--path               Path to dump the file(s) to. This has to be the full path to an empty directory.
                     If omitted, files are dumped to "/Data/ContentRepositoryDump/<Timestamp>

示例 1

将所有内容维度的所有节点导出到文件夹 /Data/ContentRepositoryDump/<Timestamp>

./flow cr:dump neosdemo

示例 2

仅将自定义网站的特定内容维度导出到自定义路径

./flow cr:dump somesite --dimensions "lanuage:de,en;market:eu" --path Some/Custom/Path