Skip to content

Instantly share code, notes, and snippets.

@tpitre
Last active March 14, 2023 17:23
Show Gist options
  • Save tpitre/114bcb9c52ecd625c06df0e60b6cf19e to your computer and use it in GitHub Desktop.
Save tpitre/114bcb9c52ecd625c06df0e60b6cf19e to your computer and use it in GitHub Desktop.
WP CLI CSV Import with Terminus
# Loop through the CSV file and run the WP CLI command
while IFS=, read orig new; do
terminus wp pom-ool.dev --skip-themes --skip-plugins search-replace "$orig" "$new" wp_posts --include-columns=post_content --verbose
done < ool-cleanup-tab1-2.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment