Appearance
systemslab graphql
| Description | Execute a GraphQL query against the SystemsLab server. |
|---|---|
| Usage | systemslab graphql [OPTIONS] [QUERY] |
Description
The systemslab graphql command executes a GraphQL query against the SystemsLab server and prints the response.
The query can be provided directly as a command-line argument, read from a file using --file, or piped in from stdin.
Options
| Option | Default | Description |
|---|---|---|
[QUERY] | The GraphQL query to execute. If not provided, the query is read from stdin or from the file specified by --file. | |
-f, --file <FILE> | Read the query from a file. Conflicts with providing the query as a command-line argument. | |
--variables <JSON> | A JSON object of variables to include with the query. |
Common Options
| Option | Default | Description |
|---|---|---|
--systemslab-url | The URL at which to access the systemslab server. | |
--color | auto | Controls when color is used in the output. Possible values are auto, always, and never. |
--output-format | long | Output format to use when outputting messages. long will result output designed to be human-readable while short is short output meant to be used within scripts. |
Environment Variables
| Variable | Description |
|---|---|
SYSTEMSLAB_URL | Specify the URL used to contact the SystemsLab server. Equivalent to --systemslab-url. |