Collection CLI

Runs create, update, delete and upsert on Payload collections from the terminal

Community 2 3/wk Apache-2.0 v1.4.0

Installation

pnpm add @payload-cc/payload-collection-cli

About

Collection CLI lets you create, update, delete and upsert records in any Payload collection straight from the terminal, without writing a one-off script. Writes go through Payload's Local API, so your hooks and field validations run the same way they do for changes made in application code.

Relationship fields can be filled in with a readable value such as a name, email or slug instead of a database ID. Input can be a single JSON string or a JSON Lines file, so importing many records is one command. A small mapping file sets how lookups resolve when the defaults do not fit your collections.

Package info

Package name
@payload-cc/payload-collection-cli
Latest version
1.4.0
Unpacked size
66 kB
License
Apache-2.0
Weekly downloads
3
Last publish
Mar 27, 2026

Scaffolds a new Payload project or adds Payload to an existing Next.js or TanStack app

Automated code transforms that move a Payload project past breaking changes

CLI and registry that installs wired Payload blocks into Next.js projects

Migrates WordPress posts, pages, media, SEO and redirects into Payload

Migrates WordPress sites to Payload from a WXR export file

Converts WordPress WXR exports into Astro, Next.js, Payload or Pruvious projects