The best cryptocurrency price CLI written in one line 💰
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
coin
screenshot.png

README.md

Crypto CLI

Crypto CLI is a lightweight command line interface written in one line to fetch the latest cryptocurrency prices and display them in the terminal.

GitHub stars GitHub code size in bytes license

screenshot

All data is sourced from coinmarketcap api

Installation

First install jq which is a command line json parser here

After you have installed jq, run the following commmand in your terminal:

curl "https://raw.githubusercontent.com/dillionverma/crypto-cli/master/coin" -o /usr/local/bin/coin && chmod +x /usr/local/bin/coin

Usage

The top 10 cryptocurrencies are shown by default by entering

coin

For more coins, simply pass a number argument

coin 100

To get a specific price, simply use grep

coin 100 | grep VTC

note use "-i" flag on grep for case insensitive search

Development

git clone https://github.com/dillionverma/crypto-cli.git
cd crypto-cli
vim coin

License

MIT License