Get chrome version from command line: Difference between revisions
Jump to navigation
Jump to search
(Created page with " Get Google chrome version from command line == Get Google Chrome Version from Command Line == === Windows === # Open Windows PowerShell # Enter one of the following commands: <pre> ```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 ``` </pre> Example...") |
|||
| Line 5: | Line 5: | ||
=== Windows === | === Windows === | ||
1. Open Windows PowerShell | |||
2. Enter one of the following commands: | |||
<pre> | <pre> | ||
| Line 18: | Line 19: | ||
</pre> | </pre> | ||
3. Or using Command Prompt (cmd.exe): | |||
<pre> | <pre> | ||
```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 | |||
``` | ``` | ||
</pre> | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! colspan="2" | Example output (click to show) | |||
|- | |||
| <pre>``` | |||
131.0.6778.265 | 131.0.6778.265 | ||
``` | ```</pre> | ||
</pre> | |} | ||
Both PowerShell and Command Prompt methods will return the same version information. Choose whichever method is more convenient for your needs. | |||
=== macOS === | === macOS === | ||
Revision as of 12:39, 16 January 2025
Get Google chrome version from command line
Get Google Chrome Version from Command Line
Windows
1. Open Windows PowerShell
2. Enter one of the following commands:
```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
```
3. 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 (click to show) | |
|---|---|
``` 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
- Open Terminal
- Enter the following command[1]:
```bash /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version ```
Example output:
``` Google Chrome 131.0.6778.265 ```