File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ wp media fix-orientation [<attachment-id>...] [--dry-run]
109109Creates attachments from local files or URLs.
110110
111111~~~
112- 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>]]
112+ 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>]]
113113~~~
114114
115115** OPTIONS**
@@ -158,6 +158,9 @@ wp media import <file>... [--post_id=<post_id>] [--post_name=<post_name>] [--fil
158158 [--featured_image]
159159 If set, set the imported image as the Featured Image of the post it is attached to.
160160
161+ [--skip-duplicates]
162+ If set, media files that have already been imported will be skipped.
163+
161164 [--porcelain[=<field>]]
162165 Output a single field for each imported image. Defaults to attachment ID when used as flag.
163166 ---
You can’t perform that action at this time.
0 commit comments