# Cypress Documentation
# Source: https://raw.githubusercontent.com/cypress-io/cypress-documentation/main/docs/api/cypress-api/version.mdx
# Path: docs/api/cypress-api/version.mdx

---
title: 'Cypress.version | Cypress Documentation'
description: Get the current version of Cypress you are running.
sidebar_label: version
---

<ProductHeading product="app" />

# Cypress.version

`Cypress.version` returns you the current version of Cypress you are running.

## Syntax

```javascript
Cypress.version // '1.1.0'
```

## Examples

### Conditionals

```javascript
const semver = require('semver')

if (semver.gte(Cypress.version, '1.1.3')) {
  it('has Cypress.platform', () => {
    expect(Cypress.platform).to.be.a('string')
  })
}
```

:::note

**Hint:** you can use [semver](https://github.com/npm/node-semver#readme)
library to work with semantic versions.

:::

## See also

To find the version of the Electron component, or the bundled Node version, use
the Cypress CLI command
[cypress version](/app/references/command-line#cypress-version).