| 1 | --- |
| 2 | name: flags |
| 3 | description: Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels. |
| 4 | --- |
| 5 | |
| 6 | # Feature Flags |
| 7 | |
| 8 | Arguments: |
| 9 | - $ARGUMENTS: Optional flags |
| 10 | |
| 11 | ## Options |
| 12 | |
| 13 | | Option | Purpose | |
| 14 | |--------|---------| |
| 15 | | (none) | Show all flags across all channels | |
| 16 | | `--diff <ch1> <ch2>` | Compare flags between channels | |
| 17 | | `--cleanup` | Show flags grouped by cleanup status | |
| 18 | | `--csv` | Output in CSV format | |
| 19 | |
| 20 | ## Channels |
| 21 | |
| 22 | - `www`, `www-modern` - Meta internal |
| 23 | - `canary`, `next`, `experimental` - OSS channels |
| 24 | - `rn`, `rn-fb`, `rn-next` - React Native |
| 25 | |
| 26 | ## Legend |
| 27 | |
| 28 | ✅ enabled, ❌ disabled, 🧪 `__VARIANT__`, 📊 profiling-only |
| 29 | |
| 30 | ## Instructions |
| 31 | |
| 32 | 1. Run `yarn flags $ARGUMENTS` |
| 33 | 2. Explain the output to the user |
| 34 | 3. For --diff, highlight meaningful differences |
| 35 | |
| 36 | ## Common Mistakes |
| 37 | |
| 38 | - **Forgetting `__VARIANT__` flags** - These are tested both ways in www; check both variants |
| 39 | - **Comparing wrong channels** - Use `--diff` to see exact differences |