Skip to content

Commit be3969c

Browse files
mwargerJames Baxley
authored andcommitted
added clarity to schema:download (#475)
* added clarity to schema:download Hopefully less pain moving from apollo-codegen. * updated CLI to match docs
1 parent 7d99a31 commit be3969c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/apollo-cli/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,11 @@ ARGUMENTS
150150
151151
OPTIONS
152152
-h, --help Show command help
153-
--endpoint=endpoint [default: http://localhost:4000/graphql] The URL of the server to fetch the schema from
153+
--endpoint=endpoint [default: http://localhost:4000/graphql] The URL of the server to fetch the schema from or path to ./your/local/schema.graphql
154154
--header=header Additional headers to send to server for introspectionQuery
155155
--key=key The API key for the Apollo Engine service
156156
```
157+
Note: This replaces `apollo-codegen introspect-schema`.
157158

158159
_See code: [src/commands/schema/download.ts](https://github.com/apollographql/apollo-cli/blob/v1.1.1/src/commands/schema/download.ts)_
159160

packages/apollo-cli/src/commands/schema/download.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class SchemaDownload extends Command {
2828
"Additional headers to send to server for introspectionQuery",
2929
}),
3030
endpoint: flags.string({
31-
description: "The URL of the server to fetch the schema from",
31+
description: "The URL of the server to fetch the schema from or path to ./your/local/schema.graphql",
3232
default: "http://localhost:4000/graphql", // apollo-server 2.0 default address
3333
}),
3434

0 commit comments

Comments
 (0)