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
- How to export native WordPress events in a form useful to Events Calendar
- How to export custom post type posts based on date range
- “No such file or directory” but it exists
- How do I comment out a block of tags in XML?
- Error unable to access jarfile C:\Jar
- What does
- Node.js version on the command line? (not the REPL)
- How do I comment out a block of tags in XML?
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- How to find which version of TensorFlow is installed in my system?
- What does “xmlns” in XML mean?
- How do I copy a folder from remote to local using scp?
- How to convert JSON to XML or XML to JSON?
- What does cmd /C mean?
- How do I parse command line arguments in Bash?
- What does cmd /C mean?
- How to parse XML and count instances of a particular node attribute?
- How to use XPath contains() here?
- syntax error when using command line in python
- https connection using CURL from command line
- syntax error when using command line in python
- How to install JQ on Mac on the command line?
- Using multiple delimiters in awk
- Create an empty file on the commandline in windows (like the linux touch command)
- Export Pervasive to MySQL (C#)
- Looking for a clear description of Excel’s .xlsx XML format
- Parse XML using JavaScript [duplicate]
- (Python) AttributeError: ‘NoneType’ object has no attribute ‘text’
- XSLT-FO for-each
- How do I import an SQL file using the command line in MySQL?
- How do I export whole Unity project with all scenes?
- Why do JVM arguments start with “-D”?
- How do I import an SQL file using the command line in MySQL?
- How to reload .bash_profile from the command line?
- What is the purpose of “&&” in a shell command?
- Angular – ng: command not found
- How to run SQL script in MySQL?
- java.net.MalformedURLException: no protocol
- Mysql: Setup the format of DATETIME to ‘DD-MM-YYYY HH:MM:SS’ when creating a table
- What characters do I need to escape in XML documents?
- How can I pass an argument to a PowerShell script?
- “Content is not allowed in prolog” when parsing perfectly valid XML on GAE
- Meaning of –
- Import / Export database with SQL Server Server Management Studio
- XSLT for each loop on simple XML
- Why Is `Export Default Const` invalid?
- Command Prompt “Net View System Error 6118”
- Windows 7 Symbolic Link – Cannot create a file when that file already exists
- AttributeError: ‘list’ object has no attribute ‘replace’ when trying to remove character
- Is XML a programming language?
- Convert XML to CSV file
- mkdir’s “-p” option
- How to change the output color of echo in Linux
- What is the best/simplest way to read in an XML file in Java application?