CLI One Liners - Deprecated

One-liners to easily change cypress configuration

Please note

Cypress 11 and 12+ deprecated agent configuration files. Please make sure to use the latest version of cy2 package. See more at

Use this CLI one-liner to change cypress configuration for all installed versions of cypress

sed -i -e 's|api_url:.*$|api_url: ""|g' /*/.cache/Cypress/*/Cypress/resources/app/packages/server/config/app.yml

Or for Windows:

ls $env:LOCALAPPDATA/Cypress/Cache -Recurse -Filter app.yml |
% { (Get-Content $_ -Raw) -replace "", "" | Out-File $_ }

Last updated