---
name: "pyi-grab_version"
section: "1"
platform: "linux"
package: "pyinstaller"
version: "6.13.0+ds-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pyi-grab_version"
---

# pyi-grab\_version(1)

Grab the version from a PyInstaller executable

## NAME

pyi-grab\_version - Grab the version from a PyInstaller executable

## DESCRIPTION

usage: pyi-grab\_version \[-h\] exe-file \[out-filename\]

### positional arguments:

- **exe-file**

  The full pathname of an executable (required).

- **out-filename**

  The filename where the grabbed version info will be saved.

### options:

- **-h**, **--help**

  Show this help message and exit.

The printed output may be saved to a file, edited and used as the input for a version resource on any of the executable targets in a PyInstaller .spec.
