Introduction
A CLI for HTTP requests defined in YAML files. A single native binary, built in Rust, with parallel execution, response validation and variables.
curl-runner runs the HTTP requests you describe in YAML files. Instead of long curl commands or a folder of shell scripts, you keep readable request files with variables, response assertions and parallel execution, and run them locally or in CI.
It ships as a single native binary built in Rust: you do not need Bun, Node.js or curl installed to run it.
Features
- YAML configuration: define requests in plain YAML, with variables and templates.
- Fast execution: a native binary that runs requests sequentially or in parallel.
- A complete CLI: readable output, progress and clear errors.
- Flexible configuration: global settings, variable interpolation, response validation and several output formats.
Quick start
1. Install curl-runner
# macOS / Linux
curl -fsSL https://www.curl-runner.com/install.sh | bash
# Windows (PowerShell)
irm https://www.curl-runner.com/install.ps1 | iex
# Homebrew (trust the tap, then install)
brew trust alexvcasillas/tap
brew install alexvcasillas/tap/curl-runner
# npm (works with bun and pnpm too)
npm i -g @curl-runner/cliSee Installation for every method.
2. Create a YAML file
# Basic API test configuration
collection:
name: "My API Tests"
requests:
- name: "Get users"
url: "https://jsonplaceholder.typicode.com/users"
method: GET
expect:
status: 200
- name: "Create user"
url: "https://jsonplaceholder.typicode.com/users"
method: POST
headers:
Content-Type: "application/json"
body: |
{
"name": "John Doe",
"email": "john@example.com"
}
expect:
status: 2013. Run your requests
curl-runner api-test.yamlNext steps
- Installation: every install method, per platform.
- Use cases: real-world applications and examples.
- Tutorials: step-by-step guides.
- Examples: practical request files.
Key concepts
- Variables and templating: dynamic requests with variables, environment values and computed expressions.
- Global settings: execution behaviour, timeouts and defaults for every request.
- Response validation: assert status codes, headers and body content.
- Parallel execution: run requests concurrently.