# cy2 - Deprecated

{% hint style="warning" %}
Cypress introduced a breaking change in version 12. Please use`cypress-cloud`  integration package.&#x20;

cy2 is deprecated.
{% endhint %}

`cy2` is an [NPM package](https://www.npmjs.com/package/cy2) that Integrates Cypress with alternative cloud services like Sorry Cypress or Currents by setting the environment variable `CYPRESS_API_URL.`

The command passes down to cypress all the CLI flags, so you can just use it instead of `cypress`

```bash
$ npm install -g cy2

$ export CYPRESS_API_URL="https://sorry.yourdomain.com/"
$ cy2 run --record --key XXX --parallel --ci-build-id `date +%s`
```

* Running the command above will invoke your default cypress version with the flags you've provided. It will also modify the internal cypress configuration to use a different API URL.
* If no URL is provided, it will use the default `cypress` package configuration
* On Windows set `CYPRESS_API_URL` in the CMD shell with `set CYPRESS_API_URL=https://sorry.yourdomain.com/` (Don't use quotes (`"`) because the Windows CMD takes them literally unlike the Linux shells)

{% hint style="warning" %}
MacOS Ventura users:

Running \`cy2\` in an interactive shell can fail with `EPERM: operation not permitted` unless you need to explicitly allow the shell app to modify other applications.

Add the shell app of your choice to the allowed list.

**Mac OS Settings > Privacy and Security > App Management**

<img src="/files/c7GjxcnR511KgATjVGZB" alt="cy2 EPERM - adding shell to App Management allowed list" data-size="original">
{% endhint %}

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sorry-cypress.dev/integrating-cypress/cy2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
