Quick Start
Get started with curl-runner in minutes. Create your first YAML configuration, run HTTP requests, and read the results.
Get up and running with curl-runner in just a few minutes. Follow these simple steps to make your first HTTP request.
1. Install curl-runner
Install using your preferred method. See Installation for every option.
curl -fsSL https://www.curl-runner.com/install.sh | bashOn Windows, use irm https://www.curl-runner.com/install.ps1 | iex. With Homebrew, trust the tap first: brew trust alexvcasillas/tap && brew install alexvcasillas/tap/curl-runner. With npm: npm i -g @curl-runner/cli.
2. Create your first YAML file
Define your HTTP request configuration.
# simple.yaml
request:
name: Get JSONPlaceholder Post
url: https://jsonplaceholder.typicode.com/posts/1
method: GET3. Run the request
Execute your configuration file.
curl-runner simple.yaml4. View the results
See the formatted output in your terminal.
ℹ Found 1 YAML file(s)
ℹ Processing: simple.yaml
✓ Get JSONPlaceholder Post [simple]
├─ GET: https://jsonplaceholder.typicode.com/posts/1
├─ ✓ Status: 200
└─ Duration: 245ms | 292.00 B
Summary: 1 request completed successfullyMore Examples
Try these more advanced examples to explore curl-runner's capabilities.
Request Collection
Execute multiple requests in sequence with shared variables.
# collection.yaml
global:
variables:
BASE_URL: https://jsonplaceholder.typicode.com
execution: sequential
requests:
- name: Get All Posts
url: ${BASE_URL}/posts
method: GET
- name: Get Specific Post
url: ${BASE_URL}/posts/1
method: GET
- name: Get Post Comments
url: ${BASE_URL}/posts/1/comments
method: GETcurl-runner collection.yamlParallel Execution
Run multiple requests simultaneously for faster execution.
# parallel.yaml
global:
execution: parallel
continueOnError: true
requests:
- name: Check API Health
url: https://jsonplaceholder.typicode.com/posts/1
method: GET
- name: Check Users Endpoint
url: https://jsonplaceholder.typicode.com/users/1
method: GET
- name: Check Albums Endpoint
url: https://jsonplaceholder.typicode.com/albums/1
method: GETcurl-runner parallel.yaml -vTips & Tricks
CLI Options
-v: enable verbose output-p: run requests in parallel-c: continue on errors--output results.json: save results
File Patterns
*.yaml: run all YAML filestests/: run all files in a directory--all: search recursivelyapi-*.yaml: pattern matching
What's Next?
Learn YAML Structure
Understand the full configuration format.
Explore Variables
Use variables and templating.
Browse Examples
Real-world use cases and patterns.
Continue Learning
Now that you've made your first request, explore these advanced features.
Response Validation
Automatically validate API responses to ensure they meet your expectations.
Request Collections
Organize multiple related requests into collections for better workflow management.
CLI Commands
Master all command-line options and flags for advanced usage.
Parallel Execution
Execute multiple requests concurrently for performance testing and faster workflows.
Installation
Install curl-runner on macOS, Linux or Windows with the install script, Homebrew, npm, cargo or a pre-built binary, then verify the install.
Real-World Use Cases
Discover how to use curl-runner for API testing, CI/CD automation, load testing, microservices monitoring, and development workflows.