How to Check Which Version of uv You Have
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
uv --version
uv self version [--short] [--output-format json]
| Part | What it means |
|---|---|
--version | uv's help describes it as "Display the uv version". It also has a short form, -V |
self version | The 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 json | Prints 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
uv --version
uv 0.13.10 (e3e7c1eac 2026-11-24 aarch64-apple-darwin)
uv self version
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
uv self version --short
0.13.10
uv self version --output-format json
{
"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"
}

--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:
uv version
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

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:
uv init --python 3.14 --no-package my-app
cd my-app
uv version
Initialized project `my-app` at `/Users/you/source/uv-version-check/my-app`
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
| Mistake | What happens | Do this instead |
|---|---|---|
Running uv version to check uv | Outside a project, an error that no pyproject.toml was found; inside one, the project's version, such as my-app 0.1.0 | Run uv --version or uv self version |
Reading my-app 0.1.0 as uv's version | You think uv is at 0.1.0 | That'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
- Installing uv — every way to install uv, and how to upgrade it.
- uv self version — the command's reference.
- Working on projects — uv's guide to projects, including
uv version.
