Install the latest version of the cli with pip.
pip install ipdata
You need a valid API key from ipdata to use the cli. You can get a free key by signing up here.
# Initialize the CLIipdata init <API Key># Look up your own IP addressipdata# oripdata me# Look up an arbitrary IP addressipdata 8.8.8.8# Get specific fields with jqipdata 8.8.8.8 | jq .country_name