> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dev.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 and hotels, 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 and hotels, build a trip, pay, and manage bookings, straight from your shell or a script.

New to this? Start with [Connect via CLI](/connect/cli) 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                      # OAuth
jinko auth login --key jnk_your_key   # API key
```

## 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

<CardGroup cols={2}>
  <Card title="Travel Demand" icon="chart-line" href="/cli/travel-demand/destination">
    See where people are searching to fly and how it trends over time: `destination`, `market`, `audience`, their `-trend` variants, and `trend`.
  </Card>

  <Card title="Flights" icon="plane" href="/cli/flight-search">
    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>

  <Card title="Hotels" icon="hotel" href="/cli/hotel-search">
    Search hotels and pull details: `hotel-search`, `hotel-details`, `hotel-cancel`.
  </Card>

  <Card title="Cart & Payment" icon="cart-shopping" href="/cli/trip">
    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>

  <Card title="Account & utilities" icon="gear" href="/cli/auth/login">
    Sign in and configure the CLI: `auth login` / `logout` / `status`, `config set` / `show`, and `schema`.
  </Card>
</CardGroup>
