Skip to main content

How to Check Which Version of uv You Have

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

uv, the Python package and project manager from Astral, prints its version with uv --version or uv self version. Both answer the same question, "is uv installed, and which release is it?", which is the first thing a tutorial asks you to check. The similar-looking uv version, without self, answers a different one: it prints your project's version. This guide runs all of them with uv 0.13.10.

Syntax​

Syntax
uv --version
uv self version [--short] [--output-format json]
PartWhat it means
--versionuv's help describes it as "Display the uv version". It also has a short form, -V
self versionThe same answer as a command of its own; uv help self version says "Display uv's version"
--short"Only print the version": the number without anything around it
--output-format jsonPrints the version as JSON, for scripts that read it

The Example​

There's nothing to set up. Open a terminal in any folder that isn't a Python project and run the commands. The last step creates a small project called my-app, to show what uv version does inside one.

Step 1: Print uv's Version​

Terminal
uv --version
Output
uv 0.13.10 (e3e7c1eac 2026-11-24 aarch64-apple-darwin)
Terminal
uv self version
Output
uv 0.13.10 (e3e7c1eac 2026-11-24 aarch64-apple-darwin)

The terminal after uv --version and uv self version: both print uv 0.13.10 (e3e7c1eac 2026-11-24 aarch64-apple-darwin).

Both print the same line. 0.13.10 is the version. In brackets come the short ID of the commit uv was built from, the date of that commit, and the platform the program was built for: aarch64-apple-darwin is a Mac with Apple silicon. If the terminal can't find a command called uv, uv isn't installed, or the folder it was installed in isn't on your PATH yet; the installation page has the installer for every system. The commands work unchanged in PowerShell.

Step 2: Print Only the Number, or JSON​

Terminal
uv self version --short
Output
0.13.10
Terminal
uv self version --output-format json
Output
{
"package_name": "uv",
"version": "0.13.10",
"commit_info": {
"short_commit_hash": "e3e7c1eac",
"commit_hash": "e3e7c1eacb980339352a5ad69affcd3b6c206c92",
"commit_date": "2026-11-24",
"last_tag": null,
"commits_since_last_tag": 0
},
"target_triple": "aarch64-apple-darwin"
}

The terminal after uv self version --short, which prints 0.13.10, and uv self version --output-format json, which prints the package name, version, commit details and target triple as JSON.

--short is handy when you compare versions or write the number into a file. The JSON holds the same facts as Step 1, each under its own name, plus the full commit ID.

Step 3: Don't Confuse It with uv version​

Run uv version, without self, in the same folder:

Terminal
uv version
Output
error: No `pyproject.toml` found in current directory or any parent directory

hint: If you meant to view uv's version, use `uv self version` instead

The terminal after uv version outside a project: an error says no pyproject.toml was found, and a hint suggests uv self version instead.

uv version reads a project's pyproject.toml, and this folder has none. The hint names the command you probably wanted. Inside a project it works, so create one and try again there:

Terminal
uv init --python 3.14 --no-package my-app
cd my-app
uv version
Output
Initialized project `my-app` at `/Users/you/source/uv-version-check/my-app`
my-app 0.1.0

The terminal in the my-app folder after uv version: it prints my-app 0.1.0.

my-app 0.1.0 is the project's name and its own version, the version = "0.1.0" line that uv init wrote into pyproject.toml. It says nothing about uv. The uv guide to projects puts it this way: "The uv version command can be used to read your package's version."

Common Mistakes​

MistakeWhat happensDo this instead
Running uv version to check uvOutside a project, an error that no pyproject.toml was found; inside one, the project's version, such as my-app 0.1.0Run uv --version or uv self version
Reading my-app 0.1.0 as uv's versionYou think uv is at 0.1.0That's the project. uv's version starts with uv, as in uv 0.13.10

FAQ​

How do I update uv?​

It depends on how you installed it. The installation page says: "When uv is installed via the standalone installer, it can update itself on-demand", with uv self update. "When another installation method is used, self-updates are disabled", so use that tool's own upgrade command instead; for uv installed with pip, the page gives pip install --upgrade uv. Check the version again afterwards with uv --version.

Is there a shorter way to type it?​

Yes: uv -V, with a capital V, is the short form of --version. It printed the same uv 0.13.10 (e3e7c1eac 2026-11-24 aarch64-apple-darwin).

Conclusion​

uv --version and uv self version both printed uv 0.13.10 (e3e7c1eac 2026-11-24 aarch64-apple-darwin). --short gave the bare number and --output-format json gave the same details as JSON. uv version, without self, failed outside a project and printed my-app 0.1.0 inside one, because it reports the project's version, not uv's.

Additional Resources​