You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a652616
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ Use `define( 'IMPORT_DEBUG', true );` for more verbosity during importing.
22
22
23
23
<file>...
24
24
Path to one or more valid WXR files for importing. Directories are also accepted.
25
+
A URL to a WXR file is also accepted. Use '-' to import from STDIN.
25
26
26
27
--authors=<authors>
27
28
How the author mapping should be handled. Options are 'create', 'mapping.csv', or 'skip'. The first will create any non-existent users from the WXR file. The second will read author mapping associations from a CSV, or create a CSV for editing if the file path doesn't exist. The CSV requires two columns, and a header row like "old_user_login,new_user_login". The last option will skip any author mapping.
@@ -47,6 +48,17 @@ Use `define( 'IMPORT_DEBUG', true );` for more verbosity during importing.
47
48
-- Imported post as post_id #1
48
49
Success: Finished importing from 'example.wordpress.2016-06-21.xml' file.
Success: Finished importing from 'https://raw.githubusercontent.com/WordPress/theme-test-data/refs/heads/master/theme-preview.xml' file.
56
+
57
+
# Import content from STDIN
58
+
$ wp export --stdout | wp import - --authors=skip
59
+
Starting the import process...
60
+
Success: Finished importing from 'STDIN' file.
61
+
50
62
## Installing
51
63
52
64
This package is included with WP-CLI itself, no additional installation necessary.
@@ -77,6 +89,10 @@ Want to contribute a new feature? Please first [open a new issue](https://github
77
89
78
90
Once you've decided to commit the time to seeing your pull request through, [please follow our guidelines for creating a pull request](https://make.wordpress.org/cli/handbook/pull-requests/) to make sure it's a pleasant experience. See "[Setting up](https://make.wordpress.org/cli/handbook/pull-requests/#setting-up)" for details specific to working on this package locally.
79
91
92
+
### License
93
+
94
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
95
+
80
96
## Support
81
97
82
98
GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support
0 commit comments