# pw sessions rename

> Source: https://parallelworks.com/docs/cli/pw/sessions/rename

## pw sessions rename

Rename a session

### Synopsis

The **pw sessions rename** command renames a session you own.

The session keeps its ID, custom subdomain, and running state; only the
name (and the URL path derived from it) changes. Sessions that are
starting or stopping, or that are managed by an active workflow run,
can't be renamed until they settle.

```
pw sessions rename <session-name> <new-name> [flags]
```

### Examples

```
  # Rename a session
  pw sessions rename desktop_1771523513 my-desktop
```

### Options

```
  -h, --help   help for rename
```

### Options inherited from parent commands

```
      --context string         The context to use. Overrides PW_CONTEXT environment variable and current context from config.
      --platform-host string   The Parallel Works ACTIVATE platform host to use. Overrides PW_PLATFORM_HOST environment variable and the current context's server.
  -v, --verbose                Enable verbose logging
```

### SEE ALSO

* [pw sessions](/docs/cli/pw/sessions)	 - Manage sessions
