← 返回命令列表

Linux command

ali 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Run a basic load test

ali [http://host.xz]

Set custom request rate and duration

ali --rate=[500] --duration=[5m] [http://host.xz]

Send a POST request

ali --method=POST --body-file=[path/to/payload.json] [http://host.xz]

Add custom headers

ali -H "Authorization: Bearer [token]" [http://host.xz]

Export results

ali --export-to [path/to/results/] [http://host.xz]

Load test with TLS verification disabled

ali --insecure [https://host.xz]

Run at maximum speed

ali --rate=0 --duration=[30s] [http://host.xz]

说明

ali is a terminal-based HTTP load testing tool that generates HTTP load and plots the results in real-time directly in the terminal. It combines the load generation capabilities of tools like vegeta with live terminal charts showing latency, percentiles (p50, p90, p95, p99), throughput, and bytes in/out. The interactive TUI supports mouse-based zooming into charts for detailed analysis. Written in Go, ali supports HTTP/2 by default, custom TLS certificates, configurable concurrency, and result exporting for downstream analysis.

参数

-r, --rate _n_
Requests per second; 0 for max speed (default: 50)
-d, --duration _duration_
Duration of the attack; 0s for infinite (default: 10s)
-w, --workers _n_
Initial number of workers (default: 10)
-m, --method _method_
HTTP method (default: GET)
-t, --timeout _duration_
Request timeout (default: 30s)
-b, --body _string_
Request body as a string
-B, --body-file _file_
Path to file for request body
-H, --header _header_
Custom header (repeatable)
-c, --connections _n_
Max idle connections per host (default: 10000)
--export-to _dir_
Directory to export results
--insecure
Skip TLS certificate verification
--no-http2
Disable HTTP/2
-K, --no-keepalive
Disable keep-alive connections
--resolvers _addrs_
Custom DNS resolver addresses

FAQ

What is the ali command used for?

ali is a terminal-based HTTP load testing tool that generates HTTP load and plots the results in real-time directly in the terminal. It combines the load generation capabilities of tools like vegeta with live terminal charts showing latency, percentiles (p50, p90, p95, p99), throughput, and bytes in/out. The interactive TUI supports mouse-based zooming into charts for detailed analysis. Written in Go, ali supports HTTP/2 by default, custom TLS certificates, configurable concurrency, and result exporting for downstream analysis.

How do I run a basic ali example?

Run `ali [http://host.xz]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -r, --rate _n_ do in ali?

Requests per second; 0 for max speed (default: 50)