Skip to main content
Creates a cron job class and its test file in the target module, then registers the class in the module’s cronJobs array. It writes modules/<module>/src/crons/<Name>Cron.ts and modules/<module>/tests/crons/<Name>Cron.spec.ts, and pulls in the @talosjs/cron dependency when it is missing.

Usage

Examples

Options

AI Skill

This command ships a matching cron: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 @talosjs/cron.