# Pull existing components

> Import a Ticket object and view into a CLI project and edit the generated source.

Bring an existing Ticket object and its All tickets view into a local Support tools project. `rippling project pull` writes editable SDK definitions and updates the root manifest. Pull works with component definitions, such as object fields and views; use the [SDK client](https://developer.rippling.com/documentation/js-sdk/getting-started) for individual records.

## Choose the source company

Install the [Rippling CLI](https://developer.rippling.com/documentation/rippling-platform/rippling-cli/get-started) and pnpm, then sign in and list your contexts.

```bash
rippling login
rippling config context list
```

This guide uses `sandbox` for the company containing `ticket__c` and the `ticket_all__c` list view from [Build and deploy a project](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/guides/create-custom-object). Replace `sandbox` with the context for your source company. You need permission to read its components. If your company uses different names, select those components in the picker.

## Create a project for live components

Scaffold an empty project because the components already exist in the source company.

```bash
rippling project init --name support-tools
cd support-tools
```

The CLI creates `rippling.manifest.ts` and installs dependencies. If you are continuing the existing Support tools project, open that directory and skip initialization. Review the overwrite section before replacing definitions you already authored locally.

## Preview the Ticket import

Run a dry pull from the project directory.

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

Select both components before finishing the picker.

1.  Select the custom-object type and find Ticket by its API name, `ticket__c`.
2.  After selecting Ticket, select **Choose another type** and select the list-view type.
3.  Find and select All tickets by its API name, `ticket_all__c`.
4.  Select **Done** after both components are selected.

Review the planned components and file changes. The dry run leaves the local project files unchanged. Select the view explicitly if an object-only selection does not include it; a custom object that you create or change must have a matching view in the deployment.

## Write and inspect the definitions

Run pull again and select the same object and view.

```bash
rippling --context sandbox project pull
```

Open the files reported by the CLI and inspect `rippling.manifest.ts`. The project should include a `defineCustomObject(...)` definition for Ticket, a `defineListView(...)` definition for All tickets, and their local references. The generated paths can differ from the scaffold's `custom-objects/ticket.ts`; use the imports in the root manifest to find the definitions.

Inspect the generated Ticket fields and list-view columns against the source company. Make changes, such as a description or view label, directly in the reported TypeScript files. If the pull adds npm dependencies, review and install them with `pnpm install` before validating or packaging the whole project.

## Update a definition already in the project

Existing definitions are kept unless you select them for replacement. When you want the source company's version to replace a local definition, use overwrite.

```bash
rippling --context sandbox project pull --overwrite
```

Select the components and review the proposed changes before confirming. A partial pull keeps the other components in the project. Review the complete manifest before deploying it to another company.

## Start from a saved package version instead

A package pull can create its own project directory and install its dependencies. Run it from the directory where you keep your projects; you do not need to initialize that destination first.

```bash
rippling --context developer-account project pull \
  --package-key support_tools \
  --version 0.1.0 \
  --output support-tools-from-package
cd support-tools-from-package
```

Use the signed-in Developer Account context for the package source. Replace `developer-account` if your publisher context has another name, and use a package key and version that exist there. The [package guide](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/packages-and-versions) creates the example `support_tools` package. Omitting `--version` selects the latest published version; an explicit version can also select a saved draft.

## Use the imported project

Validate against the intended destination before deploying changes there. For the same sandbox used in this example:

```bash
rippling --context sandbox project validate
rippling --context sandbox project deploy
```

Review the plan and confirmation prompt. To prepare a reusable release instead, [package the local project](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/packages-and-versions) without deploying it first.

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/guides/pull-existing-components

> 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.
