From 8afed93f4b67d5c4876a33b6cde39f71c10dcecc Mon Sep 17 00:00:00 2001 From: Mat Warger Date: Wed, 4 Jul 2018 15:43:23 -0500 Subject: [PATCH 1/2] added clarity to schema:download Hopefully less pain moving from apollo-codegen. --- packages/apollo-cli/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/apollo-cli/README.md b/packages/apollo-cli/README.md index e195a2e4eb..d04755d474 100644 --- a/packages/apollo-cli/README.md +++ b/packages/apollo-cli/README.md @@ -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)_ From 8dd8d34729422fc72ae5b0caf951a55edb14d4a5 Mon Sep 17 00:00:00 2001 From: Mat Warger Date: Wed, 4 Jul 2018 21:26:39 -0500 Subject: [PATCH 2/2] updated CLI to match docs --- packages/apollo-cli/src/commands/schema/download.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/apollo-cli/src/commands/schema/download.ts b/packages/apollo-cli/src/commands/schema/download.ts index 70cb11676d..5abaac6577 100644 --- a/packages/apollo-cli/src/commands/schema/download.ts +++ b/packages/apollo-cli/src/commands/schema/download.ts @@ -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 }),