Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ wp media fix-orientation [<attachment-id>...] [--dry-run]
Creates attachments from local files or URLs.

~~~
wp media import <file>... [--post_id=<post_id>] [--post_name=<post_name>] [--file_name=<name>] [--title=<title>] [--caption=<caption>] [--alt=<alt_text>] [--desc=<description>] [--skip-copy] [--destination-dir=<destination-dir>] [--preserve-filetime] [--featured_image] [--porcelain[=<field>]]
wp media import <file>... [--post_id=<post_id>] [--post_name=<post_name>] [--file_name=<name>] [--title=<title>] [--caption=<caption>] [--alt=<alt_text>] [--desc=<description>] [--skip-copy] [--destination-dir=<destination-dir>] [--preserve-filetime] [--featured_image] [--skip-duplicates] [--porcelain[=<field>]]
~~~

**OPTIONS**
Expand Down Expand Up @@ -158,6 +158,9 @@ wp media import <file>... [--post_id=<post_id>] [--post_name=<post_name>] [--fil
[--featured_image]
If set, set the imported image as the Featured Image of the post it is attached to.

[--skip-duplicates]
If set, media files that have already been imported will be skipped.

[--porcelain[=<field>]]
Output a single field for each imported image. Defaults to attachment ID when used as flag.
---
Expand Down