cronJobs array of the module. It writes modules/<module>/src/crons/<Name>Cron.ts and modules/<module>/tests/crons/<Name>Cron.spec.ts, and installs the @ooneex/cron dependency if it is missing.
Usage
Examples
Options
| Option | Description | Default |
|---|---|---|
--name | Resource name (the Cron suffix is appended automatically). | Prompted if omitted |
--module | Target module. | shared |
--override | Overwrite an existing file without confirmation. | false |
AI Skill
This command ships a matchingcron:create skill. Your AI agent uses it to generate a new scheduled task class and its test file, then set the schedule, timezone, and handler for a job that extends the Cron base class from @ooneex/cron.
- Claude
- Codex