Linux command
resterm 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Launch the API client TUI
resterm
Open a request file in the TUI
resterm --file [path/to/request.http]
Run requests directly from the terminal
resterm run --file [path/to/request.http]
Initialize a new workspace with samples
resterm init
Run a specific named request in an environment
resterm run --file [requests.http] --request [getUser] --env [staging]
Import a curl command into an .http file
resterm --from-curl "[curl https://example.com]"
Convert an OpenAPI 3 spec into request files
resterm --from-openapi [spec.yaml]
说明
resterm is a keyboard-driven terminal API client supporting HTTP, GraphQL, gRPC, WebSocket, and SSE. Requests are stored in plain `.http` / `.rest` files so they can be version-controlled alongside code. Features include OAuth 2.0 authentication, SSH tunnels, Kubernetes port-forwarding, conditional logic and multi-step workflows, response diffing, profiling, and streaming transcripts for WebSocket and SSE sessions.
参数
- --file _PATH_
- Target a specific request file.
- --workspace _DIR_
- Specify the workspace directory.
- --env _NAME_
- Select an environment from the workspace.
- --env-file _PATH_
- Use a dotenv file (opt-in).
- --request _NAME_
- Run a specific named request.
- --timeout _DURATION_
- Set the request timeout.
- --insecure
- Skip TLS certificate verification.
- --follow
- Follow redirects.
- --proxy _URL_
- Use the specified HTTP/HTTPS proxy.
- --recursive
- Process files recursively.
- --compare
- Run a request across multiple environments and diff responses.
- --dry-run
- Preview actions before executing.
- --force
- Replace existing files during import.
- --from-curl _CMD_
- Import a curl command as a request.
- --from-openapi _SPEC_
- Convert an OpenAPI 3 specification into request files.
- --http-out _FORMAT_
- Specify output format for responses.
- --check-update
- Check for newer releases.
- --update
- Download and install the latest version.
FAQ
What is the resterm command used for?
resterm is a keyboard-driven terminal API client supporting HTTP, GraphQL, gRPC, WebSocket, and SSE. Requests are stored in plain `.http` / `.rest` files so they can be version-controlled alongside code. Features include OAuth 2.0 authentication, SSH tunnels, Kubernetes port-forwarding, conditional logic and multi-step workflows, response diffing, profiling, and streaming transcripts for WebSocket and SSE sessions.
How do I run a basic resterm example?
Run `resterm` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --file _PATH_ do in resterm?
Target a specific request file.