Check out http://wp-cli.org/. It’s fantastic and I’ve used the export capability multiple times.
More information on wp-cli.
WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser.
You will most likely have to install wp-cli. You can find instructions on wp-cli.org. There are also alternative installation instructions here: https://github.com/wp-cli/wp-cli/wiki/Alternative-Install-Methods
To export your posts using wp-cli, you can use the command.
wp export
There are many options to limit the export by date, post type, category, author, etc. Most details can be found on this page: http://wp-cli.org/commands/export/
I don’t know of any other way to export an xml file from the command line.
Related Posts:
- Best practice to import/export specific pages and posts
- How to assign name the WordPress export.xml file
- How can transfer get so large when exporting data (15-16MB to over 10GB)
- ExpressionEngine Export/Import Issues
- How to pretty print XML from the command line?
- How do I export my WordPress blog as a book? [closed]
- How To Export/Import WordPress (MySQL) Database Properly Via Command-Line?
- Export all posts as individual plain txt files
- Export specific menu [duplicate]
- Import posts with featured images
- How to Create Export/Import Functionality for Plugin
- Most Flawless Way To Transfer from Dev to Prod [duplicate]
- Problem: Create a cron job to export posts to a WordPress XML file on server
- How can I get an XML export of my 1K+ posts WordPress instance?
- How do I add paragraph tags to all of my posts after relying on wpauto?
- XML export posts from one single day
- export csv functionality into my plugin
- How can I export post data in xml format?
- Export posts to csv with data from ACF custom fields
- Export a blog(not mine) as a PDF document
- export category and sub-category
- I am having trouble with article formatting when exporting/importing articles from the production to the development environments
- Export local WP install to live – help needed
- Moving wordpress site to subpage of another site
- 403 export error when exporting pages from multisite subfolder site
- Export Custom Report as CSV
- Export xml use/import images from theme directory
- Problems with WordPress Import
- UTF8 Encoding problems when exporting posts
- How to give my database to a friend for duplication in a secure way [closed]
- How to import several big Import XMLs?
- How can I export data without using any import/export plugin
- Export All Posts and Media to XML and/or Word
- Button to download export data WordPress in CSV file
- How to add a timestamp to the exported WXR filename?
- Get all post from table and put it in excel sheet
- How to replace all images within exported xml files to demo.jpg?
- Moving 2 wordpress sites to one
- How can I export Grunion Contact Form messages in an easily parsable format, e.g. CSV?
- Different way to export data from WP?
- How to export posts and keep html tags in the title
- Does doing an export moves all my posts or just a copy of it?
- wordpress export pretty permalinks and post excerpt export
- Export Posts Without Categories In An XML File
- Best Way To Locate Offending WP Table
- “No such file or directory” but it exists
- Node.js version on the command line? (not the REPL)
- How to install JQ on Mac on the command line?
- Export Pervasive to MySQL (C#)
- Looking for a clear description of Excel’s .xlsx XML format
- ImageView in circular through XML
- How to properly export an ES6 class in Node 4?
- How can I escape “&” in XML?
- git undo all uncommitted or unsaved changes
- How to recursively download a folder via FTP on Linux
- How do I escape ampersands in XML so they are rendered as entities in HTML?
- The ‘packages’ element is not declared
- android.support.design.widget.CoordinatorLayout error
- XML has empty body?
- Where does the Media Library live in the database?
- WP_User_Query and non-unique usermeta data
- Plugin or advice on how to parse XML in real-time?
- Create a Static HTML Site from WordPress
- How do I delete all generated images from my server except those currently used in posts
- Should I store external API data in my WP database or keep it as a transient?
- Export wordpress table to excel
- How to read the xml file in wordpress?
- What is the best way to export and import theme options?
- How to add an export function to a custom Option Theme Page
- Download/View Schema (or DTD) for XML Import
- Exporting just posts of a specific category
- How do i export the HTML from text widgets?
- How can I process xml file on upload?
- WP Cli will not execute on Windows
- Unknown collation when I import a dump from an existing site into a development database?
- Update Attached Image Size after Import
- How to Mirror WordPress database from Remote server to Local server
- WordPress does not import all pages and post
- How to retrieve current wordpress profile page URL?
- How to make a XML/PHP file returning custom field data from page
- How to block XML-RPC attack?
- WP http XML response HTML encoding and image display problems
- Query posts and return XML
- WordPress pages creation work distribution & then combining – Localhost XAMPP
- Not able to export large no. of posts in csv
- wp_get_attachment_url images in wrong order [closed]
- Add valid XHTML closing img tags to WordPress galleries
- Which is the correct way to migrate content from single WP to WP multisite
- Get Post ID as a separate RSS feed item
- XML FOLDER – wp_insert_post – how to assign XML variables to post
- How do I export categories, site stats, comments and posts from wordpress to excel
- how to show the tables of my plugin in the export tab of WordPress?
- Changing headers for an export from within a PHP class extension
- How can I get post text from all posts on a WordPress news site?
- Converting restricted html in comments to bbcode
- Migrate site from WordPress multisite to another WordPress multisite
- What method should I use to store my plugin data (multi level menus with options on each item)
- Make posts automatically from an Online XML file through wp cron job
- How to import and update images/galleries that point to an old site
- How to import data from another website using an API link?