christophlehmann/typo3-datahandler-cli

使用 CLI 命令通过 TYPO3 DataHandler 修改数据库记录。一种用于大量更改的低级方法。

dev-main 2024-08-29 22:02 UTC

This package is auto-updated.

Last update: 2024-08-29 22:02:29 UTC


README

使用 CLI 命令通过 TYPO3 DataHandler 修改数据库记录。一种用于大量更改的低级方法。

不应将标题为 Detail 的页面包含在搜索中

./bin/typo3 datahandler:patch \
    --table pages \
    --whereClause 'title="Detail"' \
    --jsonPatch '{"no_search": 1}'

页面 #2 应变为指向 typo3.org 的外部链接

./bin/typo3 datahandler:patch \
    --table pages \
    --records 2 \
    --jsonPatch '{"doktype": 3, "url": "https://typo3.org"}'

删除页面 #100 和 #200

./bin/typo3 datahandler:delete \
    --table pages \
    --records 100,200

使用 --workspace 可以在工作区中应用更改。

状态

它非常原始,因此请谨慎使用。