---
title: "Start testing with Cypress"
url: "https://www.cypress.io/install"
description: "Install and open Cypress with npm, Yarn, pnpm, or Bun, or copy a prompt that has your AI coding agent set it up for you."
---

# Start testing with Cypress

Install Cypress from your terminal and run your first test. Need help getting started? Check out our [docs](https://on.cypress.io/install?utm_medium=website&utm_source=cypress.io&utm_content=install).

Install and open Cypress

Paste this prompt into your coding agent, or run the commands below.

AI prompt Copy prompt

Install Cypress in this project and open it. 1. Pick the package manager from the lockfile in the project root: package-lock.json (npm), yarn.lock (Yarn), pnpm-lock.yaml (pnpm), bun.lock or bun.lockb (Bun). If there is no lockfile, use npm. 2. Check that Node.js and the package manager meet the system requirements in the install guide: https://docs.cypress.io/app/get-started/install-cypress.md?utm\_medium=website&utm\_source=cypress.io&utm\_content=install-ai-prompt 3. From the project root, install Cypress as a dev dependency: - npm: npm install cypress --save-dev - Yarn: yarn add cypress --dev - pnpm: pnpm add --save-dev cypress - Bun: bun add --dev cypress 4. Confirm the Cypress binary is installed: - npm: npx cypress verify - Yarn: yarn cypress verify - pnpm: pnpm cypress verify - Bun: bunx cypress verify If verification fails because the package manager blocked Cypress's postinstall script, follow the package manager configuration steps in the install guide, then verify again. 5. Launch Cypress. \`cypress open\` keeps running until the Cypress window is closed, so start it without waiting for it to exit: - npm: npx cypress open - Yarn: yarn cypress open - pnpm: pnpm cypress open - Bun: bunx cypress open Don't create a Cypress config or spec files yourself. Cypress may show a welcome screen first. After that, I choose end-to-end or component testing in the Cypress window, and Cypress scaffolds the config for me. When you're done, tell me which package manager you used and what you changed.

npm

Yarn pnpm Bun

-   `$ npm install cypress --save-dev`
-   `$ npx cypress open`

## [](#logos)Trusted by startups and enterprises all over the world

-   [![Square logo](/images/companies/square.svg)](https://square.com/)
-   [![Cisco logo](/images/companies/cisco.svg)](https://www.cisco.com/)
-   [![ZenDesk logo](/images/companies/zendesk.svg)](https://zendesk.com/)
-   [![Extend logo](/images/companies/extend.svg)](https://www.extend.com/)
-   [![Puma logo](/images/companies/puma.svg)](https://www.puma.com/)
-   [![LaunchDarkly logo](/images/companies/launchdarkly.svg)](https://www.launchdarkly.com/)
-   [![Khan Academy logo](/images/companies/khan-academy.svg)](https://www.khanacademy.org/)
-   [![Splunk logo](/images/companies/splunk.svg)](https://www.splunk.com/)
-   [![Indeed logo](/images/companies/indeed.svg)](https://www.indeed.com/)
-   [![Hello Fresh logo](/images/companies/hello-fresh.svg)](https://www.hellofresh.com/)
-   [![Autodesk logo](/images/companies/autodesk.svg)](https://www.autodesk.com/)
-   [![Patreon logo](/images/companies/patreon.svg)](https://www.patreon.com/)
-   [![CDL logo](/images/companies/cdl.svg)](https://www.cdl.com/)
-   [![Chick-fil-A logo](/images/companies/chick-fil-a.svg)](https://www.chick-fil-a.com/)
-   [![Zocdoc logo](/images/companies/zocdoc.svg)](https://www.zocdoc.com/)
-   [![Monday.com logo](/images/companies/monday.svg)](https://www.monday.com/)
-   [![Herc Rentals logo](/images/companies/herc-rentals.svg)](https://hercrentals.com/)
-   [![Maersk logo](/images/companies/maersk.svg)](https://www.maersk.com/)
-   [![ClassDojo logo](/images/companies/classdojo.svg)](https://www.classdojo.com/)
-   [![Republic Services logo](/images/companies/republic-services.svg)](https://www.republicservices.com/)