↑ ↓ select, Enter open, Esc close

Install and activate a WordPress language pack

Caution: This command changes the system. Understand what it does before you run it.

Adjust the values, the command updates live
user@server
wp language core install de_DE --activate --path=/var/www/vhosts/example.com/httpdocs

Downloads the core translation and sets it as the site language. The default value installs German, and de_DE_formal provides the formal German variant. Plugin and theme translations follow with wp language plugin install --all de_DE and wp language theme install --all de_DE.

Note: The language also sets the lang attribute in the HTML, which is relevant for search engines.

Also searched as

  • change wordpress language command line
  • wordpress admin in wrong language
  • install wordpress language pack

Related one-liners

All in WP-CLI

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.