logo

Uploading replays

When not using GitHub Actions, use the Replay CLI in your workflow to add source control metadata and upload replays to your team. This can also be used to upload replays recorded locally.
  1. Install the CLI
  1. Add metadata for all replays generated during the test run
  1. Upload replays with your API Key
Example
shell
npm i -g @replayio/replay replay metadata --init --keys source --warn replay upload-all --api-key <api key>
You can also set RECORD_REPLAY_API_KEY as an environment variable instead of passing to the upload-all command. This allows you to store the API Key in your CI provider to keep it secure.
The Replay CLI provides other commands and options, such as filtering which replays are uploaded.

Helpful?
SHARE