Skip to content

"--update-attachment-refs" - wrong documentation? #265

Description

@TwizzyDizzy

In the docs, there is the flag --update-attachment-refs and would, I presume, update posts with regenerated media elements. Is my understanding wrong? Am I missing something?

My WP-CLI version: 2.12.0

Error message:

root@hostname:~# sudo -u www-data /opt/wp-cli --path="/var/www/test.mydomain.de" media regenerate --yes --update-attachment-refs
Error: Parameter errors:
 unknown --update-attachment-refs parameter

Cheers
Thomas

Activity

  1. swissspidy commented on Oct 10, 2026

    @swissspidy
    Member

    Heya, we only added this vers recebtly in #242 but unfortunately updated the docs a bit too early. You can update to the nightly build to get it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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