medienreaktor/contentrepository-commands
最新稳定版本:0.2
Composer 安装命令:
composer require medienreaktor/contentrepository-commands
包简介
medienreaktor ContentRepository Commands
README 文档
README
CLI Commands for the Event Sourced Content Repository of Neos CMS.
Note: This package is still work in progress. Use with care.
Commands
The CLI Commands directly dispatch Commands on the Content Repository. The Content Repository handles the Command and emits the Event to the Event Store.
Create node aggregate
Use cr:createnodeaggregate to create a new node aggregate.
| Argument | Description | Example |
|---|---|---|
contentRepository |
Identifier of the Content Repository | default |
workspaceName |
The workspace in which the create operation is to be performed | live |
originDimensionSpacePoint |
The dimension space point in which the new node should be created | {"language": "en"} |
nodeTypeName |
Name of the node type of the new node | Neos.Neos:Page |
parentNodeId |
The identifier of the parent node aggregate | 213b1564-14df-4984-bccd-5c6d003179ef |
propertyValues |
The property key/value pairs to write to the new node | {"title": "My new node", "uriPathSegment": "my-new-node"} |
If you execute the CLI Command without arguments, all required arguments will be asked interactively. You can pass all arguments in a single line (e.g. to use with Claude or bash scripts) like this:
flow cr:createnodeaggregate
--contentRepository default
--workspaceName live
--originDimensionSpacePoint '{"language": "en"}'
--nodeTypeName Neos.Neos:Page
--parentNodeId 213b1564-14df-4984-bccd-5c6d003179ef
--propertyValues '{"title": "My new node", "uriPathSegment": "my-new-node"}'
Set node properties
Use cr:setnodeproperties to set new properties on existing nodes.
| Argument | Description | Example |
|---|---|---|
contentRepository |
Identifier of the Content Repository | default |
workspaceName |
The workspace in which the set properties operation is to be performed | live |
nodeAggregateId |
The identifier of the node aggregate to set the properties for | 213b1564-14df-4984-bccd-5c6d003179ef |
originDimensionSpacePoint |
The dimension space point the properties should be changed in | {"language": "en"} |
propertyValues |
The property key/value pairs to write to set | {"title": "My new title"} |
That's it for now. More Commands will be added in the future.
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-16