crewship feature-flag
Manage feature flags for the current workspace. The CLI surfaces the override layer (per-workspace on/off) plus alist view that includes the instance default, and a delete for removing a flag definition outright. Creating or renaming a flag definition is still an instance-admin operation that lives in the web UI, direct API calls, or a manifest apply — see the API reference below.
crewship flag.
Subcommands
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.
Flag definition create/update (
POST / PATCH) intentionally still has no CLI wrapper — creating or renaming a flag is an instance-admin event that should land via a code change, a migration, a manifest apply, or the admin UI rather than an ad-hoc CLI call. delete is the exception: it’s the cleanup counterpart needed to safely exercise a flag’s full lifecycle (e.g. a throwaway flag created via apply) without relying on apply’s broader manifest-diff delete semantics.
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 (401)— authenticate withcrewship login(or configure a CLI token) and select a workspace.API error (403): Forbidden— override writes anddeleterequireOWNER/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.
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).