---
title: Manage Flagship from the command line with Wrangler
description: Create Flagship apps, bind them to Workers, switch feature flags, and run rollouts with wrangler flagship.
image: https://edgetunnel-b2h.pages.dev/changelog-preview.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://edgetunnel-b2h.pages.dev/changelog/llms.txt  
> Use this file to discover all available pages before exploring further. 

[Skip to content](#%5Ftop) 

# Changelog

New updates and improvements at Cloudflare.

[ Subscribe to RSS ](https://edgetunnel-b2h.pages.dev/changelog/rss/index.xml) [ View RSS feeds ](https://edgetunnel-b2h.pages.dev/fundamentals/new-features/available-rss-feeds/) 

![hero image](https://edgetunnel-b2h.pages.dev/_astro/hero.CVYJHPAd_26AMqX.svg) 

[ ← Back to all posts ](https://edgetunnel-b2h.pages.dev/changelog/) 

## Manage Flagship from the command line with Wrangler

Jul 16, 2026 

[ Flagship ](https://edgetunnel-b2h.pages.dev/flagship/) 

**[Wrangler](https://edgetunnel-b2h.pages.dev/workers/wrangler/)** now includes `wrangler flagship`, a command suite for managing [Flagship](https://edgetunnel-b2h.pages.dev/flagship/) apps and feature flags from your terminal.

Create an app and, if you use it from a Worker, add it to your `wrangler.json` or `wrangler.jsonc` file as a binding:

```bash
wrangler flagship apps create "My Worker App" \
  --binding FLAGS \
  --update-config
```

Then create flags for the behavior you want to control. Flags can be booleans, strings, numbers, or JSON values:

```bash
wrangler flagship flags create <APP_ID> new-checkout


wrangler flagship flags create <APP_ID> checkout-flow \
  --variation control=old-checkout \
  --variation treatment=new-checkout \
  --default control \
  --type string
```

After a flag exists, change its default variation or use enable and disable commands as kill switches. Existing targeting rules continue to apply unless you change or clear them explicitly:

```bash
wrangler flagship flags update <APP_ID> checkout-flow --default treatment
wrangler flagship flags disable <APP_ID> checkout-flow
wrangler flagship flags enable <APP_ID> checkout-flow
```

For release workflows, use `rollout`, `split`, and `rules` to change exposure without redeploying your Worker:

```bash
wrangler flagship flags rollout <APP_ID> new-checkout \
  --to on \
  --percentage 25 \
  --by user_id


wrangler flagship flags split <APP_ID> checkout-flow \
  --weight control=80 \
  --weight treatment=20 \
  --by user_id


wrangler flagship flags rules update <APP_ID> checkout-flow \
  --priority 1 \
  --when "country equals US"
```

These commands can also be used from CI/CD pipelines, scripts, and AI agents to inspect Flagship state, update flag behavior, or roll back changes through Wrangler.

Refer to the [wrangler flagship command reference](https://edgetunnel-b2h.pages.dev/flagship/reference/wrangler-commands/) for the full command guide.

```json
{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://edgetunnel-b2h.pages.dev/changelog/post/2026-07-16-wrangler-commands/#page","headline":"Manage Flagship from the command line with Wrangler · Changelog","description":"Create Flagship apps, bind them to Workers, switch feature flags, and run rollouts with wrangler flagship.","url":"https://edgetunnel-b2h.pages.dev/changelog/post/2026-07-16-wrangler-commands/","inLanguage":"en","image":"https://edgetunnel-b2h.pages.dev/changelog-preview.png","dateModified":"2026-07-16","datePublished":"2026-07-16","publisher":{"@type":"Organization","name":"Cloudflare","url":"https://www.cloudflare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://edgetunnel-b2h.pages.dev/#website","name":"Cloudflare Docs","url":"https://edgetunnel-b2h.pages.dev/"}}
```
