Home > Article > Web Front-end > Introducing Agas .0
I'm excited to announce the release of Agas version 1.0.0, a powerful and flexible tool designed to simplify HTTP requests from the terminal. Whether you're testing APIs, working with GraphQL, or managing RESTful services, Agas provides a streamlined interface for making requests without the need for a web browser or additional software.
Agas is a command-line HTTP client built to offer flexibility, ease of use, and customization. It allows developers to perform complex HTTP operations with simple commands. It supports GET, POST, PUT, DELETE requests, and provides options for setting custom headers, request bodies, and more.
Agas simplifies complex HTTP requests by providing a user-friendly command-line interface. You can perform actions such as sending GET or POST requests by running a single command:
agas @get http://localhost:3000/ -d '{"key": "value"}' -H "Authorization: Bearer token"
Agas is Docker-ready, making it easy to deploy and use in containerized environments. Simply pull the Docker image and run Agas directly from your terminal:
docker pull bitsgenix/agas docker run agas
For users who prefer not to use Docker, Agas can be installed locally. By cloning the repository and running a simple install command, you can integrate Agas into your system:
git clone https://github.com/m-mdy-m/agas.git cd agas sudo make install
Once installed, Agas becomes available as a global command, allowing you to run HTTP requests from any terminal session.
Agas supports the inclusion of custom headers and request data, making it ideal for working with APIs requiring authentication, tokens, or other custom configurations:
agas @post http://api.example.com/resource -d '{"data": "value"}' -H "Authorization: Bearer YOUR_TOKEN"
Agas offers options to control how and where the output is displayed. You can see detailed request and response summaries, including status codes, response time, data size, and the full response body.
Agas is optimized for speed and efficiency, making it an excellent tool for testing and debugging applications during development. It’s lightweight and designed to execute commands quickly, providing feedback in real-time.
Whether you are on Linux, macOS, or Windows (via WSL or Docker), Agas works seamlessly across platforms, ensuring developers can use it regardless of their operating system.
Agas is perfect for developers who need a quick, reliable way to test and interact with APIs. It reduces the overhead of using external tools like Postman or Insomnia and integrates effortlessly into any CI/CD pipeline, making it a practical solution for automation and scripting tasks.
To start using Agas, you have two options:
docker pull bitsgenix/agas docker run agas
git clone https://github.com/m-mdy-m/agas.git cd agas sudo make install
After installation, simply type agas in your terminal to start using the tool.
Agas 1.0.0 is a versatile, efficient, and customizable solution for developers who need to interact with HTTP APIs from the terminal. Its ease of use, cross-platform compatibility, and support for Docker make it a valuable tool for any developer’s workflow. Explore the full potential of Agas and simplify your HTTP requests today.
For more details, visit the repository:
Agas GitHub Repository
The above is the detailed content of Introducing Agas .0. For more information, please follow other related articles on the PHP Chinese website!