---
title: esc env get | CLI commands
url: /docs/esc/cli/commands/esc_env_get/
---

Get a value within an environment.

## Synopsis

Get a value within an environment

This command fetches the current definition for the named environment and gets a
value within it. The path to the value to set is a Pulumi property path. The value
is printed to stdout as YAML.

```
esc env get [<org-name>/][/]<environment-name>[@<version>]  [flags]
```

## Options

```
      --definition     Set to print just the definition.
  -h, --help           help for get
      --show-secrets   Show static secrets in plaintext rather than ciphertext
      --value string   Set to print just the value in the given format. May be 'dotenv', 'json', 'detailed', 'shell' or 'string'
```

## Options inherited from parent commands

```
      --env string   The name of the environment to operate on.
```

## SEE ALSO

* [esc env](/docs/esc/cli/commands/esc_env/)	 - Manage environments


