Skip to content

Скептична яма за идеи

и други бележки към мене си

  • начало
  • tech
  • блог
  • здраве
  • приключения
  • ядене
  • бизнес
  • деца
  • Кой?

A few less known tricks with WP-CLI

Posted on 2021.10.16 by vloo
  1. wp cli alias allows for the definition of aliases to be used for different WordPress instances. Checkout the docs here: https://developer.wordpress.org/cli/commands/cli/alias/
  2. The structure of the commands is WP <NOUN> <VERB> --<PARAMETERS/FLAGS> Not that this is something revolutionary new, but I haven’t thought of it earlier. Now it helps me at remembering the commands a bit.
  3. wp admin opens a browser window with the login/wp-admin screen of the current site
  4. wp <command> --prompt asks you for all the possible parameters of the command, without you knowing any of them beforehand.
  5. wp core --debug outputs any errors if you are hitting an internal server error on the site. It’s a bit faster than digging in the error log.

Thanks to https://twitter.com/DjevaLoperka for the nice talk on ZG PHP Meetup for showing me this and other cool things with the CLI.

Posted in tech

Post navigation

Наблюдавай горящите хора
Fixing a broken USB memory

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: micro, developed by DevriX.