Title: WISHLIST: Command line / wp-cli integration
Last modified: August 30, 2016

---

# WISHLIST: Command line / wp-cli integration

 *  [indietravel](https://wordpress.org/support/users/indietravel/)
 * (@indietravel)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wishlist-command-line-wp-cli-integration/)
 * Hi,
 * I’m a developer currently working with an inherited site. About 220,000 images
   uploaded at 4000-8000px wide.
 * Imsanity is a good way to block this happening moving forward, but I’d love to
   use the same toolkit to go back through and tidy things up.
 * At the moment, the only option is a 250-image per pageload bulk-change option;
   that’s cool, but about 1000 pageloads on this site!
 * I’d love a wp-cli community package for Imsanity, so I could run this from the
   command line; saving a bunch of time and (in the future) perhaps forming part
   of our deployment solution.
 * Anyone keen to pick this up? I’d be a keen beta tester.
 * [https://wordpress.org/plugins/imsanity/](https://wordpress.org/plugins/imsanity/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Jason](https://wordpress.org/support/users/verysimple/)
 * (@verysimple)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wishlist-command-line-wp-cli-integration/#post-6260019)
 * You could if you like go into the imsanity code and just change the setting at
   the top “IMSANITY_AJAX_MAX_RECORDS” from 250 to any higher number. It might cause
   the browser to hang at some upper limit – 250 is just a conservative limit. But
   I think several thousand would be possible.
 * I agree though a command-line utility would be the nice. If it’s purely disk 
   space, then imagemagick can do that already, but it won’t update the wordpress“
   quota” amount unfortunately.
 *  Thread Starter [indietravel](https://wordpress.org/support/users/indietravel/)
 * (@indietravel)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wishlist-command-line-wp-cli-integration/#post-6260040)
 * Thanks Jason, yes — I had a play around with that setting, but browser vs slow
   internet was an issue and caused some timeouts that the terminal would probably
   avoid.
 * The tie-in with imagemagick + WordPress and the reliability of Imsanity is a 
   definite plus. Do consider a wp cli add-on. It’d open this tool up to a bunch
   of developers; and when taking on existing projects that’s a huge bonus.
 * Thanks for all your work.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WISHLIST: Command line / wp-cli integration’ is closed to new replies.

 * ![](https://ps.w.org/imsanity/assets/icon.svg?rev=2420360)
 * [Imsanity](https://wordpress.org/plugins/imsanity/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/imsanity/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/imsanity/)
 * [Active Topics](https://wordpress.org/support/plugin/imsanity/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/imsanity/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/imsanity/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [indietravel](https://wordpress.org/support/users/indietravel/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/wishlist-command-line-wp-cli-integration/#post-6260040)
 * Status: not resolved