Update an existing feature flag within the specified namespace (or the “default” namespace if unspecified). A feature flag is a group of one or more feature subgraphs. Each feature subgraph represents a replacement of a specific base subgraph that composes a federated graph.
The alias for feature-flag is ff.Note that unless specified by the --namespace parameter, the namespace will be automatically passed as “default”.
If either the base composition (the federated graph with the original subgraphs) or the feature flag composition fail, the router execution configuration will not be updated with the feature flag configuration.
<name>: The name of the existing feature flag to update. Returns an error if the feature flag does not exist in the specified (otherwise “default”) namespace.
--fs, --feature-subgraphs: A list of names of the feature subgraphs that compose the feature flag. At least one feature subgraph name must be included, and multiple names are space delimited. Including a non-feature subgraph or a feature subgraph that does not exist in the specified (otherwise “default”) namespace will produce an error. Including this option will overwrite the existing list.
-n, --namespace : The namespace of the feature flag (defaults to “default”). Returns an error if the feature flag does not exist in that namespace.
--label [labels...]:The labels to apply to the feature flag. The labels are passed in the format key=value, and multiple values are space delimited. Including this option will overwrite the existing list.
--unsetlabels: Removes all existing labels. If the --label parameter is also provided, it will be ignored.
-j, --json : Output the information in JSON format.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"WunderGraph","colors":{"primary":"#ea4899","light":"#ea4899","dark":"#ea4899"},"logo":{"light":"https://mintcdn.com/wundergraphinc/Lko791L3Kvuj3JHY/logo/light.svg?fit=max\u0026auto=format\u0026n=Lko791L3Kvuj3JHY\u0026q=85\u0026s=1877cdae169b31d438adf776ae7087f9","dark":"https://mintcdn.com/wundergraphinc/YDoaRPXJqqOa7ihg/logo/dark.svg?fit=max\u0026auto=format\u0026n=YDoaRPXJqqOa7ihg\u0026q=85\u0026s=2b2590e1246dbcde54be6f257ddc7885","href":"https://cosmo-docs.wundergraph.com/"},"favicon":"https://mintcdn.com/wundergraphinc/urh2bRDxnny5gbfk/favicon.png?fit=max\u0026auto=format\u0026n=urh2bRDxnny5gbfk\u0026q=85\u0026s=5c8f87531fa87214946d81c914c93efc","appearance":{"default":"dark"},"background":{"decoration":"windows"},"navbar":{"links":[{"href":"https://cosmo.wundergraph.com/login","label":"Cloud Login"}],"primary":{"type":"button","label":"Talk to an Expert","href":"https://wundergraph.com/contact/sales"}},"footer":{"socials":{"x":"https://twitter.com/wundergraphcom","discord":"https://wundergraph.com/discord","github":"https://github.com/wundergraph","youtube":"https://www.youtube.com/@wundergraph"},"links":[{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://wundergraph.com/privacy-policy"},{"label":"Cookie Policy","href":"https://wundergraph.com/cookies"},{"label":"Website Terms","href":"https://wundergraph.com/terms"},{"label":"Cosmo Managed Terms","href":"https://wundergraph.com/cosmo-managed-service-terms"}]},{"header":"Trust","items":[{"label":"Trust Center","href":"https://trust.wundergraph.com/"}]}]},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":false},"integrations":{"gtm":{"tagId":"GTM-5GPL7DQH"},"koala":{"publicApiKey":"pk_c7477bfbf86479d918562f7add220a2d7098"},"posthog":{"apiKey":"phc_CEnvoyw3KcTuC5E1seDPrgvAamgGRDLfzPi1e7RU1G1","apiHost":"https://eu.i.posthog.com"},"plausible":{"domain":"cosmo-docs.wundergraph.com"}},"banner":{"content":"Help map how teams scale Federated GraphQL in the State of Federation 2026 Survey. We donate $30 to UNICEF per response → [Take the survey](https://8bxwlo3ot55.typeform.com/to/zIJKRQUe).","dismissible":false},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Platform Status","icon":"signal","href":"https://status.wundergraph.com/"},{"anchor":"GitHub","icon":"github","href":"https://github.com/wundergraph/cosmo"},{"anchor":"Blog","icon":"newspaper","href":"https://wundergraph.com/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"wundergraphinc","hasAudioNarration":false,"actualSubdomain":"wundergraphinc","customDomains":["cosmo-docs.wundergraph.com"],"gitSource":{"type":"github","owner":"wundergraph","repo":"cosmo","deployBranch":"main","contentDirectory":"docs-website","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aeb3db7119a07d709eb397e","collectionId":"1c89c857-a134-4502-9aa6-a27fec3cce11","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeb3db7119a07d709eb397e"},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aeb3db7119a07d709eb397e","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"Documentation","count":220},{"language":"default","tag":"CLI","count":214},{"language":"default","tag":"Router","count":124},{"language":"default","tag":"Studio","count":56},{"language":"default","tag":"Tutorials","count":26},{"language":"default","tag":"GraphQL / Federation","count":24},{"language":"default","tag":"Directives","count":17},{"language":"default","tag":"Cosmo Connect","count":15},{"language":"default","tag":"Monograph","count":14},{"language":"default","tag":"Subgraph","count":14}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".osano-cm-dialog--type_box{border-radius:0.375rem;--box-shadow: 0 10px 15px -3px rgb(248 248 251 / 0.3),\n 0 4px 6px -4px rgb(248 248 251 / 0.3);-webkit-box-shadow:var(--box-shadow);-moz-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}.osano-cm-info{--box-shadow: 0 10px 15px -3px rgb(248 248 251 / 0.3),\n 0 4px 6px -4px rgb(248 248 251 / 0.3);-webkit-box-shadow:var(--box-shadow);-moz-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}.osano-cm-widget:focus{outline:none}"}],"page":{"pagePath":"cli/feature-flags/update-feature-flag","slug":"/cli/feature-flags/update-feature-flag","pageMetadata":{"title":"Update Feature Flag","description":"How to update a feature flag.","icon":"pen-to-square","href":"/cli/feature-flags/update-feature-flag"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"How to update a feature flag.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`description`,children:`Description`}),`\n`,_jsxs(_components.p,{children:[`Update an existing feature flag within the specified namespace (or the “default” namespace if unspecified). A feature flag is a group of one or more `,_jsx(_components.a,{href:`/cli/feature-subgraph`,children:`feature subgraphs`}),`. Each feature subgraph represents a replacement of a specific base subgraph that composes a federated graph.`]}),`\n`,_jsx(Heading,{level:`2`,id:`minimum-requirements`,children:`Minimum Requirements`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Package`}),_jsx(_components.th,{children:`Minimum version`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/cli/intro`,children:`wgc`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.a,{href:`https://github.com/wundergraph/cosmo/compare/wgc@0.57.7...wgc@0.58.0`,children:`0.58.0`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/router/intro`,children:`router`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.a,{href:`https://github.com/wundergraph/cosmo/releases/tag/router%400.95.0`,children:`0.95.0`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wgc`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` feature-flag`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` update`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-flag`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --feature-subgraphs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fs1`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fs2`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The alias for `,_jsx(_components.code,{children:`feature-flag`}),` is `,_jsx(_components.code,{children:`ff`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Note that unless specified by the `,_jsx(_components.code,{children:`--namespace`}),` parameter, the namespace will be automatically passed as “default”.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`If either the base composition (the federated graph with the original subgraphs) or the feature flag composition fail, the router execution configuration will not be updated with the feature flag configuration.`})}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\u003cname>`}),`: The name of the existing feature flag to update. Returns an error if the feature flag does not exist in the specified (otherwise “default”) namespace.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`options`,children:`Options`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--fs, --feature-subgraphs:`}),` A list of names of the feature subgraphs that compose the feature flag. At least one feature subgraph name must be included, and multiple names are space delimited. Including a non-feature subgraph or a feature subgraph that does not exist in the specified (otherwise “default”) namespace will produce an error. Including this option will overwrite the existing list.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`-n, --namespace`}),` : The namespace of the feature flag (defaults to “default”). Returns an error if the feature flag does not exist in that namespace.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--label [labels...]:`}),`The labels to apply to the feature flag. The labels are passed in the format `,_jsx(_components.code,{children:`key=value`}),`, and multiple values are space delimited. Including this option will overwrite the existing list.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--unsetlabels:`}),` Removes all existing labels. If the `,_jsx(_components.code,{children:`--label`}),` parameter is also provided, it will be ignored.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`-j, --json`}),` : Output the information in JSON format.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsxs(_components.p,{children:[`Update the existing feature flag “my-flag” in the namespace “prod” with multiple feature subgraphs and the labels `,_jsx(_components.code,{children:`team=A`}),` and `,_jsx(_components.code,{children:`team=B`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wgc`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` feature-flag`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` update`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-flag`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --feature-subgraphs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-graph`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-other-graph`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` prod`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` --label`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` team=A`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` team=B`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Update Feature Flag","description":"How to update a feature flag.","icon":"pen-to-square","href":"/cli/feature-flags/update-feature-flag"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Description","slug":"description","depth":2,"children":[]},{"title":"Minimum Requirements","slug":"minimum-requirements","depth":2,"children":[]},{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Parameters","slug":"parameters","depth":2,"children":[]},{"title":"Options","slug":"options","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/wundergraphinc/c20d56ed2ea5ad45/analytics.js","/_mintlify/custom/wundergraphinc/0a55a31d9c045e90/osano.js"],"subdomain":"wundergraphinc","siteName":"WunderGraph","title":"Update Feature Flag - WunderGraph","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-27T08:07:26.728Z","originalFileLocation":"cli/feature-flags/update-feature-flag.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"How to update a feature flag.\">\u003cmeta data-mint-head name=\"application-name\" content=\"WunderGraph\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/wundergraphinc/lz2f-9ge_mXpMLAt/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/wundergraphinc/lz2f-9ge_mXpMLAt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/wundergraphinc/lz2f-9ge_mXpMLAt/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/wundergraphinc/lz2f-9ge_mXpMLAt/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/wundergraphinc/lz2f-9ge_mXpMLAt/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/wundergraphinc/lz2f-9ge_mXpMLAt/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/wundergraphinc/lz2f-9ge_mXpMLAt/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/wundergraphinc/lz2f-9ge_mXpMLAt/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/wundergraphinc/lz2f-9ge_mXpMLAt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update Feature Flag - WunderGraph\">\u003cmeta data-mint-head property=\"og:description\" content=\"How to update a feature flag.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"WunderGraph\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://cosmo-docs.wundergraph.com/cli/feature-flags/update-feature-flag\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://wundergraphinc.mintlify.site/_mintlify/api/og/v2?division=Feature+Flags\u0026amp;title=Update+Feature+Flag\u0026amp;description=How+to+update+a+feature+flag.\u0026amp;theme=bec8a9a9f4ab1a77bed38caa\u0026amp;signature=de797ba6c0b35bdce73f9a9b21969538b88620e64ab5d5216dbaef2d769a9d7d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update Feature Flag - WunderGraph\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How to update a feature flag.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://wundergraphinc.mintlify.site/_mintlify/api/og/v2?division=Feature+Flags\u0026amp;title=Update+Feature+Flag\u0026amp;description=How+to+update+a+feature+flag.\u0026amp;theme=bec8a9a9f4ab1a77bed38caa\u0026amp;signature=de797ba6c0b35bdce73f9a9b21969538b88620e64ab5d5216dbaef2d769a9d7d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/wundergraphinc/lz2f-9ge_mXpMLAt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"WunderGraph\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ea4899\">\u003clink data-mint-head rel=\"canonical\" href=\"https://cosmo-docs.wundergraph.com/cli/feature-flags/update-feature-flag\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/feature-flags/update-feature-flag.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://cosmo-docs.wundergraph.com/#organization\",\"name\":\"WunderGraph\",\"url\":\"https://cosmo-docs.wundergraph.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/wundergraphinc/Lko791L3Kvuj3JHY/logo/light.svg?fit=max\u0026auto=format\u0026n=Lko791L3Kvuj3JHY\u0026q=85\u0026s=1877cdae169b31d438adf776ae7087f9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://cosmo-docs.wundergraph.com#website\",\"name\":\"WunderGraph\",\"url\":\"https://cosmo-docs.wundergraph.com\",\"publisher\":{\"@id\":\"https://cosmo-docs.wundergraph.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://cosmo-docs.wundergraph.com/cli/feature-flags/update-feature-flag#webpage\",\"url\":\"https://cosmo-docs.wundergraph.com/cli/feature-flags/update-feature-flag\",\"name\":\"Update Feature Flag\",\"description\":\"How to update a feature flag.\",\"dateModified\":\"2026-01-27T08:07:26.728Z\",\"isPartOf\":{\"@id\":\"https://cosmo-docs.wundergraph.com#website\"},\"breadcrumb\":{\"@id\":\"https://cosmo-docs.wundergraph.com/cli/feature-flags/update-feature-flag#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://cosmo-docs.wundergraph.com/cli/feature-flags/update-feature-flag#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CLI\",\"item\":\"https://cosmo-docs.wundergraph.com/cli/intro\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Feature Flags\",\"item\":\"https://cosmo-docs.wundergraph.com/cli/feature-flags\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update Feature Flag\",\"item\":\"https://cosmo-docs.wundergraph.com/cli/feature-flags/update-feature-flag\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://cosmo-docs.wundergraph.com/cli/feature-flags/update-feature-flag#article\",\"headline\":\"Update Feature Flag\",\"name\":\"Update Feature Flag\",\"description\":\"How to update a feature flag.\",\"url\":\"https://cosmo-docs.wundergraph.com/cli/feature-flags/update-feature-flag\",\"mainEntityOfPage\":{\"@id\":\"https://cosmo-docs.wundergraph.com/cli/feature-flags/update-feature-flag#webpage\"},\"dateModified\":\"2026-01-27T08:07:26.728Z\",\"publisher\":{\"@id\":\"https://cosmo-docs.wundergraph.com/#organization\"},\"isPartOf\":{\"@id\":\"https://cosmo-docs.wundergraph.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"WunderGraph\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"WunderGraph","nav":{"global":{"anchors":[{"anchor":"Platform Status","icon":"signal","href":"https://status.wundergraph.com/"},{"anchor":"GitHub","icon":"github","href":"https://github.com/wundergraph/cosmo"},{"anchor":"Blog","icon":"newspaper","href":"https://wundergraph.com/blog"}]},"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/overview"}]},{"tab":"CLI","icon":"terminal","groups":[{"group":"CLI","pages":[{"title":"Cosmo CLI","icon":"hand-wave","href":"/cli/intro"},{"title":"Essentials","icon":"cubes","href":"/cli/essentials"},{"title":"Demo","icon":"rocket-launch","href":"/cli/demo"},{"title":"API Keys","icon":"key","href":"/cli/api-keys"},{"group":"Namespace","icon":"object-ungroup","pages":[{"title":"Namespace","icon":"circle-info","sidebarTitle":"Overview","href":"/cli/namespace"},{"title":"Create","icon":"plus","href":"/cli/namespace/create"},{"title":"Delete","icon":"trash","href":"/cli/namespace/delete"},{"title":"Rename","icon":"pen-to-square","href":"/cli/namespace/rename"},{"title":"List","icon":"list","href":"/cli/namespace/list"}]},{"group":"Subgraph","icon":"share-nodes","pages":[{"title":"Subgraph","icon":"circle-info","sidebarTitle":"Overview","href":"/cli/subgraph"},{"title":"Create","icon":"plus","href":"/cli/subgraph/create"},{"title":"Publish","icon":"upload","href":"/cli/subgraph/publish"},{"title":"Batch Publish","icon":"layer-group","href":"/cli/subgraph/batch-publish"},{"title":"List","icon":"list","href":"/cli/subgraph/list"},{"title":"Check","icon":"circle-check","href":"/cli/subgraph/check"},{"title":"Update","icon":"pen-to-square","href":"/cli/subgraph/update"},{"title":"Delete","icon":"trash","href":"/cli/subgraph/delete"},{"title":"Fetch","icon":"download","href":"/cli/subgraph/fetch"},{"title":"Move","icon":"arrow-right-arrow-left","href":"/cli/subgraph/move"},{"title":"Introspect","icon":"eye","href":"/cli/subgraph/introspect"},{"title":"Fix","icon":"check","href":"/cli/subgraph/fix"},{"title":"Link","icon":"link","href":"/cli/subgraph/link"},{"title":"Unlink","icon":"unlink","href":"/cli/subgraph/unlink"}]},{"group":"Federated Graph","icon":"vector-circle","pages":[{"title":"Federated Graph","sidebarTitle":"Overview","icon":"circle-info","href":"/cli/federated-graph"},{"title":"Create","icon":"plus","href":"/cli/federated-graph/create"},{"title":"List","icon":"list","href":"/cli/federated-graph/list"},{"title":"Check","icon":"circle-check","href":"/cli/federated-graph/check"},{"title":"Update","icon":"pen-to-square","href":"/cli/federated-graph/update"},{"title":"Delete","icon":"trash","href":"/cli/federated-graph/delete"},{"title":"Fetch","icon":"download","href":"/cli/federated-graph/fetch"},{"title":"Fetch-Schema","icon":"file-code","href":"/cli/federated-graph/fetch-schema"},{"title":"Move","icon":"arrow-right-arrow-left","href":"/cli/federated-graph/move"},{"title":"Changelog","icon":"bullhorn","href":"/cli/federated-graph/changelog"},{"group":"Version","icon":"code-branch","pages":[{"title":"Version","sidebarTitle":"Overview","icon":"circle-info","href":"/cli/federated-graph/version"},{"title":"Get","icon":"download","href":"/cli/federated-graph/version/get"},{"title":"Set","icon":"upload","href":"/cli/federated-graph/version/set"}]}]},{"group":"Monograph","icon":"share-nodes","pages":[{"title":"Monograph","sidebarTitle":"Overview","icon":"circle-info","href":"/cli/monograph"},{"title":"Create","icon":"plus","href":"/cli/monograph/create"},{"title":"Publish","icon":"upload","href":"/cli/monograph/publish"},{"title":"Update","icon":"pen-to-square","href":"/cli/monograph/update"},{"title":"Check","icon":"circle-check","href":"/cli/monograph/check"},{"title":"Delete","icon":"trash","href":"/cli/monograph/delete"},{"title":"List","icon":"list","href":"/cli/monograph/list"},{"title":"Move","icon":"arrow-right-arrow-left","href":"/cli/monograph/move"},{"title":"Fetch Schema","icon":"file-code","href":"/cli/monograph/fetch"},{"title":"Changelog","icon":"bullhorn","href":"/cli/monograph/changelog"},{"title":"Migrate","icon":"arrow-right-arrow-left","href":"/cli/monograph/migrate"},{"group":"Version","icon":"code-branch","pages":[{"title":"Version","sidebarTitle":"Overview","icon":"circle-info","href":"/cli/monograph/version"},{"title":"Get","icon":"download","href":"/cli/monograph/version/get"},{"title":"Set","icon":"upload","href":"/cli/monograph/version/set"}]}]},{"group":"Router","icon":"router","pages":[{"title":"Router","icon":"circle-info","sidebarTitle":"Overview","href":"/cli/router"},{"group":"Cache","icon":"database","pages":[{"title":"Cache","icon":"circle-info","sidebarTitle":"Overview","href":"/cli/router/cache"},{"title":"Push","icon":"upload","href":"/cli/router/cache/push"}]},{"group":"Token","icon":"key","pages":[{"title":"Token","icon":"circle-info","sidebarTitle":"Overview","href":"/cli/router/token"},{"title":"Create","icon":"plus","href":"/cli/router/token/create"},{"title":"List","icon":"list","href":"/cli/router/token/list"},{"title":"Delete","icon":"trash","href":"/cli/router/token/delete"}]},{"title":"Fetch","icon":"download","href":"/cli/router/fetch"},{"title":"Compose","icon":"layer-group","href":"/cli/router/compose"},{"title":"Download Binary","icon":"file-arrow-down","href":"/cli/router/download-binary"},{"group":"Compatibility version","icon":"code-compare","pages":[{"title":"Compatibility Version","icon":"circle-info","sidebarTitle":"Overview","href":"/cli/router/compatibility-version"},{"title":"List","icon":"list","href":"/cli/router/compatibility-version/list"}]},{"group":"Router Plugin","icon":"plug","pages":[{"title":"Plugin","icon":"plug","sidebarTitle":"Overview","href":"/cli/router/plugin"},{"title":"Init","icon":"file-circle-plus","href":"/cli/router/plugin/init"},{"title":"Create","icon":"plus","href":"/cli/router/plugin/create"},{"title":"Delete","icon":"trash","href":"/cli/router/plugin/delete"},{"title":"Build","icon":"hammer","href":"/cli/router/plugin/build"},{"title":"Generate","icon":"code","href":"/cli/router/plugin/generate"},{"title":"Publish","icon":"upload","href":"/cli/router/plugin/publish"},{"title":"Test","icon":"vial","href":"/cli/router/plugin/test"}]}]},{"group":"gRPC Service","icon":"network-wired","pages":[{"title":"gRPC Services","icon":"network-wired","sidebarTitle":"Overview","href":"/cli/grpc-service"},{"title":"Init","icon":"file-circle-plus","sidebarTitle":"Init","href":"/cli/grpc-service/init"},{"title":"List Templates","icon":"download","sidebarTitle":"List Templates","href":"/cli/grpc-service/list-templates"},{"title":"Generate","icon":"vial","sidebarTitle":"Generate","href":"/cli/grpc-service/generate"},{"title":"Create","icon":"plus","href":"/cli/grpc-service/create"},{"title":"Publish","icon":"upload","href":"/cli/grpc-service/publish"},{"title":"Delete","icon":"trash","href":"/cli/grpc-service/delete"}]},{"group":"Auth","icon":"key","pages":[{"title":"Auth","sidebarTitle":"Overview","icon":"circle-info","href":"/cli/auth"},{"title":"Login","icon":"right-to-bracket","href":"/cli/auth/login"},{"title":"Whoami","icon":"user","href":"/cli/auth/whoami"},{"title":"Logout","icon":"right-from-bracket","href":"/cli/auth/logout"}]},{"group":"Operations","icon":"get-pocket","pages":[{"title":"Operations","icon":"circle-info","sidebarTitle":"Overview","href":"/cli/operations"},{"title":"Push","icon":"arrow-up-right","href":"/cli/operations/push"}]},{"group":"Clients","icon":"laptop-mobile","pages":[{"title":"Clients","icon":"circle-info","sidebarTitle":"Overview","href":"/cli/clients"},{"title":"List","icon":"list","href":"/cli/clients/list"},{"title":"Delete","icon":"trash","href":"/cli/clients/delete"}]},{"group":"Schema Contracts","icon":"file-signature","pages":[{"title":"Schema Contracts","icon":"circle-info","sidebarTitle":"Overview","href":"/cli/schema-contracts"},{"title":"Create","icon":"plus","href":"/cli/schema-contracts/create"},{"title":"Update","icon":"pen-to-square","href":"/cli/schema-contracts/update"},{"title":"Delete, List, Fetch And More","icon":"ellipsis","href":"/cli/schema-contracts/delete-list-fetch-and-more"}]},{"group":"Feature Subgraph","icon":"feather","pages":[{"title":"Feature Subgraph","icon":"circle-info","sidebarTitle":"Overview","href":"/cli/feature-subgraph"},{"title":"Create Feature Subgraph","icon":"plus","href":"/cli/feature-subgraph/create-feature-subgraph"},{"title":"Publish Feature Subgraph","icon":"upload","href":"/cli/feature-subgraph/publish-feature-subgraph"},{"title":"Update Feature Subgraph","icon":"pen-to-square","href":"/cli/feature-subgraph/update-feature-subgraph"},{"title":"Delete Feature Subgraph","icon":"trash","href":"/cli/feature-subgraph/delete-feature-subgraph"}]},{"group":"Feature Flags","icon":"flask-vial","pages":[{"title":"Feature Flags","icon":"circle-info","sidebarTitle":"Overview","href":"/cli/feature-flags"},{"title":"Create Feature Flag","icon":"plus","href":"/cli/feature-flags/create-feature-flag"},{"title":"Disable Feature Flag","icon":"minus","href":"/cli/feature-flags/disable-feature-flag"},{"title":"Enable Feature Flag","description":"How to enable a feature flag.","icon":"check","href":"/cli/feature-flags/enable-feature-flag"},{"title":"Update Feature Flag","icon":"pen-to-square","href":"/cli/feature-flags/update-feature-flag"},{"title":"Delete Feature Flag","description":"How to delete a feature flag","icon":"trash","href":"/cli/feature-flags/delete-feature-flag"}]},{"title":"Cosmo MCP Server","sidebarTitle":"Cosmo MCP Server","icon":"wand-sparkles","href":"/cli/mcp"},{"group":"Proposal","icon":"file-circle-plus","pages":[{"title":"Proposal","sidebarTitle":"Overview","icon":"circle-info","href":"/cli/proposal"},{"title":"Create","icon":"plus","href":"/cli/proposal/create"},{"title":"Update","icon":"pen-to-square","href":"/cli/proposal/update"},{"title":"Update Status","icon":"arrows-rotate","href":"/cli/proposal/update-status"},{"title":"Status","icon":"magnifying-glass","href":"/cli/proposal/status"}]}]}]},{"tab":"Tutorials","icon":"newspaper","pages":[{"title":"Tutorials","href":"/tutorial"}]}]},"basePath":"","title":"Update Feature Flag - WunderGraph","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["10e4515597"],"chunks":["BannerMarkdown-DcUtcwZ_.js","dist-CJ9Oly2E.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-C5EfhVm0.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js"]}