Skip to main content
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 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

npm install -g @gojinko/cli

Authenticate

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:
EnvironmentAPI baseFlag
Production (default)https://api.gojinko.com--env prod
Sandboxhttps://api.sandbox.gojinko.com--env sandbox
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

Travel Demand

See where people are searching to fly and how it trends over time: destination, market, audience, their -trend variants, and trend.

Flights

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.

Hotels

Search hotels and pull details: hotel-search, hotel-details, hotel-cancel.

Cart & Payment

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.

Account & utilities

Sign in and configure the CLI: auth login / logout / status, config set / show, and schema.