Skip to content

Commit a652616

Browse files
Regenerate README file (#105)
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
1 parent e09d28a commit a652616

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Use `define( 'IMPORT_DEBUG', true );` for more verbosity during importing.
2222

2323
<file>...
2424
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.
2526

2627
--authors=<authors>
2728
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.
4748
-- Imported post as post_id #1
4849
Success: Finished importing from 'example.wordpress.2016-06-21.xml' file.
4950

51+
# Import content from a WXR file via HTTP
52+
$ wp import https://raw.githubusercontent.com/WordPress/theme-test-data/refs/heads/master/theme-preview.xml --authors=skip
53+
Starting the import process...
54+
Downloading 'https://raw.githubusercontent.com/WordPress/theme-test-data/refs/heads/master/theme-preview.xml'...
55+
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+
5062
## Installing
5163

5264
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
7789

7890
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.
7991

92+
### License
93+
94+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
95+
8096
## Support
8197

8298
GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support

0 commit comments

Comments
 (0)