✨ 🤖 🐶 the new CLI for apollo
This is the home of Rover, the new CLI for Apollo's suite of GraphQL developer productivity tools.
A few useful Rover comamnds to interact with your graphs.
- Validate recent changes made to your local graph with
rover graph check
.
rover graph check --schema=./path-to-valid-sdl test@cats
- Push your local graph to Apollo Studio.
rover graph push --schema ./path-to-valid-schema test@cats
- Fetch a graph from a federated remote endpoint.
rover subgraph fetch --name=pets test@cats
$ rover --help
Rover 0.0.1-rc.6
Rover - Your Graph Companion
Read the getting started guide: https://go.apollo.dev/r/start
To begin working with Rover and to authenticate with Apollo Studio,
run the following command:
$ rover config auth
This will prompt you for an API Key that can be generated in Apollo Studio.
The most common commands from there are:
- rover graph fetch: Fetch a graph schema from the Apollo graph registry
- rover graph check: Check for breaking changes in a local graph schema against a graph schema in the Apollo graph
registry
- rover graph push: Push an updated graph schema to the Apollo graph registry
You can find full documentation for Rover here: https://go.apollo.dev/r/docs
USAGE:
rover [OPTIONS] <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-l, --log <log-level> [default: debug] [possible values: error, warn, info,
debug, trace]
SUBCOMMANDS:
config Configuration profile commands
graph Non-federated schema/graph commands
help Prints this message or the help of the given subcommand(s)
subgraph Federated schema/graph commands
This repo is organized as a cargo
workspace, containing several related projects:
rover
: Apollo's suite of GraphQL developer productivity toolshouston
: utilities for configuring Roverrobot-panic
: a fork of rust-cli/robot-panic adjusted for Roverrover-client
: an HTTP client for making GraphQL requests for Roversputnik
: a crate to aid in collection of anonymous data for Rust CLIstimber
: a log formatter forenv_logger
andlog
crates
You can install Rover by running
curl -sSL https://raw.githubusercontent.com/apollographql/rover/v0.0.1-rc.6/installers/binstall/scripts/nix/install.sh | VERSION=v0.0.1-rc.6 sh
iwr 'https://raw.githubusercontent.com/apollographql/rover/v0.0.1-rc.6/installers/binstall/scripts/windows/install.ps1' | iex
Alternatively, you can download the binary for your operating system and manually adding its location to your PATH
.
This project is in very early development. As a result, we are not currently accepting external contributions.
This project is licensed under the MIT License (LICENSE or http://opensource.org/licenses/MIT).