# Pull components into a Metadata project

> Status: Beta

> Copy components that you built in Rippling into a Metadata project with the Rippling CLI, or refresh your project files from Rippling.

Use `rippling project pull` to copy components from a Rippling company into your project as TypeScript. Pull components that you built in the Rippling UI, or refresh the files for components that your project already has. You can also start a project from a package.

The command copies component settings, such as an object's fields and a list view's columns. Records stay in the company that you pull from.

* * *

## Requirements

-   Get access to the [Developer Program](https://developer.rippling.com/documentation/rippling-platform/developer-program/apply) closed beta.
-   Install the latest beta [Rippling CLI](https://developer.rippling.com/documentation/rippling-platform/rippling-cli/get-started) and sign in.
-   Install Node.js LTS and pnpm.
-   Find the [CLI context](https://developer.rippling.com/documentation/rippling-platform/rippling-cli/accounts-and-contexts) for the company that has the components, with `rippling config context list`. The context needs permission to read the components. The commands below use `YOUR_CONTEXT` as the context name. Replace it with yours.
-   Open a Rippling project. To create an empty one, run `rippling project init --name my-project`.

* * *

## Pull components into your project

From the project root, preview the pull:

```bash
rippling --context YOUR_CONTEXT project pull --dry-run
```

The CLI shows an interactive list. Select a component type, then search by name or API name and select the components to pull. To pull another type, select **Choose another type**. When you finish, select **Done**. The CLI lists the components and files that it would add and leaves your project unchanged.

Then run the pull:

```bash
rippling --context YOUR_CONTEXT project pull
```

The CLI adds a TypeScript file for each new component, lists it in `rippling.manifest.ts`, and pulls the components that it depends on.

If a component is already in your project and differs from the version in Rippling, such as a list view that you renamed in the Rippling UI, the CLI shows the file changes and asks whether to overwrite your file. The default answer is No, which keeps your file. Confirming replaces the file and discards any local edits in it, so back up edits that you want to keep first. Components that match Rippling stay as they are.

To preview a replacement without writing files, add `--dry-run --overwrite`. To replace files without a prompt, such as in a script, add `--overwrite --yes`.

After the pull:

1.  Review the files that the CLI listed.
2.  If the CLI added Function dependencies, review `package.json` and run `pnpm install`.
3.  Run `rippling --context YOUR_CONTEXT project validate` to check the project.

* * *

## Start a project from a package

To create a project from a package that you own, run this command with the Developer account context that owns the package:

```bash
rippling --context developer-account project pull \
  --package-key equipment_requests_demo \
  --output equipment-requests-from-package
```

The CLI creates the project from the latest published version and installs its dependencies. Use a new or empty output directory. To create a package, see [Package and publish Metadata components](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/package-and-publish).

| Flag | What it sets |
| --- | --- |
| `--package-key` | The package to copy from. |
| `--version` | An exact version number, such as `0.1.0`. |
| `--version-id` | An exact version ID. |
| `--output` | The directory to create. It defaults to the package key. |
| `--skip-install` | Skips installing dependencies. |

`--version` and `--version-id` can select a draft. If you skip the installation, review any Function dependencies in `package.json` and run `pnpm install`.

* * *

## See also

-   [Get started with Metadata](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/get-started)
-   [Create your first Metadata components](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/build-and-deploy)
-   [Package and publish Metadata components](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/package-and-publish)
-   [CLI project commands](https://developer.rippling.com/documentation/rippling-platform/rippling-cli/projects-metadata)

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/pull-changes

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
