Skip to content

Instantly share code, notes, and snippets.

@atxiii
Last active February 9, 2022 14:37
Show Gist options
  • Save atxiii/ed437d101867d37c4387daf5f3109593 to your computer and use it in GitHub Desktop.
Save atxiii/ed437d101867d37c4387daf5f3109593 to your computer and use it in GitHub Desktop.
WP-CLI Commands
# Delete all Woocomerce Order (CLI v2.3.0)
wp post delete $(wp post list --field=ID --post_type="shop_order") --force
# Import Data with skip authors
wp import orders.xml --authors=skip
# Export all post type with unlimite size
wp export --post_type=any --max_file_size=-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment