#cli #postman #collection #curl #passwordstore

app pocc

A CLI to play with postman collections(v2.1.0) inspired by password-store

5 releases (3 stable)

1.1.1 Sep 23, 2023
1.0.0 Aug 23, 2023
0.1.1 Aug 2, 2023
0.1.0 Aug 1, 2023

#406 in Command line utilities

Download history 6/week @ 2023-11-09 3/week @ 2023-11-16 15/week @ 2023-11-23 17/week @ 2023-11-30 5/week @ 2023-12-14 10/week @ 2023-12-21 1/week @ 2023-12-28 5/week @ 2024-01-04 5/week @ 2024-01-25 9/week @ 2024-02-01 6/week @ 2024-02-08 47/week @ 2024-02-15

67 downloads per month

CC0 license

23KB
560 lines

A CLI to play with postman collections inspired by password-store

Key Features

  • Convert to curl

    pocc supports converting a postman request to a curl for easier use in the terminal.

    How to use

    cmd:

      pocc curl
    

    select the request:

    Select request from current directory:
    > TestCollection/New Folder/example.com
      TestCollection/New Folder/raw_json_body
      TestCollection/New Folder/raw_javascript_body
      TestCollection/New Folder/example.com
      TestCollection/New Folder/form-data
      TestCollection/New Folder/x-www-form-urlencoded
      TestCollection/New Folder/raw_text_body
      [↑↓ to move, enter to select, type to filter]
    

    output:

      curl --location --globoff --request POST 'https://example.com' \
      --header 'Authorization: Bearer 12345678' \
      --header 'Content-Type: text/plain' \
      --data 'hey there'
    
  • Convert to Curl and Copy to Clipboard

    cmd:

      pocc -c curl
    

    select a request from the interactive UI to copy it's curl to clipbaord.

demo.webm

Upcoming features

  • insert in a collection from curl

and more, take a look at issues to find out

Installation

From cargo

to install through cargo run:

cargo install pocc

NOTE: below installation methods coming in soon

  • brew
  • nix
  • apt

Project goals

pocc's fundamental objective is to empower users to seamlessly interact with Postman collections, all within the convenience of their terminal.

Dependencies

~8–21MB
~319K SLoC