Updating from the CLI
Last updated
Last updated
There are two ways to update a scenario using the CLI.
Replay a scenario's requests and update the request responses
Completely overwriting the scenario with new requests and responses
Go through the main guide:
This is preferable if only the response of one or more requests changed.
The following command will replay the scenario and update the recorded responses with the newly received repsonses.
This is preferable if anything other than the request response changed.
The following will overwite the scenario with newly recorded requests and their respective responses.
Select the scenario you want to overwrite. To select the scenario, set the scenario key:
Set the Agent to record mode with overwrite policy.
Enable request interception with the Agent.
Replay your scenario.
After ovewriting your scenario successfully, you can disable intercepting requests with the Agent with the following command:
You can also update your scenario key back to what it was before or you can clear it out so the Agent will not use any scenario. To clear the active scenario, run the following command: