https://docs.cypress.io/api/plugins/before-run-api#Syntax you can use before: run API but also there is a catch here. If you are running them in parallel. This executes for each machine. If it is some kind of data gen. I would recommend you run only these steps in a separate step in CI/CD either by having these entries in a separate config.ts or pass the spec files as part of arguments. Later you need to add these to ignore files for the main run.