Title: Scripting (CLI) Delivery Mode
Last modified: August 19, 2020

---

# Scripting (CLI) Delivery Mode

 *  [markwill](https://wordpress.org/support/users/markwill/)
 * (@markwill)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/scripting-cli-delivery-mode/)
 * I like to clone my production site to a local site for testing or development
   work. All works well and I have a few scripts to automate and simplify this.
 * However, the most important change I make, on the target site, is to set Post
   SMPT’s Delivery Mode to “Log eMail and Delete”, to be sure no scheduled events
   end up delivering emails to customers. So after I create my cloned site I head
   straight to the admin UX and set that.
 * However, I would much rather script this. Is this possible to modify from WP 
   CLi? If not, is there any other creative way I can ensure that this property 
   is set automatically (or at least through some sort of script)?

The topic ‘Scripting (CLI) Delivery Mode’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [markwill](https://wordpress.org/support/users/markwill/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/scripting-cli-delivery-mode/)
 * Status: not resolved