Title: How to set Test/Production mode from WP CLI?
Last modified: April 22, 2024

---

# How to set Test/Production mode from WP CLI?

 *  Resolved [T4ng](https://wordpress.org/support/users/schwipps/)
 * (@schwipps)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/how-to-set-test-production-mode-from-wp-cli/)
 * Is it possible to switch from Production to Test mode through WP CLI?
 * It would be very useful, when duplicating a website to a test/development environment.
 * Thank you!

Viewing 1 replies (of 1 total)

 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/how-to-set-test-production-mode-from-wp-cli/#post-17704859)
 * 👋 hey [@schwipps](https://wordpress.org/support/users/schwipps/)
 * From what I gather, you’d like to have a WP CLI command for duplicating a website
   to a test/development environment, and have it switch to the test mode of the
   [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
   plugin while at the test/development environment. Am I getting this?
 * This sounds like a great feature request. Feel free to submit it via the screen,
   [linked here](https://woocommerce.com/feature-requests/stripe/). Thanks!

Viewing 1 replies (of 1 total)

The topic ‘How to set Test/Production mode from WP CLI?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-stripe/assets/icon-256x256.png?rev=3177277)
 * [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/how-to-set-test-production-mode-from-wp-cli/#post-17704859)
 * Status: resolved