Create a Support tools project, package its Ticket object and list view as a draft, then publish and install the reviewed version. This guide includes the complete project source; you can also use the same project from Build and deploy a project. Packaging reads local source directly, so you can release the project before any deployment.
Install the CLI and choose your contexts
You need Node.js LTS and npm. Install the CLI and pnpm, which the scaffold uses for project dependencies.
npm install --global @rippling/cli@beta --@rippling:registry=https://registry.npmjs.org/
npm install --global pnpm
Sign in and list your saved contexts.
rippling login
rippling config context list
The examples use the signed-in Developer Account context, developer-account,
as the publisher and sandbox as the destination developer sandbox.
Replace these names if your saved contexts use different names.
Use a Developer Account with packages.read-write access for packaging and publication.
The sandbox account needs permission to install the components.
See CLI setup
and Accounts and contexts
for connection setup.
Check that the publisher context identifies your Developer Account.
rippling config context get --context developer-account
Create the Ticket project
Run this from the directory where you keep projects; the CLI creates support-tools.
If you already have the Support tools project, open that directory and skip initialization.
rippling project init --name support-tools --with custom-object:ticket
cd support-tools
The CLI installs dependencies and creates a root manifest plus a reusable Ticket module.
Replace custom-objects/ticket.ts with the following complete source.
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,
});
The root manifest includes both the object and its view.
Keep the scaffold comments for future rippling project add commands.
import { defineManifest } from '@rippling/rippling-sdk';
import { Ticket, TicketListView } from './custom-objects/ticket';
// rippling:imports
export default defineManifest({
components: [
Ticket,
TicketListView,
// rippling:components
],
});
If you are continuing an existing project, keep any additional components in its manifest. This example keeps the All tickets view in the package so it is installed with Ticket. The project includes Title and optional Notes fields, an All tickets view, and the object's generated category and standard schema components.
Create an unpublished version
Create the package in the publisher company from the current local files.
rippling --context developer-account project package \
--name 'Support tools' \
--type unmanaged \
--key support_tools \
--json
The first version defaults to 0.1.0.
The command stores the complete component snapshot as an unpublished draft
and creates package.manifest.ts.
Save the version ID from the JSON result.
Use that ID wherever this guide shows VERSION_ID; it is different from the number 0.1.0.
Sandbox package-version requests can require a link to the package owner
and a signed-in actor role from the Developer Account.
If packaging returns HTTP 403 with No actor role id found in request.,
the backend could not resolve that actor from the sandbox credentials.
Retry the command with your signed-in Developer Account context.
The CLI-generated package wrapper has this shape.
import { definePackageManifest } from '@rippling/rippling-sdk';
import manifest from './rippling.manifest';
export default definePackageManifest({
package: {
key: 'support_tools',
name: 'Support tools',
type: 'unmanaged',
},
version: '0.1.0',
manifest,
});
The wrapper stores the package identity, version and root manifest reference. Your component definitions stay in their own files; there is no per-component package bookkeeping to add.
Review and publish the stored draft
Read the draft's version details and save its component snapshot for inspection.
rippling --context developer-account api package-versions get --version-id VERSION_ID --json
rippling --context developer-account package version manifest \
--version-id VERSION_ID --output draft.json
Review the version number, unpublished state and contents of draft.json.
Confirm that the snapshot includes the Ticket fields and All tickets view.
A draft is a saved snapshot; later edits to local files do not alter its contents.
Publish the version you reviewed.
rippling --context developer-account api package-versions publish --version-id VERSION_ID --json
You can also select Publish new version on the package in the UI.
Publication keeps the same version ID.
The normal project package command leaves a draft for review;
--force-publish opts into publishing a newly created snapshot immediately.
Install and verify the version in a sandbox
Use the destination context and the published version's ID.
rippling --context sandbox package install --version-id VERSION_ID --json
Save the returned installation tracker ID.
Replace INSTALL_TRACKER_ID with that value to read the operation's progress.
rippling --context sandbox package installation status --tracker-id INSTALL_TRACKER_ID --json
The status command reads once and does not wait for completion. Repeat it while installation is in progress. After a successful installation, open the sandbox and check Ticket, Title, Notes and All tickets. Create a test record and confirm that the view displays it.
This guide uses an unmanaged package, the default installation mode.
For a managed package, choose --type managed on the first release.
Its install command also requires --managed, --package-key and an --install-key.
Managed installations have CLI upgrade and uninstall commands;
see the package command reference
for those options.
Release a change
Edit the Ticket definition in custom-objects/ticket.ts.
For example, update its description, then create the next patch draft.
Review the stored snapshot before publishing the new version.
rippling --context developer-account project package --bump patch --json
From 0.1.0, this creates 0.1.1.
Review the new stored snapshot, publish its new version ID,
and test that published version in the sandbox.
For an existing managed installation, use package upgrade with the new version ID.
| Version choice | Result from 0.1.0 |
|---|---|
--bump or --bump patch | Creates 0.1.1. |
--bump minor | Creates 0.2.0. |
--bump major | Creates 1.0.0. |
--version 0.3.0 | Creates the exact requested version. |
Choose either --bump or --version; they cannot be combined.
Without either flag, packaging targets the version saved in package.manifest.ts
and fails if that draft or published version already exists.
Stored component snapshots are never overwritten.
Keep the source files and package wrapper together for the next release.
Set optional post-install behavior
A package wrapper can select postInstallFunction and postInstallLandingComponent
using imported SDK definitions already included in the root manifest.
Use an SDK version that supports these options.
The selections do not add missing components to a version.
The CLI creates the snapshot, applies the supplied selections,
then publishes only if --force-publish is set.
To change selections on an existing unpublished draft,
select its key and version in package.manifest.ts, edit the selections, and run
rippling --context developer-account project package --settings-only.
Omission preserves a selection; explicit null clears the function or restores default landing behavior.
If configuration fails after a draft is created,
publication stops and the error identifies the draft.
After a failed bump, the saved version can still be the previous version.
Select the existing draft's version before using --settings-only to recover.
That command changes settings only; changed component source requires another version.
Published versions cannot be changed with --settings-only.
Continue with the project
- Pull existing components to start from a company or saved version.
- Connect components to add another view using Ticket's fields.
- Package command reference lists managed install, upgrade and status flags.