Currents CLI
Using currents CLI tool for running cypress tests with Currents dashboard
currents CLI tool is a lightweight wrapper for cypress command. It allows running cypress tests and using Currents dashboard for parallelization and recording of the tests.
currents CLI is available as part of @currents/cli NPM package.
Please note:currents needs cypress to work correctly - so you will need to install both packages from NPM
1
npm install @currents/cli cypress
Copied!

How to use currents CLI?

Use currents the same way you're using cypress commands - it accepts exactly the same flags. In fact, currents is just running cypress behind the scenes.
1
$ npx currents --help ✖ ✹ ✭
2
3
[currents] Running cypress with API URL: https://cy.currents.dev
4
5
Usage: cypress <command> [options]
6
7
Options:
8
-v, --version prints Cypress version
9
-h, --help display help for command
10
11
Commands:
12
help Shows CLI help and exits
13
version prints Cypress version
14
open [options] Opens Cypress in the interactive GUI.
15
run [options] Runs Cypress tests from the CLI without the GUI
16
open-ct [options] Opens Cypress component testing interactive mode.
17
run-ct [options] Runs all Cypress Component Testing suites
18
install [options] Installs the Cypress executable matching this package's version
19
verify [options] Verifies that Cypress is installed correctly and executable
20
cache [options] Manages the Cypress binary cache
21
info [options] Prints Cypress and system informationbas
Copied!
Please note: currents CLI is intended to be used in CI environments, using it for running cypress tests interactively is not recommended
Behind the scenes, currents CLI tools changes the configuration of cypress runner to use Currents servers (https://cy.currents.dev) for parallelization and recordings.

How to revert the changes to cypress configuration?

Remove cypress NPM package and reinstall it from scratch - that will restore the original cypress configuration.