# Build and deploy a project

> Scaffold a Ticket project, edit its typed components, and deploy it to a sandbox.

Build a Support tools project with a Ticket custom object and an All tickets list view. The CLI creates the TypeScript workspace; you edit the generated definitions, review the change plan, and deploy it to a sandbox. The other guides use this same project and component names.

## Install the tools and choose a sandbox

You need Node.js LTS and npm. Install the CLI and pnpm, which the project scaffold uses to install dependencies.

```bash
npm install --global @rippling/cli@beta --@rippling:registry=https://registry.npmjs.org/
npm install --global pnpm
```

Sign in and list your saved contexts.

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

This guide uses `sandbox` as the context name for a developer sandbox. Replace `sandbox` with your sandbox's context name in every command. You need permission to create custom objects and views in that company. See [CLI setup](https://developer.rippling.com/documentation/rippling-platform/rippling-cli/get-started) and [Sandbox setup](https://developer.rippling.com/documentation/rippling-platform/rippling-cli/sandboxes) if you need to create a connection or sandbox.

## Create the project

Run the command from the directory where you keep your projects.

```bash
rippling project init --name support-tools --with custom-object:ticket
cd support-tools
```

The CLI installs the SDK and development dependencies, initializes Git, and creates `custom-objects/ticket.ts` plus the root `rippling.manifest.ts`. Both the Ticket object and its list view are already registered in the root manifest. Project initialization runs locally without contacting Rippling.

## Define the Ticket fields and view

Replace `custom-objects/ticket.ts` with this complete definition.

custom-objects/ticket.ts

```ts
import { defineCustomObject, defineListView, fields } from '@rippling/rippling-sdk';

export const Ticket = defineCustomObject({
  apiName: 'ticket__c',
  name: 'Ticket',
  pluralLabel: 'Tickets',
  description: 'Customer support tickets',
  fields: {
    title__c: fields.text({ label: 'Title' }),
    notes__c: fields.text({ label: 'Notes', nullable: true }),
  },
});

export const TicketListView = defineListView(Ticket, {
  apiName: 'ticket_all__c',
  name: 'All tickets',
  description: 'The support ticket queue',
  fields: [Ticket.fields.title__c, Ticket.fields.notes__c],
  orderBy: Ticket.fields.title__c,
  sortOrder: 'ASC',
  isPublic: true,
});
```

Title is required by default. Notes accepts `null` because `nullable` is `true`. `Ticket.fields.title__c` is a typed reference to this object's Title field. The list view uses that reference to select a column and sort the results.

Keep the root manifest as follows. The comments are insertion markers for future `rippling project add` commands.

rippling.manifest.ts

```ts
import { defineManifest } from '@rippling/rippling-sdk';
import { Ticket, TicketListView } from './custom-objects/ticket';
// rippling:imports

export default defineManifest({
  components: [
    Ticket,
    TicketListView,
    // rippling:components
  ],
});
```

The object includes its fields and a default category. Keep `TicketListView` in `components` so the view is deployed with the object. Every custom object the project creates or changes needs a matching list view. Use the complete API names, including the `__c` suffix.

## Review and deploy the sandbox changes

Validate against the intended sandbox before deploying.

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

Review the component names and proposed changes in the plan. In a sandbox without these components, this example produces a plan like the following.

```text
Plan: 16 to add, 0 to change, 0 to destroy, 0 unchanged.
```

The plan depends on components already present in your company. Then apply the project to the same sandbox.

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

Review and confirm the deployment prompt. Open the sandbox, find Ticket, and check the Title and Notes fields and All tickets view. Create a test record and confirm that it appears in the view.

## Continue with the project

-   [Pull existing components](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/guides/pull-existing-components) when the source starts in a company.
-   [Connect components](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/guides/components-and-references) to reuse Ticket from another module.
-   [Package and release the project](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/packages-and-versions) to create a versioned snapshot.

Deploy applies changes to one company. Packaging reads the local project directly and does not require a prior deployment.

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/guides/create-custom-object

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