
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
Command line utility for the gqlx language.

To use the CLI you will need Node.js and NPM installed on your machine.
You can install the command line utility globally, which makes the gqlx command available.
npm i -g gqlx-cli
Alternatively, you can use another utility like npx to run the package on demand without a global installation.
The basic syntax for the gqlx utility is
gqlx <command>
General flags are:
--version - Show version number (boolean).
--help - Show help (boolean).
The specific positionals, flags etc. depend on the used command. The following sections go into each available command.
checkValidates the schema from the given source gqlx file.
source - Path to the gqlx file containing the schema (required).
--api - The keys for the API to expose to the gqlx resolvers (array, default: ["get","post","del","put","form","listen"]).
serveCompiles and runs the schema from the given source gqlx file.
source - Path to the gqlx file containing the schema (required).
--port - The port where the server is running at (number, default: 8080).
--host - The external hostname of the current server (string, default: "http://localhost").
--service-url - The root URL of the service target, if any (string).
--path-root - The path hosting the GraphQL server (string, default: "/").
--path-subscriptions - The path for WebSocket connections (string, default: "/subscriptions").
--api - Path to the JS file containing exported function for an API (string, default: defaultApiImpl).
--watch - Watches the gqlx file for changes (boolean, default: false).
--debug - Allows debugger statements and opens the node-inspector (boolean, default: false).
--header - Additional http headers to be set on every request
schemaExtracts the schema from the given source gqlx file.
source - Path to the gqlx file containing the schema (required).
--out - Path to the target file for writing out the schema. If omitted the result is shown in the command line (string).
Suppose you have the following gqlx file (example.gqlx) located somewhere:
type Todo {
id: ID
userId: Int
title: String
completed: Boolean
}
type Query {
todo(id: ID!): Todo {
get(`https://jsonplaceholder.typicode.com/todos/${id}`)
}
todos: [Todo] {
get(`https://jsonplaceholder.typicode.com/todos`)
}
}
Running a server with the following command:
gqlx serve example.gqlx --watch
will give you a GraphQL server sitting at port 8080. You can access the interactive GraphQL explorer via http://localhost:8080/graphiql. Note, since we supplied the --watch flag we can just edit the gqlx file (e.g., to add a new resource) making it possible to access the updated resource definitions without needing to restart the server.
Furthermore, you can just add the --debug flag to enable writing debugger; statements in your gqlx files. This option lets you use the browser (e.g., Chrome Inspector reachable via about://inspect) to connect and debug your compiled gqlx resolvers.
We are totally open for contribution and appreciate any feedback, bug reports, or feature requests. More detailed information on contributing incl. a code of conduct are soon to be presented.
This project adheres to semantic versioning.
You can find the changelog in the CHANGELOG.md file.
gqlx-cli is released using the MIT license. For more information see the LICENSE file.
FAQs
Command line utility for GraphQL eXtended.
We found that gqlx-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.