> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gojinko.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> What you can do with the Jinko CLI and how to run it from your shell: explore travel demand, search flights, hotels, and rental cars, build a trip, pay, and manage bookings.

The Jinko CLI brings the whole platform to your terminal. Install it, sign in once, and you can explore travel demand, search flights, hotels, and rental cars, build a trip, pay, and manage bookings, straight from your shell or a script.

New to this? Start with [Connect via CLI](https://docs.gojinko.com/connect/cli.md) for install and first-run setup. The commands are grouped by what they do (below), and each page lists its flags, arguments, and examples.

## Install

```bash theme={null}
npm install -g @gojinko/cli
```

## Authenticate

```bash theme={null}
jinko auth login                      # prompts for your API key
jinko auth login --key jnk_t_your_key   # non-interactive
```

## Environments

The CLI targets **production** by default. Use `--env sandbox` to run against isolated sandbox data, which uses **separate API keys**:

| Environment | API base | Flag |
| - | - | - |
| Production (default) | `https://api.gojinko.com` | `--env prod` |
| Sandbox | `https://api.sandbox.gojinko.com` | `--env sandbox` |

```bash theme={null}
jinko config set environment sandbox              # make sandbox the default for this machine
jinko --env prod find-destination --origins JFK   # …or override per-command
```

## Output

Commands print **JSON** by default. Pass `--format table` for a human-readable view.

## Command groups

> [card] [Travel Demand](https://docs.gojinko.com/cli/travel-demand/destination.md)
>
> Use `jinko travel-demand` to explore search demand with `destination`, `market`, `audience`, their `-trend` variants, and `trend`.

> [card] [Flights](https://docs.gojinko.com/cli/flight-search.md)
>
> Discover routes and dates, run a live search, then handle refunds and exchanges: `find-destination`, `flight-calendar`, `find-dates`, `lowest-fare`, `price-monitoring`, `flight-search`, `refund`, `exchange`.

> [card] [Hotels](https://docs.gojinko.com/cli/hotel-search.md)
>
> Search hotels and pull details: `hotel-search`, `hotel-details`, `hotel-cancel`.

> [card] [Cars](https://docs.gojinko.com/cli/car-search.md)
>
> Search live rental offers and cancel a rental with the fee shown first; a `car_*` offer books through `trip`: `car-search`, `car-cancel preview` / `commit` / `status`.

> [card] [Trip & Payment](https://docs.gojinko.com/cli/trip.md)
>
> Build a trip, add ancillaries, check out, pay, and look up the booking: `trip`, `get-ancillaries`, `select-ancillaries`, `checkout`, `agent-pay submit`, `trip-status`, `get-booking`.

> [card] [Account & utilities](https://docs.gojinko.com/cli/auth/login.md)
>
> Sign in and configure the CLI: `auth login` / `logout` / `status`, `config set` / `show`, and `schema`.

To try a Travel Demand ranking in sandbox, include the group name and the required `--origin` selector:

```bash theme={null}
jinko --env sandbox travel-demand destination --origin global --limit 1
```

`global` includes all origins. Run `jinko travel-demand --help` to list the other subcommands.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.