> ## Documentation Index
> Fetch the complete documentation index at: https://docs.poly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# poly pull

> Reference for the `poly pull` command.

Pull the latest project configuration from Agent Studio.

Examples:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
poly pull
poly pull --force
poly pull --format
poly pull --include-rtc
```

If the branch you are currently on no longer exists in Agent Studio, `poly pull` automatically switches to the `main` branch and displays a warning message with the new branch name.

| Flag | Description |
| - | - |
| `--force`, `-f` | Force pull the project, overwriting all local changes. |
| `--format` | Format resources after pulling. |
| `--include-rtc` | Also pull [Real-Time Configuration](https://docs.poly.ai/adk/reference/cli/rtc.md) for all environments. |

`--json` output shape:

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "success": true,
  "files_with_conflicts": []
}
```

If the pull leaves merge conflicts, `"success"` is `false` and the command exits non-zero.

`"new_branch_name"` and `"new_branch_id"` are added if the current branch no longer existed and the CLI switched to `main`. `"rtc"` is added when `--include-rtc` is passed, containing the result of the RTC pull.
