≡ Menu

How to open chrome from command line

Chrome browser can be opened from command prompt by executing the command start chrome

Open chrome from command prompt

Note that the run command is chrome whereas the CMD command is start chrome

C:\>chrome
'chrome' is not recognized as an internal or external command,
operable program or batch file.

However, you can make it work from CLI too by adding the chrome installation folder to the PATH environment variable. The installation path is "c:\Program Files (x86)\Google\Chrome\Application". You can add this folder to the path by following the instructions from How to set path

How to open Chrome as a different user

Use runas command to start chrome with the credentials of another user.

C:\Users\user1>runas /user:user2 "C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe"

To start chrome as administrator of the system

C:\Users\user1>runas /user:administrator "C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe"
Enter the password for administrator:
Attempting to start C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe as user "MYPC\administrator" ...

Open a website in Chrome browser from command prompt

A website can be opened from command line by specifying the URL of the website.

start chrome www.windows-commandline.com
10 comments… add one
  • sethlin

    When setting path via command via instructions:
    setx path “%path%;c:\Program Files (x86)\Google\Chrome\Application”

    I still cannot run “chrome” via CLI
    (c:\>chrome)

    what am I missing?

    Even manually adding it via sysdm.cpl I cannot get it to run

    • admin

      You need to open a new command window after running ‘setx’ command. In the first command window, it still uses the previous value of path.

  • Long

    I want to open website in a new window rather than a new tab in existing chrome window. could not figure out how to do this. Any ideas?

  • parsia

    thx alot.

  • Madhura

    I get error when I try to run chrome as admin.

    Error Loading Extension
    Failed to load extension from: C:\Program Files (x86)\Google\Chrome\Application\51.0.2704.84\resources\gaia_auth.
    Manifest file is missing or unreadable
    • Srini

      Looks like the file was not ever created in the other account(admin). Login into the other account and run chrome once. I guess this should fix the problem.

  • Naveen

    To open chrome with incognito window run this

    start chrome /incognito
  • Yoshi

    Running in incognito mode seems to be disabling extensions. For example, adblocker extension does not function in this mode.

    • Christofer

      You need to go to chrome://extensions and checkmark the boxes for “Allow to run in Incognito” or something
      Here is a screenshot: http://i.imgur.com/vWx2RIO.png

  • Magesh

    Can any one help me out to change the chrome download directory using CLI?

Leave a Comment