Open MercatoDocsSearch docsAPI reference

CLI

mercato feature_toggles toggle-create

Create the shared definition before assigning a tenant override. Its key and type establish what consuming modules can read.

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

Usage

yarn mercato 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

Previous: mercato feature_toggles seed-defaults · Next: mercato feature_toggles toggle-delete