crewship feature-flag
Manage feature flags for the current workspace. The CLI surfaces the flag definition lifecycle (create/update/delete) plus the override layer (per-workspace on/off) and a list view that includes the instance default. Creating or renaming a flag definition can also be done via the web UI, direct API calls, or a manifest apply — see the API reference below.
crewship flag.
Subcommands
crewship feature-flag create
list’s DEFAULT column reads and that enable/disable/inherit target with a per-workspace override. ADMIN-only (canRole "manage") and instance-wide: the flag becomes visible to every workspace on the instance, not only the one the CLI is pointed at.
crewship feature-flag update
enable/disable for that). Only the flags you pass are sent as a partial PATCH, so omitting --percentage leaves the stored value untouched rather than resetting it to 0.
At least one of the three is required — running
update <key> with no flags exits 2 (ExitValidation) without contacting the server. ADMIN-only; a <key> that doesn’t exist returns 404.
crewship feature-flag list
Lists every flag the instance knows about with three columns of state plus the resolved effective value:
The global
--format flag is honoured (table, json, yaml).
crewship feature-flag enable / disable
crewship feature-flag inherit
crewship feature-flag delete
inherit; prefer inherit if you only want to stop overriding for the current workspace. Requires OWNER / ADMIN (canRole "manage") and prompts for confirmation unless --yes / -y is passed.
API
The CLI is a thin wrapper over six endpoints. Each request uses the current authenticated workspace context; these routes do not take aworkspace_id
query parameter.
Every route in the family now has a CLI wrapper.
create/update/delete are ADMIN-only server-side (canRole "manage") and instance-wide — a definition change is visible to every workspace, not only the one the CLI is currently pointed at.
Common errors
API error (404): Feature flag not found— the<key>you passed doesn’t exist on this instance. Runcrewship feature-flag listto see the catalog.API error (409): feature flag with this key already exists—createwas given a--keyalready in use. Pick a different key, orupdatethe existing one.API error (401)— authenticate withcrewship login(or configure a CLI token) and select a workspace.API error (403): Forbidden— definition writes (create/update/delete) and override writes requireOWNER/ADMIN(canRole "manage"). MEMBER and VIEWER roles can onlylist.API error (400)— the override request is malformed or has no explicit booleanenabledvalue;inheritanddeletealso reject an empty key.updatewith no flags, orcreate/updatewith--percentageoutside0-100, is rejected client-side before any request is sent (exit2).
See also
- Feature flag manifest — declare flags as part of a workspace manifest under
crewship apply. crewship features— different command, lists the devcontainer features catalog (note the missing hyphen).