Join us from October 8-10 in New York City to learn the latest tips, trends, and news about GraphQL Federation and API platform engineering.Join us for GraphQL Summit 2024 in NYC
Docs
Start for Free

Rover cloud commands

Manage cloud resources


enables you to manage cloud resources with the rover cloud set of commands. The commands allow you to manage configurations for a given .

Cloud Router Config

cloud config fetch

The cloud config fetch attempts to fetch the current cloud router config for a given graph ref:

$ rover cloud config fetch <GRAPH_REF>

Using an invalid graph ref will result in an error similar to the below:

$ rover cloud config fetch invalid@graph-ref
error[E010]: Could not find graph with name "invalid@graph-ref"

cloud config update

The cloud config update attempts to update a cloud router config for a given graph ref:

$ rover cloud config update --file <FILE> <GRAPH_REF>
Successfully updated cloud router config!

This command will error if the cloud router config is invalid, similarly to cloud config validate.

cloud config validate

The cloud config validate attempts to validate a cloud router config for a given graph ref:

$ rover cloud config validate --file <FILE> <GRAPH_REF>
No errors!

An invalid config will have the associated errors shown. For example, passing an invalid key/value pair invalid: true, as a header produces the following:

$ rover cloud config validate --file <FILE> <GRAPH_REF>
error: Invalid router config: Router configuration failed to validate: router_config(/headers): Additional properties are not allowed ('invalid' was unexpected)
Previous
Error Codes
Next
config
Rate articleRateEdit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc., d/b/a Apollo GraphQL.

Privacy Policy

Company