#CLI

Poser provides a CLI tool to download GraphQL schemas.

#Usage

yarn poser fetch-schema --url "https://example.org/graphql" --output services/my-service/schema.graphql

The command above will download the schema at the specified URL and transform it into GSL.

#Options

OptionDescription
urlRequired The url to the GraphQL endpoint
outputRequired Path to output the schema (relative to cwd)
headersA JSON object to use as headers