pocc
supports converting a postman request to a curl for easier use in the terminal.
cmd:
bash
pocc curl
select the request:
```bash
Select request from current directory:
TestCollection/New Folder/example.com TestCollection/New Folder/rawjsonbody TestCollection/New Folder/rawjavascriptbody TestCollection/New Folder/example.com TestCollection/New Folder/form-data TestCollection/New Folder/x-www-form-urlencoded TestCollection/New Folder/rawtextbody [↑↓ to move, enter to select, type to filter] ```
output:
bash
curl --location --globoff --request POST 'https://example.com' \
--header 'Authorization: Bearer 12345678' \
--header 'Content-Type: text/plain' \
--data 'hey there'
demo.webm
cmd:
bash
pocc -c curl
select the request from the same interactive UI as above and it's curl will be copied to clipbaord.
and more, take a look at issues to find out
to install through cargo run:
bash
cargo install pocc
NOTE: below installation methods coming in soon
* brew
* nix
* apt
pocc
's fundamental objective is to empower users to seamlessly interact with Postman collections, all within the convenience of their terminal.