{
  "doc": {
    "id": "api/cypress-api/version",
    "title": "Cypress.version | Cypress Documentation",
    "description": "Get the current version of Cypress you are running.",
    "section": "api",
    "source_path": "/llm/markdown/api/cypress-api/version.md",
    "version": "524ff5211e60b5d53e55d6ad976d83966f66e7cd",
    "updated_at": "2026-04-30T14:20:05.396Z",
    "headings": [
      {
        "id": "api/cypress-api/version#cypress-version",
        "text": "Cypress.version",
        "level": 1
      },
      {
        "id": "api/cypress-api/version#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/cypress-api/version#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/cypress-api/version#conditionals",
        "text": "Conditionals",
        "level": 3
      },
      {
        "id": "api/cypress-api/version#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "content": {
    "type": "root",
    "children": [
      {
        "type": "heading",
        "depth": 1,
        "children": [
          {
            "type": "text",
            "value": "Cypress.version"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "`Cypress.version` returns you the current version of Cypress you are running."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "Syntax"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "Cypress.version // '1.1.0'"
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "Examples"
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Conditionals"
          }
        ]
      },
      {
        "type": "code",
        "lang": null,
        "meta": null,
        "value": "const semver = require('semver')if (semver.gte(Cypress.version, '1.1.3')) {  it('has Cypress.platform', () => {    expect(Cypress.platform).to.be.a('string')  })}"
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Hint: you can use "
          },
          {
            "type": "link",
            "title": null,
            "url": "https://github.com/npm/node-semver#readme",
            "children": [
              {
                "type": "text",
                "value": "semver"
              }
            ]
          },
          {
            "type": "text",
            "value": " library to work with semantic versions."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 2,
        "children": [
          {
            "type": "text",
            "value": "See also"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "To find the version of the Electron component, or the bundled Node version, use the Cypress CLI command "
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/app/references/command-line.md#cypress-version",
            "children": [
              {
                "type": "text",
                "value": "cypress version"
              }
            ]
          },
          {
            "type": "text",
            "value": "."
          }
        ]
      }
    ]
  },
  "token_estimate": 99
}