---
title: esc env open | CLI commands
url: /docs/esc/cli/commands/esc_env_open/
---

Open the environment with the given name.

## Synopsis

Open the environment with the given name and return the result

This command opens the environment with the given name. The result is written to
stdout as JSON. If a property path is specified, only retrieves that property.

```
esc env open [<org-name>/][/]<environment-name>[@<version>] [property path] [flags]
```

## Options

```
      --draft string        open an environment draft with --draft=<change-request-id>
  -f, --format string       the output format to use. May be 'dotenv', 'json', 'yaml', 'detailed', 'shell' or 'string' (default "json")
  -h, --help                help for open
  -l, --lifetime duration   the lifetime of the opened environment in the form HhMm (e.g. 2h, 1h30m, 15m) (default 2h0m0s)
```

## 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


