wp cli aliasallows 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 adminopens a browser window with the login/wp-admin screen of the current site
wp <command> --promptasks you for all the possible parameters of the command, without you knowing any of them beforehand.
wp core --debugoutputs 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.