Installation
sreq is available for macOS, Linux, and Windows on both AMD64 and ARM64 architectures.
Quick Install (curl)
curl -fsSL https://raw.githubusercontent.com/Priyans-hu/sreq/main/install.sh | bash
Detects your OS and architecture, downloads the correct binary, and installs to /usr/local/bin.
Homebrew (macOS/Linux)
brew install Priyans-hu/tap/sreq
Go Install
If you have Go 1.21+ installed:
go install github.com/Priyans-hu/sreq/cmd/sreq@latest
Make sure $GOPATH/bin is in your PATH.
Binary Download
Download the latest release for your platform from GitHub Releases.
macOS (Apple Silicon)
curl -L https://github.com/Priyans-hu/sreq/releases/latest/download/sreq_darwin_arm64.tar.gz | tar xz
sudo mv sreq /usr/local/bin/
macOS (Intel)
curl -L https://github.com/Priyans-hu/sreq/releases/latest/download/sreq_darwin_amd64.tar.gz | tar xz
sudo mv sreq /usr/local/bin/
Linux (AMD64)
curl -L https://github.com/Priyans-hu/sreq/releases/latest/download/sreq_linux_amd64.tar.gz | tar xz
sudo mv sreq /usr/local/bin/
Linux (ARM64)
curl -L https://github.com/Priyans-hu/sreq/releases/latest/download/sreq_linux_arm64.tar.gz | tar xz
sudo mv sreq /usr/local/bin/
Windows
Download sreq_windows_amd64.zip from releases, extract, and add to your PATH.
Verify Installation
sreq version
You should see output like:
sreq version 0.1.0
Updating
Homebrew
brew upgrade sreq
Self-Update
sreq can update itself:
sreq upgrade # Update to latest version
sreq upgrade --check # Check for updates without installing
Shell Completions
Generate shell completions for your shell:
Bash
sreq completion bash > /etc/bash_completion.d/sreq
Zsh
sreq completion zsh > "${fpath[1]}/_sreq"
Fish
sreq completion fish > ~/.config/fish/completions/sreq.fish
Prerequisites
sreq requires credentials for the providers you want to use:
| Provider | Requirement |
|---|---|
| Consul | CONSUL_HTTP_TOKEN or token in config |
| AWS Secrets Manager | AWS credentials (profile, env vars, or IAM role) |
| Environment Variables | Variables set in shell |
| Dotenv | .env file in project directory |
See Configuration for detailed setup instructions.
Next Steps
- Getting Started — Make your first request
- Configuration — Set up providers and services