Skip to content

Commit

Permalink
added clarity to schema:download (#475)
Browse files Browse the repository at this point in the history
* added clarity to schema:download

Hopefully less pain moving from apollo-codegen.

* updated CLI to match docs
  • Loading branch information
mwarger authored and James Baxley committed Jul 5, 2018
1 parent 7d99a31 commit be3969c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/apollo-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,11 @@ ARGUMENTS
OPTIONS
-h, --help Show command help
--endpoint=endpoint [default: http://localhost:4000/graphql] The URL of the server to fetch the schema from
--endpoint=endpoint [default: http://localhost:4000/graphql] The URL of the server to fetch the schema from or path to ./your/local/schema.graphql
--header=header Additional headers to send to server for introspectionQuery
--key=key The API key for the Apollo Engine service
```
Note: This replaces `apollo-codegen introspect-schema`.

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

Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-cli/src/commands/schema/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class SchemaDownload extends Command {
"Additional headers to send to server for introspectionQuery",
}),
endpoint: flags.string({
description: "The URL of the server to fetch the schema from",
description: "The URL of the server to fetch the schema from or path to ./your/local/schema.graphql",
default: "http://localhost:4000/graphql", // apollo-server 2.0 default address
}),

Expand Down

0 comments on commit be3969c

Please sign in to comment.