Skip to content

Cannot bulk import media #114

@crtl

Description

@crtl

Bug Report

I have around 2.6k images in a subdirectory inside wp-content/uploads/product_images.
I tried to import them but get the following error:

$ wp media import ./product_images/*.png --skip-copy
/.../Composer/vendor/wp-cli/wp-cli/bin/wp: line 45: /c/xampp/php/php: Argument list too long
/.../Composer/vendor/wp-cli/wp-cli/bin/wp: line 45: /c/xampp/php/php: No error

The command evaluates the blob and just appends all files as arguments for the php command which seems to be too long for php to handle.

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