Skip to content
Documentation

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/cli

See Installation for every method.

2. Create a YAML file

api-test.yaml
# 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: 201

3. Run your requests

curl-runner api-test.yaml

Next steps

Key concepts