Title: 2 CLI Command Questions
Last modified: August 16, 2018

---

# 2 CLI Command Questions

 *  Resolved [pablog](https://wordpress.org/support/users/pablogutierrez/)
 * (@pablogutierrez)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/2-cli-command-questions/)
 * Hi!
 * We have been using MailChimp User Sync for some months and is GREAT!
 * However, we have the following 2 questions related to CLI Commands:
 * 1. We see the text “There are XXXX background jobs waiting to be processed.” 
   and we are trying to clean the queue with wp mailchimp-sync process-queue command.
   We don’t know too much about how to execute this commands but we are giving it
   a try with WinSCP. The question is: from which specific directory should we execute
   this command? Any guide we can use?
 * 2. If last step is succesful, we would like to create a cron for this process
   queue command (auto-sync is not working for us). What would be the whole string(
   command) we should setup as a cron to execute this?
 * Thanks a lot for your help and support.

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

 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/2-cli-command-questions/#post-10632475)
 * Hi Pablo,
 * The plugin should actually automatically process jobs in the queue using the 
   default WP Cron system, so it should not be necessary to call the WP CLI command
   manually. If you install a plugin like WP Cron Manager, do you see the “mailchimp_sync_process_queue”
   action scheduled?
 * That said, a server cronjob can be a bit more performant and reliable so if you
   want then you can surely set one up of course. If you have SSH access to your
   server then make sure you have [WP CLI installed](https://wp-cli.org/#installing),
   navigate to the root directory of your WordPress installation and run the command:
 *     ```
       wp mailchimp-sync process-queue
       ```
   
 * In a cronjob, this should look something like this to run the command every minute:
 *     ```
       * * * * * cd /path/to/wordpress && /usr/local/bin/wp mailchimp-sync process-queue
       ```
   
 * Hope that helps. Good luck!
    -  This reply was modified 7 years, 9 months ago by [Danny van Kooten](https://wordpress.org/support/users/dvankooten/).
 *  Thread Starter [pablog](https://wordpress.org/support/users/pablogutierrez/)
 * (@pablogutierrez)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/2-cli-command-questions/#post-10641646)
 * Hi Danny,
 * Thanks for your help. We installed a plugin to check the cron manager. We only
   see mailchimp_user_sync_run and mc4wp_refresh_mailchimp_lists. But we don’t see
   mailchimp_sync_process_queue.
 * Could there be an issue? We are using the latest versions.
 * Thanks a lot.

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

The topic ‘2 CLI Command Questions’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mailchimp-sync_cfeefa.svg)
 * [MC4WP: Mailchimp User Sync](https://wordpress.org/plugins/mailchimp-sync/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-sync/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-sync/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-sync/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-sync/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-sync/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [pablog](https://wordpress.org/support/users/pablogutierrez/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/2-cli-command-questions/#post-10641646)
 * Status: resolved