# taggor pull

> Download the workspace's components (or one) and recreate the project. Usage, options, examples and exit codes.

## taggor pull

Download the workspace's components (or one) and recreate the project.

```sh title="Usage"
npx taggor pull [<component>] [options]
```

| Argument | What it does | Default |
| --- | --- | --- |
| `[<component>]` | Component tag or id (cmp_...); omit it to pull the whole workspace. | - |
| `--version <value>` | Version, by its id (ver_...) or its number (1.2.0); default: the newest version. | - |
| `--channel <value>` | Take the version a channel points to (production or staging). | - |
| `--dir <value>` | Folder to write (default: the project you are in, else ~/.taggor/projects/`<workspace>`). | - |
| `--force` | Write into a folder that is not empty, replacing files that exist (they are listed). | - |

Also takes the [common options](https://taggor.dev/docs/reference/cli.md#common-options): `--api-url`, `--workspace`, `--verbose`, `--store`, `--json`, `--no-input`.

```sh title="Examples"
npx taggor pull price-card
npx taggor pull price-card --channel production --dir ./price-card
```

Exit codes: `0` ok, `1` generic, `2` usage, `3` unauthenticated, `4` not_found, `5` conflict, `6` build_failed, `7` rate_limited, `8` network, `9` forbidden. [What each code means](https://taggor.dev/docs/reference/cli.md#exit-codes).
