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
| 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 | - |
Behavior
- Registers a new feature toggle in the database.
- If successful, outputs:
✅ Feature toggle created: <identifier>. - If mandatory arguments are missing, outputs usage instructions.