---
title: esc env rotate | CLI commands
url: /docs/esc/cli/commands/esc_env_rotate/
---

Rotate secrets in an environment

## Synopsis

Rotate secrets in an environment

Optionally accepts any number of Property Paths as additional arguments. If given any paths, will only rotate secrets at those paths.

```
esc env rotate [<org-name>/][/]<environment-name> [path(s) to rotate] [flags]
```

## Options

```
  -h, --help   help for rotate
```

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


