Enabling from the CLI
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
The intercept
command is used to configure the proxy settings with the CLI. In our case, we can use it to configure stoobly-agent
to intercept and mock requests.
$ stoobly-agent intercept --help
Usage: stoobly-agent intercept [OPTIONS] COMMAND [ARGS]...
Manage request intercept
Options:
-h, --help Show this message and exit.
Commands:
configure Configure intercept
disable Disable intercept
enable Enable intercept
show Show intercept
Run 'stoobly-agent intercept COMMAND --help' for more information on a
command.
Here's the configure
sub-command to configure the proxy mode and policy.
$ stoobly-agent intercept configure --help
Usage: stoobly-agent intercept configure [OPTIONS]
Configure intercept
Options:
--mode [mock|record|replay]
--policy [all|found]
-h, --help Show this message and exit.