CLI
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.
yarn mercato feature_toggles toggle-create --identifier <id> --name <name> [options]
| Option | Description | Required | Default |
|---|---|---|---|
--identifier | Unique identifier for the toggle (e.g., new-feature). | Yes | - |
--name | Human-readable name for the toggle. | Yes | - |
--type | Type of the toggle (boolean, string, number, json). | No | boolean |
--defaultValue | Initial value of the toggle. Must match the specified type. | No | false (for boolean) |
--category | Category to group the toggle under. | No | - |
--description | Description of what the toggle controls. | No | - |
✅ Feature toggle created: <identifier>.Previous: mercato feature_toggles seed-defaults · Next: mercato feature_toggles toggle-delete