Skip to content

Add --force flag to wp plugin list and wp theme list #183

@baizmandesign

Description

@baizmandesign

Hi! Here's a proposal to add a new option to wp plugin list and wp theme list: --force.

Why am I proposing this option? Because when I list plugins or themes, WP CLI first checks the "_site_transient_update_{type}s" transient in the options database. (This transient seems to get updated on an occasional basis, but I'm uncertain of its refresh interval.) This often leads to misleading information when checking for available plugin and theme updates. The idea behind --force would delete the transient, forcing the system to fetch the latest version information before displaying it.

Example usage:

$ wp plugin list --force

The name --force may not be the most appropriate choice as it doesn't fully explain what the command is doing and why it's needed. Maybe --force-update or --refresh might work better?

If this gets approved, I could take a crack at authoring it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions