In the fast-paced world of development, managing API requests efficiently can become a cumbersome task. This CLI tool streamlines the process, allowing developers to interact with APIs directly from the command line, reducing context switching and increasing productivity.
- Simple and intuitive command-line interface
- Supports GET, POST, PUT, DELETE requests
- JSON response formatting for easy reading
- Authentication handling (Bearer, Basic)
- Environment variable support for secrets
- Configurable default headers
- Response time logging for performance tracking
- Error handling and retries for failed requests
- C++ compiler (g++, clang++, etc.)
- CMake (for building the project)
-
Clone the repository: bash git clone https://github.com/yourusername/api-cli-tool.git cd api-cli-tool
-
Build the tool: bash mkdir build && cd build cmake .. make
-
Move the executable to your PATH: bash cp api-cli-tool /usr/local/bin/
To make a GET request: bash api-cli-tool get https://api.example.com/resource