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/- 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. wp admin
opens a browser window with the login/wp-admin screen of the current sitewp <command> --prompt
asks you for all the possible parameters of the command, without you knowing any of them beforehand.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.