mcpField
P
payload-cli

payload-cli

github.com/timschochDevelopment162 installsUpdated today
Repository

About payload-cli

A concise reference for Payload's CLI commands used in schema workflows. It is for developers who create and run migrations, check migration status, or regenerate TypeScript types.

Key features

  1. 01Create schema migrations
  2. 02Run migrations
  3. 03Check migration status
  4. 04Regenerate TypeScript types
  5. 05View CLI help

Use cases

  1. 01Create a migration after schema changes
  2. 02Apply pending migrations
  3. 03Verify migration status
  4. 04Refresh types after collection changes

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/timschoch/skilly --skill payload-cli

After installing, type/payload-cliin Claude Code to confirm it loaded.

Details

From the project README

Payload CLI

Payload ships its own CLI (run via the repo's package scripts). Schema work goes through it, never through raw SQL.

  • Create a migration after schema changes: payload migrate:create
  • Run migrations: payload migrate
  • Check migration status: payload migrate:status
  • Regenerate TS types after collection changes: payload generate:types
  • Discover more: payload --help

Check the repo's package.json — these are usually wrapped in npm scripts.

Comments

Markdown supported