Skip to content

Commit

Permalink
docs: Add header hint for generate-schema to "Workflows" page (#322)
Browse files Browse the repository at this point in the history
Co-authored-by: Phil Pluckthun <phil@kitten.sh>
  • Loading branch information
sistrall and kitten authored Jul 9, 2024
1 parent d4b80bf commit 7c15dc9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions website/get-started/workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ gql.tada generate schema 'http://api.test/graphql' --output './schema.graphql'
When no `--output` argument is passed, the command will attempt to
use your configuration's `schema` setting, provided it's a file path.

You may also pass `--header` arguments, which define headers sent
during the GraphQL introspection request. If a GraphQL endpoint
requires authentication headers, you may use this to pass in
tokens or authorization headers.

```sh
gql.tada generate schema 'http://api.test/graphql' --header "Authorization: $ENV_TOKEN"
```

<a href="/reference/gql-tada-cli#generate-schema" class="button">
<h4>CLI Reference</h4>
<p>Learn more about the <code>generate-schema</code> command</p>
Expand Down

0 comments on commit 7c15dc9

Please sign in to comment.