Skip to Content

Network condition simulation lets you apply artificial latency, bandwidth limits, or packet loss to proxied traffic. Use this to test how your app behaves on slow or unreliable connections without leaving your desk.

apxy network

Simulate network conditions on the running proxy

Options

-h, --help help for network

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy - Verify code changes against the HTTP requests they send
  • apxy network clear - Clear simulated network conditions
  • apxy network set - Apply simulated network conditions to proxied traffic

apxy network clear

Clear simulated network conditions

Synopsis

Remove all simulated network conditions, restoring normal proxy throughput.

apxy network clear [flags]

Examples

apxy network clear

Options

--control-url string control API URL (default "http://127.0.0.1:8081") --dry-run preview what would happen without executing --global use the global rules (~/.apxy/rules.json) instead of this workspace's (<worktree>/.apxy/rules.json): global rules apply to untagged traffic, such as browsers on the system proxy and iOS simulators, and to every workspace after its own. Outside a git worktree, rules are always global -h, --help help for clear

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy network - Simulate network conditions on the running proxy

apxy network set

Apply simulated network conditions to proxied traffic

Synopsis

Apply simulated network conditions to all proxied traffic for testing under degraded networks.

Flags: —latency artificial latency in milliseconds added to each request —bandwidth bandwidth limit in kbps (0 = unlimited) —packet-loss packet loss percentage from 0 to 100

apxy network set [flags]

Examples

apxy network set --latency 200 apxy network set --latency 500 --bandwidth 256 --packet-loss 5

Options

--bandwidth int bandwidth limit in kbps --control-url string control API URL (default "http://127.0.0.1:8081") --global use the global rules (~/.apxy/rules.json) instead of this workspace's (<worktree>/.apxy/rules.json): global rules apply to untagged traffic, such as browsers on the system proxy and iOS simulators, and to every workspace after its own. Outside a git worktree, rules are always global -h, --help help for set --latency int artificial latency in ms --packet-loss int packet loss percentage 0-100

Options inherited from parent commands

--config string config file (default is ~/.apxy/config.yaml) --error-format string error output format: text|json (default "text") --help-format string help output format: default|agent (default "default") --no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1) --output string output format: agent|human (default: auto-detect via TTY) --verbose enable verbose output

SEE ALSO

  • apxy network - Simulate network conditions on the running proxy
Last updated on