httpyac CLI provides a command line interface to execute *.http and *.rest files. This can be used to quickly execute a single *.http file, but also to execute all files in a folder. httpyac supports HTTP, Rest, GraphQL, WebSocket und gRPC Requests
npm install -g httpyac
httpyac --version
> httpyac --help
usage: httpyac [options...] <file or glob pattern>
--all execute all http requests in a http file
--bail stops when a test case fails
--editor enter a new request and execute it
-e --env list of environments
--filter filter requests output (only-failed)
-h --help help
--insecure allow insecure server connections when using ssl
-i --interactive do not exit the program after request, go back to selection
--json use json output
-l --line line of the http requests
-n --name name of the http requests
--no-color disable color support
-o --output output format of response (short, body, headers, response, exchange, none)
--output-failed output format of failed response (short, body, headers, response, exchange, none)
--raw prevent formatting of response body
-r --repeat repeat count for requests
--repeat-mode repeat mode: sequential, parallel (default)
-s --silent log only request
--timeout maximum time allowed for connections
--var set variables
-v --verbose make the operation more talkative
--version version of httpyac
--editor option only works on linux and mac (see)
@user = doe
@password = 12345678
GET https://httpbin.org/basic-auth/{{user}}/{{password}}
Authorization: Basic {{user}} {{password}}