Get chrome version from command line: Difference between revisions

From LemonWiki共筆
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...")
(No difference)

Revision as of 12:16, 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
```

Example output:

```
131.0.6778.265
```

macOS

  1. Open Terminal
  2. Enter the following command[1]:
```bash
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
```

Example output:

```
Google Chrome 131.0.6778.265
```

References