Commands

Complete reference for all sreq commands.

Command Overview

CommandDescription
sreq runMake HTTP requests
sreq initInitialize configuration
sreq authConfigure provider authentication
sreq serviceManage service configurations
sreq envManage environments
sreq configView and validate configuration
sreq historyView and manage request history
sreq cacheManage credential cache
sreq syncSync credentials to cache
sreq tuiInteractive terminal UI
sreq versionShow version
sreq upgradeSelf-update to latest version
sreq completionGenerate shell completions

Global Flags

These flags work with most commands:

FlagShortDescription
--service-sService name
--env-eEnvironment (dev/staging/prod)
--context-cUse a named context
--region-rOverride region
--project-pOverride project
--app-aOverride app
--verbose-vVerbose output
--dry-runPreview without executing
--help-hHelp 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