gql.1 (784B)
1 .Dd 2 .Dt GQL 1 3 .Sh NAME 4 .Nm gql 5 .Nd execute GraphQL queries 6 .Sh SYNOPSIS 7 .Nm 8 .Op Fl k Ar file 9 .Op Fl r Ar file 10 .Op Fl v Ar var=value 11 .Ar url 12 .Op Ar 13 .Sh DESCRIPTION 14 .Nm 15 executes the queries read from the named files 16 .Pq or from the standard input if none specified 17 to the GraphQL API served at 18 .Ar url . 19 The response is written to the standard output. 20 .Pp 21 The following flags are understood: 22 .Bl -tag -width indent 23 .It Fl k Ar file 24 Reads the API key from 25 .Pa file 26 to be be included in the Authorization field 27 of the HTTP request as a Bearer token. 28 .It Fl r Ar file 29 Loads the JSON-encoded variables object 30 from 31 .Pa file . 32 .It Fl v Ar var=value 33 Sets the named variable 34 .Ar var 35 to 36 .Ar value . 37 Any variables loaded from a file via the 38 .Fl r 39 flag will be discarded. 40 .El 41 42 .Sh EXIT STATUS 43 .Ex