---
title: "ezgh folders update"
description: "Rename or move a folder."
---

> 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 folders update

{/* 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 folders update <folder> [--name n] [--parent folder | --root] [flags]
```

Rename a folder (`--name`), or move it, with what it holds, into another folder (`--parent`) or to the top of the organization (`--root`). A move can't put a folder inside itself or make the tree more than 5 deep. Moving changes nobody's access.

Part of [`ezgh folders`](/cli/reference/folders).

## Examples

```sh
ezgh folders update Payments --name Billing
ezgh folders update Payments --root
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--name` | string |  | the new name |
| `--parent` | string |  | move it into this folder, by ID, slug, name or path |
| `--root` | boolean |  | move it to the top of the organization |

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

Source: https://docs.ezghcloud.com/cli/reference/folders-update/index.mdx
