Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added clarity to schema:download #475

Merged
merged 2 commits into from
Jul 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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