Title: Patch for wp-cli command
Last modified: August 20, 2016

---

# Patch for wp-cli command

 *  [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/patch-for-wp-cli-command-2/)
 * Here’s a [patch](https://raw.github.com/gist/3a8d73cec7a163be0c30/9d3895c740fd324a41e24bad0fc6a8669e057f67/google-sitemap-generator.diff)
   that implements a [wp-cli](http://wp-cli.org) command, with which you can rebuild
   the sitemap from the command line.
 * Example usage:
 *     ```
       $ wp google-sitemap rebuild
       ```
   
 * PS: The original author of the code is [andreascreten](https://github.com/andreascreten/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/patch-for-wp-cli-command-2/#post-3238643)
 * And here’s the command bundled as a separate plugin:
 * [https://github.com/wp-cli/google-sitemap-generator-cli](https://github.com/wp-cli/google-sitemap-generator-cli)

Viewing 1 replies (of 1 total)

The topic ‘Patch for wp-cli command’ is closed to new replies.

 * ![](https://ps.w.org/google-sitemap-generator/assets/icon-256x256.png?rev=2713572)
 * [XML Sitemap Generator for Google](https://wordpress.org/plugins/google-sitemap-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-sitemap-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-sitemap-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-sitemap-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-sitemap-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-sitemap-generator/reviews/)

## Tags

 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * 1 reply
 * 1 participant
 * Last reply from: [scribu](https://wordpress.org/support/users/scribu/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/patch-for-wp-cli-command-2/#post-3238643)
 * Status: not resolved