Skip to main content
Scaffolds a feature flag class and its test file in a module. It writes the class under the module’s src/flags directory, generates a matching test spec under tests/feature-flag, pre-fills a kebab-case flag key from the name, and installs the @ooneex/feature-flag package if it is missing.

Usage

ooneex flag:create [options]

Examples

ooneex flag:create
ooneex flag:create --name=NewCheckout
ooneex flag:create --name=NewCheckout --module=checkout --override

Options

OptionDescriptionDefault
--nameFeature flag class name. The FeatureFlag 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 flag:create skill. It generates the feature flag class and its test file, then guides your AI agent through completing a flag that implements the IFeatureFlag interface from @ooneex/feature-flag.
ooneex claude:init