# Manage Folders

You can create, list, update, and delete workspace folders from the command line.

## List Folders

```bash
roboflow folder list
```

With JSON output:

```bash
roboflow folder list --json
```

## Get Folder Details

```bash
roboflow folder get <folder-id>
```

```bash
roboflow folder get <folder-id> --json
```

## Create a Folder

```bash
roboflow folder create "Training Data"
```

### Options

| Flag         | Description                            |
| ------------ | -------------------------------------- |
| `--parent`   | Parent folder ID (for nesting)         |
| `--projects` | Comma-separated project IDs to include |

Example with projects:

```bash
roboflow folder create "Q2 Models" --projects my-project,other-project
```

## Update a Folder

Rename a folder:

```bash
roboflow folder update <folder-id> --name "New Name"
```

## Delete a Folder

```bash
roboflow folder delete <folder-id>
```

## JSON Output

All folder commands support `--json` for structured output:

```bash
roboflow folder list --json | jq '.[].name'
roboflow folder create "My Folder" --json
```

Exit codes: 0 = success, 1 = error, 2 = auth error, 3 = not found.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/developer/command-line-interface/manage-folders.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
