@apollo/rover 0.6.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -24
- package/binary.js +11 -9
- package/package.json +4 -4
- package/run.js +2 -2
package/README.md
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
|
5
5
|
[](https://app.circleci.com/pipelines/github/apollographql/rover?branch=main)
|
6
6
|
[](https://github.com/apollographql/rover/releases/latest)
|
7
|
-
[](https://app.netlify.com/sites/apollo-cli-docs/deploys)
|
8
7
|
|
9
8
|
This is the home of Rover, the new CLI for Apollo's suite of GraphQL developer productivity tools.
|
10
9
|
|
@@ -37,7 +36,8 @@ rover graph publish --schema ./path-to-valid-schema test@cats
|
|
37
36
|
## Command-line options
|
38
37
|
|
39
38
|
```console
|
40
|
-
Rover 0.
|
39
|
+
Rover 0.8.0
|
40
|
+
Apollo Developers <opensource@apollographql.com>
|
41
41
|
|
42
42
|
Rover - Your Graph Companion
|
43
43
|
Read the getting started guide by running:
|
@@ -54,7 +54,8 @@ This will prompt you for an API Key that can be generated in Apollo Studio.
|
|
54
54
|
The most common commands from there are:
|
55
55
|
|
56
56
|
- rover graph fetch: Fetch a graph schema from the Apollo graph registry
|
57
|
-
- rover graph check: Check for breaking changes in a local graph schema against a graph schema
|
57
|
+
- rover graph check: Check for breaking changes in a local graph schema against a graph schema
|
58
|
+
in the Apollo graph
|
58
59
|
registry
|
59
60
|
- rover graph publish: Publish an updated graph schema to the Apollo graph registry
|
60
61
|
|
@@ -63,31 +64,68 @@ You can open the full documentation for Rover by running:
|
|
63
64
|
$ rover docs open
|
64
65
|
|
65
66
|
USAGE:
|
66
|
-
rover [
|
67
|
-
|
68
|
-
FLAGS:
|
69
|
-
--insecure-accept-invalid-certs Accept invalid certificates when performing HTTPS requests
|
70
|
-
--insecure-accept-invalid-hostnames Accept invalid hostnames when performing HTTPS requests
|
71
|
-
-h, --help Prints help information
|
72
|
-
-V, --version Prints version information
|
67
|
+
rover [OPTIONS] <SUBCOMMAND>
|
73
68
|
|
74
69
|
OPTIONS:
|
75
|
-
--client-timeout <
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
70
|
+
--client-timeout <CLIENT_TIMEOUT>
|
71
|
+
Configure the timeout length (in seconds) when performing HTTP(S) requests
|
72
|
+
|
73
|
+
[default: 30]
|
74
|
+
|
75
|
+
-h, --help
|
76
|
+
Print help information
|
77
|
+
|
78
|
+
--insecure-accept-invalid-certs
|
79
|
+
Accept invalid certificates when performing HTTPS requests.
|
80
|
+
|
81
|
+
You should think very carefully before using this flag.
|
82
|
+
|
83
|
+
If invalid certificates are trusted, any certificate for any site will be trusted for
|
84
|
+
use. This includes expired certificates. This introduces significant vulnerabilities,
|
85
|
+
and should only be used as a last resort.
|
86
|
+
|
87
|
+
--insecure-accept-invalid-hostnames
|
88
|
+
Accept invalid hostnames when performing HTTPS requests.
|
89
|
+
|
90
|
+
You should think very carefully before using this flag.
|
91
|
+
|
92
|
+
If hostname verification is not used, any valid certificate for any site will be trusted
|
93
|
+
for use from any other. This introduces a significant vulnerability to man-in-the-middle
|
94
|
+
attacks.
|
95
|
+
|
96
|
+
-l, --log <LOG_LEVEL>
|
97
|
+
Specify Rover's log level
|
98
|
+
|
99
|
+
[possible values: error, warn, info, debug, trace]
|
100
|
+
|
101
|
+
--output <OUTPUT_TYPE>
|
102
|
+
Specify Rover's output type
|
103
|
+
|
104
|
+
[default: plain]
|
105
|
+
[possible values: json, plain]
|
106
|
+
|
107
|
+
-V, --version
|
108
|
+
Print version information
|
81
109
|
|
82
110
|
SUBCOMMANDS:
|
83
|
-
config
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
111
|
+
config
|
112
|
+
Configuration profile commands
|
113
|
+
docs
|
114
|
+
Interact with Rover's documentation
|
115
|
+
explain
|
116
|
+
Explain error codes
|
117
|
+
graph
|
118
|
+
Graph API schema commands
|
119
|
+
help
|
120
|
+
Print this message or the help of the given subcommand(s)
|
121
|
+
readme
|
122
|
+
Readme commands
|
123
|
+
subgraph
|
124
|
+
Subgraph schema commands
|
125
|
+
supergraph
|
126
|
+
Supergraph schema commands
|
127
|
+
update
|
128
|
+
Commands related to updating rover
|
91
129
|
```
|
92
130
|
|
93
131
|
This repo is organized as a [`cargo` workspace], containing several related projects:
|
package/binary.js
CHANGED
@@ -100,19 +100,21 @@ const getBinary = () => {
|
|
100
100
|
return binary;
|
101
101
|
};
|
102
102
|
|
103
|
-
const install = () => {
|
103
|
+
const install = (suppressLogs = false) => {
|
104
104
|
const binary = getBinary();
|
105
105
|
const proxy = configureProxy(binary.url);
|
106
|
-
binary.install(proxy);
|
107
|
-
|
108
106
|
// these messages are duplicated in `src/command/install/mod.rs`
|
109
107
|
// for the curl installer.
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
108
|
+
if (!suppressLogs) {
|
109
|
+
console.error(
|
110
|
+
"If you would like to disable Rover's anonymized usage collection, you can set APOLLO_TELEMETRY_DISABLED=1"
|
111
|
+
);
|
112
|
+
console.error(
|
113
|
+
"You can check out our documentation at https://go.apollo.dev/r/docs."
|
114
|
+
);
|
115
|
+
}
|
116
|
+
|
117
|
+
return binary.install(proxy, suppressLogs);
|
116
118
|
};
|
117
119
|
|
118
120
|
const run = () => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@apollo/rover",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.8.1",
|
4
4
|
"description": "The new Apollo CLI",
|
5
5
|
"main": "index.js",
|
6
6
|
"bin": {
|
@@ -33,16 +33,16 @@
|
|
33
33
|
},
|
34
34
|
"volta": {
|
35
35
|
"node": "17.5.0",
|
36
|
-
"npm": "8.
|
36
|
+
"npm": "8.15.0"
|
37
37
|
},
|
38
38
|
"homepage": "https://github.com/apollographql/rover#readme",
|
39
39
|
"dependencies": {
|
40
40
|
"axios-proxy-builder": "^0.1.1",
|
41
|
-
"binary-install": "^1.0.
|
41
|
+
"binary-install": "^1.0.6",
|
42
42
|
"console.table": "^0.10.0",
|
43
43
|
"detect-libc": "^2.0.0"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
|
-
"prettier": "2.
|
46
|
+
"prettier": "2.7.1"
|
47
47
|
}
|
48
48
|
}
|
package/run.js
CHANGED