---
title: "CLI Commands"
description: "Complete command-line interface reference for curl-runner with all available commands, options, and usage examples."
category: "Configuration"
keywords:
  - curl-runner
  - http
  - api
  - testing
  - commands
  - yaml
  - variables
  - parallel
  - sequential
  - retry
  - timeout
  - headers
  - response
  - request
  - cli
  - environment
slug: "/docs/cli-commands"
toc: true
date: "2026-06-10T19:35:03.603Z"
lastModified: "2026-06-10T19:35:03.603Z"
author: "alexvcasillas"
authorUrl: "https://github.com/alexvcasillas/curl-runner"
license: "MIT"
nav:
  label: "CLI Commands"
  category: "Configuration"
tags:
  - documentation
  - configuration
og:
  title: "CLI Commands - curl-runner Documentation"
  description: "Complete command-line interface reference for curl-runner with all available commands, options, and usage examples."
  type: "article"
  image: "/og-image.png"
schema:
  "@context": "https://schema.org"
  "@type": "TechArticle"
  headline: "CLI Commands"
  description: "Complete command-line interface reference for curl-runner with all available commands, options, and usage examples."
  datePublished: "2026-06-10T19:35:03.603Z"
  dateModified: "2026-06-10T19:35:03.603Z"
---

# CLI Commands

Complete command-line interface reference for curl-runner with all available commands, options, and usage examples.

## Basic Usage

The `curl-runner` CLI provides a simple interface for executing HTTP requests defined in YAML files.

**Basic Usage Examples**

```bash
# Run a single YAML file
curl-runner simple.yaml

# Run with verbose output
curl-runner simple.yaml --verbose

# Run multiple files
curl-runner file1.yaml file2.yaml file3.yaml

# Run all YAML files in current directory
curl-runner *.yaml

# Run all files in a directory
curl-runner tests/

# Run with short options
curl-runner tests/ -pvc
```

## Commands

## Options

Available command-line options to customize `curl-runner`'s behavior.

{option.description}

## File Patterns

`curl-runner` supports various file patterns and glob expressions for flexible file selection.

**File Pattern Examples**

```bash
# Glob patterns
curl-runner "api-*.yaml"        # Files starting with "api-"
curl-runner "**/*.yaml"         # All YAML files recursively
curl-runner "tests/**/*.yml"    # All YML files in tests/ recursively

# Directory patterns
curl-runner tests/              # All YAML/YML files in tests/
curl-runner tests/ --all        # Recursive search in tests/
curl-runner . --all             # All files recursively from current dir

# Multiple patterns
curl-runner "api-*.yaml" "user-*.yaml" tests/
```

## Execution Modes

**Execution Mode Examples**

```bash
# Sequential execution (default)
curl-runner tests/

# Parallel execution
curl-runner tests/ --execution parallel
curl-runner tests/ -p

# Continue on errors
curl-runner tests/ --continue-on-error
curl-runner tests/ -c

# Parallel + continue on error
curl-runner tests/ -pc
```

## Output Options

Control how `curl-runner` displays results and saves output data.

**Output Examples**

```bash
# Verbose output
curl-runner tests/ --verbose
curl-runner tests/ -v

# Quiet mode (suppress output)
curl-runner tests/ --quiet
curl-runner tests/ -q

# Save results to file
curl-runner tests/ --output results.json
curl-runner tests/ -o results.json

# Output format options
curl-runner tests/ --output-format json     # JSON output
curl-runner tests/ --output-format pretty   # Pretty output (default)
curl-runner tests/ --output-format raw      # Raw response bodies only

# Pretty level options (when using pretty format)
curl-runner tests/ --pretty-level minimal   # Compact output (default)
curl-runner tests/ --pretty-level standard  # Standard detail
curl-runner tests/ --pretty-level detailed  # Full detail with metrics

# Control what's shown
curl-runner tests/ --show-headers           # Include headers
curl-runner tests/ --show-metrics           # Include metrics
curl-runner tests/ --show-body false        # Hide response body

# Combine options
curl-runner tests/ --output-format pretty --pretty-level detailed --show-metrics
```

## Timeout & Retry Options

Configure timeout and retry behavior for robust request handling.

**Timeout Examples**

```bash
# Set global timeout (milliseconds)
curl-runner tests/ --timeout 10000

# Set maximum retries
curl-runner tests/ --retries 3

# Set retry delay (milliseconds)
curl-runner tests/ --retry-delay 2000

# Disable retries completely
curl-runner tests/ --no-retry

# Combine timeout and retry options
curl-runner tests/ --timeout 5000 --retries 3 --retry-delay 1000
```

## Advanced Usage

Complex examples combining multiple options and environment variables.

**Advanced Examples**

```bash
# Environment-specific execution
NODE_ENV=production curl-runner api-tests.yaml

# Using environment variables
API_KEY=secret123 curl-runner auth-tests.yaml

# Complex execution with all options
curl-runner tests/ \\
  --execution parallel \\
  --continue-on-error \\
  --verbose \\
  --timeout 30000 \\
  --retries 3 \\
  --output test-results.json \\
  --all
```

## Exit Codes

`curl-runner` returns specific exit codes to indicate execution results.

## Configuration Alternatives

> Configure curl-runner behavior using CURL_RUNNER_* environment variables
