---
title: "ezgh flags config get"
description: "Show a flag's targeting in an environment, as JSON."
---

> 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 config 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 config get <key> --env <environment> [flags]
```

Show a flag's whole targeting in one environment, as JSON (YAML with -o yaml): whether it's on, its off variation, individual targets, rules and default rule, its version, and whether you may change it. Edit it and give it back to `ezgh flags config set`.

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

## Examples

```sh
ezgh flags config get new-checkout --env production > checkout.json
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--env` | string |  | the environment's key (required) |

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

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