Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rs/curlie
The power of curl, the ease of use of httpie.
https://github.com/rs/curlie
api-client cli curl developer-tools go http-client httpie terminal webdevelopment
Last synced: 22 days ago
JSON representation
The power of curl, the ease of use of httpie.
- Host: GitHub
- URL: https://github.com/rs/curlie
- Owner: rs
- License: mit
- Created: 2018-05-26T01:18:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-28T16:42:58.000Z (8 months ago)
- Last Synced: 2024-09-30T02:40:57.839Z (about 1 month ago)
- Topics: api-client, cli, curl, developer-tools, go, http-client, httpie, terminal, webdevelopment
- Language: Go
- Homepage: https://curlie.io
- Size: 2.4 MB
- Stars: 2,832
- Watchers: 22
- Forks: 95
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-api-clients - curlie - The power of curl, the ease of use of httpie (CLI)
- awesome-cli-apps - curlie - A curl frontend with the ease of use of HTTPie. (Development / HTTP Client)
- awesome-repositories - rs/curlie - The power of curl, the ease of use of httpie. (Go)
- awesome-starred - rs/curlie - The power of curl, the ease of use of httpie. (go)
- awesome-golang-repositories - curlie
- command-line-tools - curlie - Power of curl, the ease of use of httpie. (Networking)
- fucking-awesome-cli-apps - curlie - A curl frontend with the ease of use of HTTPie. (Development / HTTP Client)
- awesome-integration - curlie (⭐2.8k) - Frontend to curl with the ease of use of httpie without compromising on performance and features. (Projects / API Testing)
README
# Curlie
If you like the interface of [HTTPie](https://httpie.org) but miss the features of [curl](https://curl.haxx.se), curlie is what you are searching for. Curlie is a frontend to `curl` that adds the ease of use of `httpie`, without compromising on features and performance. All `curl` options are exposed with syntax sugar and output formatting inspired from `httpie`.
## Install
Using [homebrew](https://brew.sh/):
```sh
brew install curlie
```Using [webi](https://webinstall.dev/curlie/):
```sh
# macOS / Linux
curl -sS https://webinstall.dev/curlie | bash
``````pwsh
# Windows
curl.exe -A "MS" https://webinstall.dev/curlie | powershell
```Using [eget](https://github.com/zyedidia/eget):
```sh
# Ubuntu/Debian
eget rs/curlie -a deb --to=curlie.deb
sudo dpkg -i curlie.deb
```Using [macports](https://www.macports.org):
```sh
sudo port install curlie
```Using [pkg](https://man.freebsd.org/pkg/8):
```sh
pkg install curlie
```Using [go](https://golang.org/):
```sh
go install github.com/rs/curlie@latest
```Using [scoop](https://scoop.sh/):
```sh
scoop install curlie
```Or download a [binary package](https://github.com/rs/curlie/releases/latest).
## Usage
Synopsis:
$ curlie [CURL_OPTIONS...] [METHOD] URL [ITEM [ITEM]]
Simple GET:
![](doc/get.png)
Custom method, headers and JSON data:
![](doc/put.png)
When running interactively, `curlie` provides pretty-printed output for json. To force pretty-printed output, pass `--pretty`.
## Build
Build with [goreleaser](https://goreleaser.com) to test that all platforms compile properly.
```sh
goreleaser --snapshot --skip-publish --rm-dist
```Or with `go build` for your current platform only.
```sh
go build .
```## Differences with httpie
* Like `curl` but unlike `httpie`, headers are written on `stderr` instead of `stdout`.
* Output is not buffered, all the formatting is done on the fly so you can easily debug streamed data.
* Use the `--curl` option to print executed curl command.## License
All source code is licensed under the [MIT License](https://raw.github.com/rs/curlie/master/LICENSE).