title: How can I tell Cypress to hide Chrome when running from the command line?
body: <h2>Problem</h2>
  
  <p>I want to be able to run my tests in terminal, but all my tests fail due to Cypress using Electron as the default browser and I want it to utilize Chrome, but without having to specify it in the command line.</p>
  
  <h2>Current Outcome</h2>
  
  <p>I know I can use the command <code>npx cypress run --browser chrome</code> to tell Cypress to use Chrome instead. However, it opens the browser AND runs it in command line. </p>
  
  <h2>Expected Outcome</h2>
  
  <p>Ideally it would only require me to run <code>npx cypress run</code> and this would <strong>only</strong> run in the command line using Chrome.</p>
  
  <h2>Summary</h2>
  
  <p>Is there a way to set the default browser to Chrome instead of Electron so I wouldn't need to specify which browser to use?</p>
  
  <p>Is there something to add to the <code>package.json</code> file to set the default browser to Chrome or a line to inject somewhere? I checked the docs and I couldn't really find anything other than the <code>--browser</code> command.</p>
  
  <h2>** Cypress Github Open Issue **</h2>
  
  <p>Here is the link to the open issue on their github regarding a headless chrome and also to change the default for <code>cypress run</code></p>
  
  <p><a href="https://github.com/cypress-io/cypress/issues/832" rel="noreferrer">Support chrome headless and change defaults for cypress run</a></p>
  
  <h2>Photo for the debugger</h2>
  
  <p>Sorry for the terrible scribbles...I am under an NDA so had to go back and scratch out all the path names for my project as well as my last name.</p>
  
  <p><a href="https://i.stack.imgur.com/RQkDB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RQkDB.png" alt="enter image description here"></a></p>