{"repo":"wp-cli/import-command","free":true,"listed":false,"github":"https://github.com/wp-cli/import-command","clone":"git clone https://github.com/wp-cli/import-command.git","description":"Imports content from a given WXR file.","language":"PHP","stars":21,"topics":["wp-cli","wp-cli-package","wordpress","cli","import","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"wp-cli/import-command ===================== Imports content from a given WXR file. Quick links: Using Installing Contributing Support Using wp import ... --authors= [--skip= ] [--rewrite urls] [--importer= ] [--source-dir= ] Provides a command line interface to the WordPress Importer plugin, for performing data migrations. Use define( 'IMPORT DEBUG', true ); for more verbosity during importing. OPTIONS ... Path to one or more valid WXR files for importing. Directories are also accepted. A URL to a WXR file is also accepted. Use '-' to import from STDIN. --authors= 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. [--skip= ] Skip importing specific data. Supported options are: 'attachment' and 'image resize' (skip time-consuming thumbnail generation). [--rewrite urls] Change all imported URLs that currently link to the previous site so that they now link to this site Requires WordPress Importer version 0.9.1 or newer. [--importer= ] Use a custom importer class instead of the default WP Import. The class must exist and be a subclass of WP Import. [--source-dir= ] A local directory to search for attachment files before downloadin","default_branch":null,"files":null,"tree":[],"storefront":"/r/wp-cli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wp-cli/import-command/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}