pnpm Publish and Registry/Preview publish contents

Preview what would be published without uploading.

Section: Package Metadata and Distribution

Preview publish contents

bash
bash
pnpm publish --dry-run
Explanation

Preview what would be published without uploading.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Package Metadata and Distribution
View package metadata
Inspect package metadata from the registry.
OpenIn sheetbashsame section
View package version
Get a specific metadata field from the registry.
OpenIn sheetbashsame section
Show package info
Query package metadata fields.
OpenIn sheetbashsame section
Pack to destination directory
Write the generated tarball into a chosen directory.
OpenIn sheetbashsame section
Pack current package
Create a tarball from the current package.
OpenIn sheetbash2 tag match
Publish current package
Publish the current package to the configured registry.
OpenIn sheetbash2 tag match