Payload CLI

Command-line access to Payload collections, globals and documents for AI agents

Community 13 7/wk MIT v0.6.0

Installation

pnpm add payload-cli

About

Payload CLI lets a developer or an AI coding agent list, read, create, update and delete documents in a Payload project from the terminal. It runs against the project's own config, so there is no HTTP server to start and no API key to create. Commands cover collection and global discovery, schema inspection with sample shapes for JSON fields, and bulk changes filtered by where clauses. Files can be uploaded or downloaded through upload collections, and a file passed to a field is attached to the document automatically. Output can be switched to JSON for scripts, and a dry-run flag validates a write before it touches the database.

Package info

Package name
payload-cli
Latest version
0.6.0
Unpacked size
189 kB
License
MIT
Weekly downloads
7
Last publish
Jun 1, 2026

More from aamdmn

View profile

AI chat agent that reads and edits Payload content from Telegram and other chat apps

Early Polar.sh billing integration for selling products and subscriptions

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