Import countries to custom taxonomy using wp-cli via the command line
- Install http://wp-cli.org/
- Change the taxonomy_name variable to whatever is your target taxonomy name
- Run the script
Warning: The script just deletes all the taxonomy terms and import the countries...
Countries were taken from https://github.com/umpirsky/country-list