Links

Country Command

Overview

This command can be used to fetch the information of a specific Country, by passing the Country Code. Let's dive into this now.

Usage

We can simple know how to use each command by adding -h after the command.
Example:
ggip country -h
Then, the CLI will return the complete information about this specific command (in this case, country command). The output should be something like this:
Greip CLI - country command usage information
As shown above in the screenshot, you have multiple options you can use for this command, which are:
Option
Description
-o
Specifies the format of the returned data. Accepts: JSON or Newline. Default: Newline.
-d
Enables the development environment. Please use it only for testing, this will cause returning fake data from the API.
-m
A set of the modules you want to use, separated by comma. Accepts: location, timezone, currency and/or flag.

Examples:

In this section we'll list some usage cases with the description of them.
# Retrun the basic information of the United States
ggip country US
# Return the basic information of the United States in dev mode.
ggip country US -d
# Return timezone, location and basic information of the United States
ggip country US -m timezone,location
# Return both timezone & basic information of the United States in JSON format
ggip country US -m timezone -o JSON
The country code should be in `ISO 3166-1 alpha-2` format, learn more.