---
title: "version - Xata"
description: "Command for checking Xata CLI and pgroll version"
source: "https://xata.io/docs/cli/version"
---

Skip to main content

The `version` command helps you check the current version of your Xata CLI, pgroll and pgstream.

## ​version

Get the version of the xata CLI, pgroll and pgstream.

```
xata version [--json] [-h|--help]
```

​

\--json

boolean

Output in JSON format (default: false)

​

-h, --help

boolean

Print help information and exit

## ​Global Flags

​

-h, --help

boolean

Print help information and exit

Was this page helpful?

[Previous](/docs/cli/upgrade)

[upgradeCommand for upgrading the Xata CLI](/docs/cli/upgrade)
