outdated Verified current stable Not installed? Package Management

Outdated / Print Outdated Dependencies Format

Print Outdated Dependencies Format

Outputs outdated dependencies in a specified format using PNPM.

$
Terminal
pnpm outdated --format <format>

When To Use

When needing a structured output of outdated dependencies for reporting or logging.

Pro Tip

Utilize format options that best fit your logging or reporting tool; consider `json` or `csv` for automated integrations.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
pnpm outdated --format <format>

Anatomy of Output

Understanding the result

Package,Current,Wanted,Latest CSV Header Row

Describes the columns in the CSV format.

babel-loader,8.1.0,8.2.0,8.2.1 Example Outdated Package in CSV

Uses comma separators for reporting in CSV format.

Troubleshooting

Common pitfalls

Error: Invalid format specified. Must be one of: json, csv, yaml.

Solution: Confirm the format against supported options.

Error: No outdated packages found for specified format.

Solution: Ensure packages exist and are outdated.

Error: Unexpected token in output format.

Solution: Run without specifying format to revert to default.

Command Breakdown

What each part is doing

pnpm
Base Command
The executable that performs this operation. Here it runs Outdated before the shell applies any redirect operators.
<format>
format
The value supplied for format.
--format
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.