# --version Flag

> It prints which version of Claude Code you have.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** claude --version, claude -v

## Think of it like

It is like you look at the date on a milk box. Then you know how new it is.

## Definition

--version prints which version of Claude Code you have, then exits. -v is the short form. Check it before you report a bug, or when a guide says a feature needs a certain version. claude update moves you to the newest one.

## Example

A guide says --restricted needs version 2.1.248. Emma runs claude -v, sees an older number, and runs claude update first.

## Example code

```bash
claude -v
```

Print the version number.

## Why it matters

Many features and fixes need a certain version. This tells you in a second if you have it.

## Common mistake

Typing -V or --v. The short form is a small -v.

## Three principles

- **Prints and exits.** No session.
- **-v.** Short form.
- **Before a bug report.** Check it.

## Related terms

- [claude update Command](https://learn.benibix.com/term/ai/claude-update-command)
- [claude doctor Command](https://learn.benibix.com/term/ai/claude-doctor-command)

## Taught in

- [Slash Commands and the CLI](https://learn.benibix.com/learn/ai-claude-code-commands/slash-commands-and-the-cli): Claude Code Commands, 1/17

---

Source: https://learn.benibix.com/term/ai/version-flag
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
