Title: WP-CLI and WooCommerce setup
Last modified: January 11, 2026

---

# WP-CLI and WooCommerce setup

 *  Resolved [alainroger](https://wordpress.org/support/users/alainroger-1/)
 * (@alainroger-1)
 * [5 months ago](https://wordpress.org/support/topic/wp-cli-and-woocommerce-setup/)
 * Hi,
 * I’m creating a testing environment in docker with WordPress and WooCommerce.
 * While I was able to speedup task with WP-CLI for WordPress, I’m having issue 
   with WooCommerce pre-answering question like the ones added.[https://ibb.co/4RDWVz5x](https://ibb.co/4RDWVz5x)
   and [https://ibb.co/NnVJF2Vr](https://ibb.co/NnVJF2Vr)
 * I found no information relative to these questions with wp wc <command>
 * So how can I pre-answer to these setup/configuration questions from command line
   to speed up testing environment creation ?
 * thx

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

 *  [Sai (woo-hc)](https://wordpress.org/support/users/saivutukuru/)
 * (@saivutukuru)
 * [5 months ago](https://wordpress.org/support/topic/wp-cli-and-woocommerce-setup/#post-18781915)
 * Hi [@alainroger](https://wordpress.org/support/users/alainroger/),
 * Those questions you’re seeing are part of the WooCommerce onboarding / setup 
   wizard, and at the moment they are not exposed as interactive options via WP-
   CLI. That’s why you’re not finding any wp wc <command> that maps to those prompts.
 * The setup wizard is primarily UI-driven and stores its answers as WordPress options,
   WooCommerce settings, and sometimes transient or task-list state. WP-CLI does
   support managing WooCommerce settings, but it does not support “answering” the
   onboarding wizard itself.
 * That said, there are a few practical ways to achieve what you’re trying to do
   in a Docker-based testing environment.
 * The most common approach is to skip the setup wizard entirely and configure WooCommerce
   directly via WP-CLI. For example, you can mark WooCommerce as installed and dismiss
   the onboarding tasks by updating the relevant options, then set all required 
   store settings explicitly using wp option update and wp wc settings commands (
   currency, country, tax, shipping, etc.). This is how most automated test environments
   handle it.
 * Another option is to import a preconfigured database or SQL dump where WooCommerce
   has already completed onboarding. This is often the fastest and most reliable
   solution for repeatable test environments, especially in CI pipelines.
 * You can also use WP-CLI to programmatically set the same values the wizard would
   normally set, such as store address, currency, product types, and payment methods.
   While this doesn’t “answer” the wizard questions, it results in the same final
   configuration state.
 * In short, there is currently no supported way to pre-answer WooCommerce’s onboarding
   questions directly from the command line. The recommended approach is to bypass
   the wizard and configure WooCommerce via WP-CLI options, settings commands, or
   a pre-seeded database.
 *  Plugin Support [thelmachido a11n](https://wordpress.org/support/users/thelmachido/)
 * (@thelmachido)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/wp-cli-and-woocommerce-setup/#post-18797655)
 * It’s been a while since we heard back from you for this reason we are closing
   this thread. 
 * If WooCommerce has been useful for your store and you appreciate the support 
   you’ve received, we’d truly appreciate it if you could leave us a quick review
   here: 
 *  [https://wordpress.org/support/plugin/woocommerce/reviews/#new-post](https://wordpress.org/support/plugin/woocommerce/reviews/#new-post)
 * Feel free to open a new forum topic if you run into any other problem. 

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-cli-and-woocommerce-setup%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

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

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [thelmachido a11n](https://wordpress.org/support/users/thelmachido/)
 * Last activity: [4 months, 2 weeks ago](https://wordpress.org/support/topic/wp-cli-and-woocommerce-setup/#post-18797655)
 * Status: resolved