---
title: "ezgh flags segments"
description: "Segments: reusable audiences for flag rules."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh flags segments

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh flags segments <command>
```

A segment is a reusable audience, shared by every environment of the project: targetingKeys it always includes or excludes, and rules. Flag rules target it with segmentMatch and notSegmentMatch.

Part of [`ezgh flags`](/cli/reference/flags).

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh flags segments create`](/cli/reference/flags-segments-create) | Create a segment |
| [`ezgh flags segments delete`](/cli/reference/flags-segments-delete) | Delete a segment no flag uses |
| [`ezgh flags segments get`](/cli/reference/flags-segments-get) | Show a segment: who's in it and its rules |
| [`ezgh flags segments list`](/cli/reference/flags-segments-list) | List the project's segments |
| [`ezgh flags segments update`](/cli/reference/flags-segments-update) | Change a segment |

Source: https://docs.ezghcloud.com/cli/reference/flags-segments/index.mdx
