Commands
Complete reference for all sreq commands.
Command Overview
| Command | Description |
|---|---|
sreq run | Make HTTP requests |
sreq init | Initialize configuration |
sreq auth | Configure provider authentication |
sreq service | Manage service configurations |
sreq env | Manage environments |
sreq config | View and validate configuration |
sreq history | View and manage request history |
sreq cache | Manage credential cache |
sreq sync | Sync credentials to cache |
sreq tui | Interactive terminal UI |
sreq version | Show version |
sreq upgrade | Self-update to latest version |
sreq completion | Generate shell completions |
Global Flags
These flags work with most commands:
| Flag | Short | Description |
|---|---|---|
--service | -s | Service name |
--env | -e | Environment (dev/staging/prod) |
--context | -c | Use a named context |
--region | -r | Override region |
--project | -p | Override project |
--app | -a | Override app |
--verbose | -v | Verbose output |
--dry-run | Preview without executing | |
--help | -h | Help for command |
Quick Examples
# Make a GET request
sreq run GET /api/v1/users -s auth-service -e dev
# Make a POST request with body
sreq run POST /api/v1/users -s auth-service -d '{"name":"test"}'
# List services
sreq service list
# View request history
sreq history
# Replay a previous request
sreq history 5 --replay
# Cache credentials for offline use
sreq sync dev
# Launch interactive TUI
sreq tui