Skip to main content

saasframe feature_toggles toggle-create

yarn saasframe feature_toggles toggle-create creates a new feature toggle in the system.

Usage

yarn saasframe feature_toggles toggle-create --identifier <id> --name <name> [options]

Options

OptionDescriptionRequiredDefault
--identifierUnique identifier for the toggle (e.g., new-feature).Yes-
--nameHuman-readable name for the toggle.Yes-
--typeType of the toggle (boolean, string, number, json).Noboolean
--defaultValueInitial value of the toggle. Must match the specified type.Nofalse (for boolean)
--categoryCategory to group the toggle under.No-
--descriptionDescription of what the toggle controls.No-

Behavior

  • Registers a new feature toggle in the database.
  • If successful, outputs: ✅ Feature toggle created: <identifier>.
  • If mandatory arguments are missing, outputs usage instructions.