Specify Browser to Use WP-CLI wp admin Command

[ad_1]

I am inexperienced with WP-CLI, which I have successfully installed on my Mac; I also used the command

wp package install wp-cli/admin-command

I can use the command

wp admin --path=/Users/bernard/Sites/wordpress

to open /wp-admin/ in the browser (when I am currently not in my wordpress directory).

However, the command will always open in my default browser (Safari). Sometimes, I would like to open /wp-admin/ in the Google Chrome browser.

my questions are:

  • is there an argument I can use with the wp admin command to specify the browser?
  • or, can the browser be specified if I create my own CLI command?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer