Get chrome version from command line
Get Google chrome version from command line
Get Google Chrome Version from Command Line[edit]
Windows[edit]
1. Check the Chrome Installation Paths. Common Chrome Installation Paths:
- C:\Program Files\Google\Chrome\Application\chrome.exe
- C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
- %LOCALAPPDATA%\Google\Chrome\Application\chrome.exe (Usually expands to: C:\Users\<username>\AppData\Local\Google\Chrome\Application\chrome.exe)
The following examples use "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" as the installation path
2. Open Windows PowerShell
3. Enter one of the following commands[1]:
```powershell
# Method 1
powershell -command "& {(Get-Item 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe').VersionInfo.FileVersion}"
# Method 2 (shorter)
(Get-Item 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe').VersionInfo.FileVersion
```
4. Or using Command Prompt (cmd.exe):
```batch # Method 1: Get version from executable file wmic datafile where "name='C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'" get Version /value # Method 2: Get version from registry reg query "HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon" /v version ```
Example output of powershell:
131.0.6778.265
| Example output of wmic (click to show) | |
|---|---|
Version=131.0.6778.265 | |
| Example output of reg (click to show) | |
|---|---|
HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon
version REG_SZ 131.0.6778.265
| |
Both PowerShell and Command Prompt methods will return the same version information. Choose whichever method is more convenient for your needs.
macOS[edit]
- Open Terminal
- Enter the following command[2]:
```bash /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version ```
Example output:
``` Google Chrome 131.0.6778.265 ```
Troubleshooting[edit]
Chrome --version Command Not Working as Expected[edit]
Issue: Chrome --version Flag Launches Browser Instead of Displaying Version
``` "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --version Instead of showing the version information as expected, it simply launches the Chrome browser ```
Solution: Please use the PowerShell, WMIC, REG and other methods described in the above paragraph