Skip to main content
Scaffolds a command class and its test file in a module. It writes the class and a colocated test, and creates the module’s bin/command/run.ts entry point if it does not already exist.

Usage

ooneex command:create [options]

Examples

ooneex command:create
ooneex command:create --name=ImportUser
ooneex command:create --name=ImportUser --module=users --override

Options

OptionDescriptionDefault
--nameCommand class name. The Command suffix is appended automatically.Prompted if omitted
--moduleTarget module the class is generated into.shared
--overrideOverwrite an existing class without prompting.false

AI Skill

This command ships a matching command:create skill. It generates the command class and its test file, then guides your AI agent through completing a CLI command that implements the ICommand interface from @ooneex/cli.
ooneex claude:init