Skip to content

systemslab graphql

Description Execute a GraphQL query against the SystemsLab server.
Usagesystemslab 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

OptionDefaultDescription
[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

OptionDefaultDescription
--systemslab-url The URL at which to access the systemslab server.
--colorauto Controls when color is used in the output. Possible values are auto, always, and never.
--output-formatlong 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

VariableDescription
SYSTEMSLAB_URLSpecify the URL used to contact the SystemsLab server. Equivalent to --systemslab-url.