RollingGo Flight CLI
When to Use
✅ Use this skill when:
- Airport Discovery: User needs to find airport codes or verify city/airport names before booking (e.g., "What's the airport code for Hangzhou?").
- Flight Search: User wants to find available flights between two destinations with specific dates, cabin class, or passenger count.
- One-way or Round-trip: User wants to search one-way or round-trip flights with structured filters.
- Multi-step Planning: User provides a natural language travel request and needs structured flight results to continue planning.
❌ Don't use this skill when:
- User asks about hotel booking, trains, transfers, or car rentals.
- User wants real-time seat selection or checkout — this skill returns search results only.
API Key
Resolution order: --api-key flag → ROLLINGGO_API_KEY env var.
No key yet? Apply at: https://rollinggo.store/apply
Runtime
Default to references/rollinggo-flight-npx.md; switch to references/rollinggo-flight-uvx.md if the user specifies uv/uvx/Python. For environments without Node.js or Python, use the standalone binary (see each reference file's Install section). For step-by-step scenarios and tutorials, see references/flight-workflows.md. For API key persistence see references/claw-host-env.md.
Version Freshness (Always Latest)
Default policy for this skill: use the newest release on every run.
- npm/npx:
npx --yes rollinggo-flight@latest ... - uvx:
uvx --refresh --from rollinggo-flight@latest rollinggo-flight ...
Primary Workflow
Run these steps in order unless the user is already at a later step.
- Clarify: origin city/airport, destination city/airport, departure date, trip type (ONE_WAY / ROUND_TRIP), return date (if round-trip), passenger count, cabin class
- If city/airport codes are unclear → run
search-airportsfirst to resolve IATA codes - Run
search-flightswith resolved codes and parameters - If no results → loosen filters (see Filter Loosening below)
Commands Quick Reference
# Resolve airport/city codes
rollinggo-flight search-airports --api-key <key> --keyword "Hangzhou"
# Search flights (minimum required flags)
rollinggo-flight search-flights \
--api-key <key> \
--from-city <code> \
--to-city <code> \
--from-date YYYY-MM-DD \
--trip-type ONE_WAY \
--adult-number 1 \
--child-number 0 \
--cabin-grade ECONOMY
# Discover all flags
rollinggo-flight search-airports --help
rollinggo-flight search-flights --help
Key Rules
--trip-typemust be exactlyONE_WAYorROUND_TRIP--ret-dateis required when--trip-typeisROUND_TRIP--cabin-grademust be one of:ECONOMY,PREMIUM_ECONOMY,BUSINESS,FIRST- Use either
--from-cityor--from-airport(not both); same for destination --from-city/--to-cityaccepts city codes (e.g.BJS,SHA);--from-airport/--to-airportaccepts IATA airport codes (e.g.PEK,PVG)--adult-numbermust be ≥ 1;--child-numbermust be ≥ 0- Dates must use
YYYY-MM-DDformat
Output
- stdout → result payload (JSON by default)
- stderr → errors only
- Exit
0success ·1HTTP/network failure ·2CLI validation failure
Filter Loosening (when no results)
Try in order: try alternative airports in the same city → try adjacent dates → try different cabin grade → try city code instead of airport code
