Is it possible to export WordPress from command line?
I don't mean use
mysqldump to export the database, but create the xml file used to easily import to another WordPress installation.
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.
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.