CLI One Liners
One-liners to easily change cypress configuration
You can easily change cypress API server URL by using NPMcy2 package. Read more.
Use this CLI one-liner to change cypress configuration for all installed versions of cypress
1
sed -i -e 's|api_url:.*$|api_url: "https://sorry-cypress-demo-director.herokuapp.com/"|g' /*/.cache/Cypress/*/Cypress/resources/app/packages/server/config/app.yml
Copied!
Or for Windows:
1
ls $env:LOCALAPPDATA/Cypress/Cache -Recurse -Filter app.yml |
2
% { (Get-Content $_ -Raw) -replace "https://api.cypress.io/", "https://sorry-cypress-demo-director.herokuapp.com/" | Out-File $_ }
Copied!
Last modified 5mo ago
Copy link