Package: curls-cli
cURL/sThe command-line alternative to Postmancurlsis a drop in replacement forcurl, with state added on (the "s" is for "save"). Create and share API collections, give your curls memorable nicknames to call them up by, and more.Installation$brewinstallptbrodie/curls/curlsUsage$curls-XPOSThttps://api.example.com/api/v1/example-H'content-type: application/json'-d'{"some": {"data": "here"}}'$curlshistory+History---------------------------+------+---------------------+------------------------------------------------------------------------+|id|name|date|command|+----------------------------------+------+---------------------+------------------------------------------------------------------------+|350f41c5a89a485187649931dbb4c6b5|-|2024-02-2119:35:30|$curls-XPOSThttps://api.example.com/api/v1/example-H'content-type:||                                  |      |                     | application/json'-d'{"some": {"data": "here"}}'|+----------------------------------+------+---------------------+------------------------------------------------------------------------+Naming and using curlsEvery curl you run withcurlsis saved and given a unique id by default. You can reference the curl by its id or give it a human-readable name.# Rerun an old curl$curls350f41c5a89a485187649931dbb4c6b5# Give a curl a name$curlsname350f41c5a89a485187649931dbb4c6b5'my-curl'$curlshistory+History---------------------------+---------+---------------------+------------------------------------------------------------------------+|id|name|date|command|+----------------------------------+---------+---------------------+------------------------------------------------------------------------+|350f41c5a89a485187649931dbb4c6b5|my-curl|2024-02-2119:35:30|$curls-XPOSThttps://api.example.com/api/v1/example-H'content-type:||                                  |         |                     | application/json'-d'{"some": {"data": "here"}}'|+----------------------------------+---------+---------------------+------------------------------------------------------------------------+# Give a curl a description$curlsdescribemy-curl"This is a description of my curl."$curlsinfomy-curl

ID:350f41c5a89a485187649931dbb4c6b5
Date:2024-02-2119:35:30
Name:my-curl
Description:Thisisadescriptionofmycurl.
Command:curls-XPOSThttps://api.example.com/api/v1/example-H'content-type: application/json'-d'{"some": {"data": "here"}}'Creating and Managing APIsAn API is a curated collection of curls. Use APIs for storing a collection of tests, or complex curls you don't want to re-type, or curating a collection of curls to share with a colleague.# View APIs$curlsapidefault
*existing-api# Create new API$curlsapicreate'new-api'$curlsapidefault
*existing-apinew-api# Switch to the new API$curlsusenew-api
$curlsapidefaultexisting-api
*new-api# Add a cURL to an API$curlsadd350f41c5a89a485187649931dbb4c6b5
$curls
+new-api---------------------------+------+---------------------+------------------------------------------------------------------------+|id|name|date|command|+----------------------------------+------+---------------------+------------------------------------------------------------------------+|350f41c5a89a485187649931dbb4c6b5|-|2024-02-2119:35:30|$curls-XPOSThttps://api.example.com/api/v1/example-H'content-type:||                                  |      |                     | application/json'-d'{"some": {"data": "here"}}'|+----------------------------------+------+---------------------+------------------------------------------------------------------------+# Remove a cURL from an API$curlsremove350f41c5a89a485187649931dbb4c6b5
$curls
+new-api-+-------+---------+-----------+|id|name|date|command|+--------+-------+---------+-----------+Sharing Your APIs# Export an API to a json file.[mine]$curlsexportshared-api
APIexportedtoshared-api.json.# Import an API from a json file.[yours]$curlsimportshared-api.json[yours]$curlsapi
*defaultshared-api[yours]$curlsuseshared-api