You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/cli/create-command.md
+59Lines changed: 59 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,3 +134,62 @@ $ dda agent-release data
134
134
│ │ └───┴────────┘ │
135
135
...
136
136
```
137
+
138
+
## Using feature flags
139
+
140
+
You can guard behavior behind feature flags using the `app.features` manager. It evaluates a remote flag for the current user/machine with a default fallback.
141
+
142
+
143
+
Update the command to check a flag before performing the network request:
`app.features.enabled(key, default_value, extra_attributes)` returns the evaluated value for `key`, or `default_value` if the flag is not found. The client automatically includes base context like platform, CI, environment, and user; you can add `extra_attributes` to refine targeting.
0 commit comments