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

# npx @xano/sdk site pull

> Pull each site's live code into frontend/: the build it serves (Dev, else Prod), from the source kept with it — a Studio project's app folder, an app, or plain files as built files (site.mjs + site/) — else the files it serves. One site is frontend/ and names the site in package.json; several are frontend/<site>/. Lists and confirms first; never replaces an app folder without --force, never touches xano/.

## Usage

```bash theme={null}
npx @xano/sdk site pull [site] [options]
```

## Backends

| Slot | Accepts | When omitted |
| - | - | - |
| `--on` | workspace, ephemeral, ephemeral:\<name>, local, local:\<name>, or tenant:\<name> | Nothing: name one |

## Flags

| Flag | Description |
| - | - |
| `--force` | Replace a site's app folder that is already there |
| `--yes, -y` | Write without asking (required when there is no terminal) |
| `--on <backend>` | Read this backend's sites instead of your workspace's: workspace, ephemeral, ephemeral:\<name>, local, local:\<name>, or tenant:\<name> |
| `--origin <origin>` | Xano OAuth host for `login` and a XANO\_REFRESH\_TOKEN exchange (default: \$XANO\_ORIGIN) |
| `--config <path>` | Explicit credential file (default: \$XANO\_CONFIG) |
| `--local-auth` | Use the project-local ./.xano/auth.json instead of the shared cache |

Global flags are listed in the [CLI overview](https://sdk.docs.xano.com/reference/cli.md).

***

*Generated from @xano/sdk 1.0.34.*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.