events array of the module. It writes modules/<module>/src/events/<Name>Event.ts and modules/<module>/tests/events/<Name>Event.spec.ts, and installs the @ooneex/event dependency if it is missing. The channel defaults to the kebab-case form of the name when --channel is omitted.
Usage
Examples
Options
| Option | Description | Default |
|---|---|---|
--name | Resource name (the Event suffix is appended automatically). | Prompted if omitted |
--module | Target module. | shared |
--channel | PubSub channel name. | kebab-case name |
--override | Overwrite an existing file without confirmation. | false |
AI Skill
This command ships a matchingevent:create skill. Your AI agent uses it to generate a new publish/subscribe event class and its test file, then implement the data type, channel, and handler for an event that extends PubSub from @ooneex/event.
- Claude
- Codex