rover
Guide for using Apollo Rover CLI to manage GraphQL schemas and federation. Use this skill when: (1) publishing or fetching subgraph/graph schemas, (2)…
от CognitionAI★ 42 звезды на GitHub
Установить rover в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Apollo Rover CLI Guide
Rover is the official CLI for Apollo GraphOS. It helps you manage schemas, run composition locally, publish to GraphOS, and develop supergraphs on your local machine.
Quick Start
Step 1: Install
# macOS/Linux
curl -sSL https://rover.apollo.dev/nix/latest | sh
# npm (cross-platform)
npm install -g @apollo/rover
# Windows PowerShell
iwr 'https://rover.apollo.dev/win/latest' | iex
Step 2: Authenticate
# Interactive authentication (opens browser)
rover config auth
# Or set environment variable
export APOLLO_KEY=your-api-key
Step 3: Verify Installation
rover --version
rover config whoami
Explore a Graph's Schema (start here for schema questions)
To answer "what's in this graph?", find a field, or write a query against a GraphOS graph, fetch the API schema and pipe it into rover schema — this keeps the SDL out of your context and returns only what you need:
# What can I query? (compact overview)
rover graph fetch <graph@variant> | rover schema describe -
# Find a field by concept/keyword (returns the path from a root operation)
rover graph fetch <graph@variant> | rover schema search - "<keyword>"
# Zoom into one type or field
rover graph fetch <graph@variant> | rover schema describe - --coord <Type.field> --depth 1
Three rules that keep this correct:
- Use
rover graph fetch(the API schema) — notrover supergraph fetch(that returns composition SDL with federation internals likejoin__/link__). - Pipe it in — never run
rover graph fetchalone and read the raw SDL (a large schema floods your context; that's exactly whatrover schemaavoids). - The
schemacommands read piped SDL, not a graph ref —rover schema describe <graph@variant>fails; you must fetch first and pipe.
Full reference, ranking rules, and the save-once pattern: Schema Exploration and references/schema.md.
Core Commands Overview
| Command | Description | Use Case |
|---|---|---|
rover subgraph publish |
Publish subgraph schema to GraphOS | CI/CD, schema updates |
rover subgraph check |
Validate schema changes | PR checks, pre-deploy |
rover subgraph fetch |
Download subgraph schema | Local development |
rover supergraph compose |
Compose supergraph locally | Local testing |
rover dev |
Local supergraph development | Development workflow |
rover graph publish |
Publish monograph schema | Non-federated graphs |
rover schema describe |
Explore a schema by coordinate; takes SDL via stdin/file, not a graph ref — pipe from rover graph fetch |
Agent schema discovery |
rover schema search |
Search a schema by keyword; takes SDL via stdin/file, not a graph ref — pipe from rover graph fetch |
Agent schema discovery |
Graph Reference Format
Most commands require a graph reference in the format:
<GRAPH_ID>@<VARIANT>
Examples:
my-graph@productionmy-graph@stagingmy-graph@current(default variant)
Set as environment variable:
export APOLLO_GRAPH_REF=my-graph@production
Subgraph Workflow
Publishing a Subgraph
# From schema file
rover subgraph publish my-graph@production \
--name products \
--schema ./schema.graphql \
--routing-url https://products.example.com/graphql
# From running server (introspection)
rover subgraph publish my-graph@production \
--name products \
--schema <(rover subgraph introspect http://localhost:4001/graphql) \
--routing-url https://products.example.com/graphql
Checking Schema Changes
# Check against production traffic
rover subgraph check my-graph@production \
--name products \
--schema ./schema.graphql
Fetching Schema
# Fetch from GraphOS
rover subgraph fetch my-graph@production --name products
# Introspect running server
rover subgraph introspect http://localhost:4001/graphql
Supergraph Composition
Local Composition
Create supergraph.yaml:
federation_version: =2.9.0
subgraphs:
products:
routing_url: http://localhost:4001/graphql
schema:
file: ./products/schema.graphql
reviews:
routing_url: http://localhost:4002/graphql
schema:
subgraph_url: http://localhost:4002/graphql
federation_version here is the composition version — it only needs to be ≥
each subgraph's @link floor, so subgraphs pinned to a lower version compose
fine. If a subgraph server throws UNKNOWN_FEDERATION_LINK_VERSION at startup,
that's a client-library lag, not a composition problem. See the apollo-federation
skill's Federation versions.
Compose:
rover supergraph compose --config supergraph.yaml > supergraph.graphql
Fetch Composed Supergraph
rover supergraph fetch my-graph@production
This retur
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(rover:*) - 02
Bash(npm:*) - 03
Bash(npx:*) - 04
Read - 05
Write - 06
Edit - 07
Glob - 08
Grep
Вложенные файлы
- references/configuration.md
- references/dev.md
- references/graphs.md
- references/schema.md
- references/subgraphs.md
- references/supergraphs.md
FAQ
Что делает скилл rover?
Guide for using Apollo Rover CLI to manage GraphQL schemas and federation. Use this skill when: (1) publishing or fetching subgraph/graph schemas, (2) composing supergraph schemas locally or via GraphOS, (3) running local supergraph development with rover dev, (4) validating schemas with check and lint commands, (5) configuring Rover authentication and environment, (6) exploring or searching a graph's schema for agent-driven discovery (rover schema describe / rover schema search).
Как установить скилл rover?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rover запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
GitHubFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…