---
title: "ezgh flags segments get"
description: "Show a segment: who's in it and its 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 get

{/* 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 get <key>
```

Show a segment by key (or ID): the targetingKeys it always includes and never includes, and its rules (a context matching any rule is in it).

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

## Flags

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

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