a simple and fast command-line curl client written in c++, performs CRUD operations in the terminal, supports custom request headers, request body and params. it can answer queries using ai. 👾
-
Http cmd structure :
bob <method-name> "url" -h "headers (each header must be seperated by ';' )" -b "request body (not available for get method)"- Get
bob get "http://localhost:3000/" -h "token: abcxyz; authenticated: true" - Post
bob post "http://localhost:3000/login" -h "Content-Type: application/json" -b "data:{email: xyz@emample.com, password: abc}"
- Get
-
Ai queries cmd structure :
bob -q <query in double quotes ("")>
To run Bob CLI locally, ensure you have the following installed on your system:
Clone the repository:
git clone https://github.com/Aarush-sharma/bob-cli.git- Go to api folder:
cd src/api- Open index.cpp
- Add your api key from gemini_docs
- Move to the root folder
- Run
make bob- finally
bob - now help menu will look like this if everything goes correct.
help:- command-structre: bob <tags || keywords> must be seperated by spaces if n To test: greet
-q : query (value must be included in quotes) sort: sort n numbers [limitations: integers only] roll: generates a random number with size of given value add: adds n values (just enter the values) mul: multiplies n values (just enter the values)
-> Add the path to this exe file in your enviorement variables to use it globally :)
