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 @talosjs/feature-flag package if it is missing.

Usage

talos flag:create [options]

Examples

talos flag:create
talos flag:create --name=NewCheckout
talos 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 @talosjs/feature-flag.
talos claude:init