Back to Docs

yapi stress

Load test a yapi config file with concurrent requests

yapi stress [file] [flags]

Options

  -d, --duration string    Duration to run test (e.g., 10s, 1m) - overrides num-requests
  -e, --env string         Target environment from yapi.config.yml
  -h, --help               help for stress
  -n, --num-requests int   Total number of requests to make (default 100)
  -p, --parallel int       Number of concurrent requests (default 1)
  -y, --yes                Skip confirmation prompt

Options inherited from parent commands

      --binary-output   Display binary content to stdout (by default binary content is hidden when outputting to a terminal)
      --no-color        Disable color output
  -u, --url string      Override the URL specified in the config file

SEE ALSO

  • yapi - yapi is a unified API client for HTTP, gRPC, and TCP
Auto generated by spf13/cobra on 18-Dec-2025