Netlify CLI


graph

(Deprecated) Control the Netlify Graph functions for the current site

Usage

netlify graph

Flags

  • debug (boolean) - Print debugging information
  • http-proxy (string) - Proxy server address to route requests through.
  • http-proxy-certificate-filename (string) - Certificate file to use when connecting using a proxy server
Subcommanddescription
graph:config:writeWrite a .graphqlrc.json file to the current directory for use with local tooling (e.g. the graphql extension for vscode)
graph:editLaunch the browser to edit your local graph functions from Netlify
graph:handlerGenerate a handler for a Graph operation given its name. See graph:operations for a list of operations.
graph:initInitialize all the resources for Netlify Graph
graph:libraryGenerate the Graph function library
graph:operationsList all of the locally available operations
graph:pullPull your remote Netlify Graph schema locally, and process pending Graph edit events

Examples

netlify graph:pull
netlify graph:edit

graph:config:write

Write a .graphqlrc.json file to the current directory for use with local tooling (e.g. the graphql extension for vscode)

Usage

netlify graph:config:write

Flags

  • debug (boolean) - Print debugging information
  • http-proxy (string) - Proxy server address to route requests through.
  • http-proxy-certificate-filename (string) - Certificate file to use when connecting using a proxy server

graph:edit

Launch the browser to edit your local graph functions from Netlify

Usage

netlify graph:edit

Flags

  • debug (boolean) - Print debugging information
  • http-proxy (string) - Proxy server address to route requests through.
  • http-proxy-certificate-filename (string) - Certificate file to use when connecting using a proxy server

graph:handler

Generate a handler for a Graph operation given its name. See graph:operations for a list of operations.

Usage

netlify graph:handler

Arguments

  • name - Operation name(s)

Flags

  • codegen (string) - The id of the specific code generator to use
  • data (string) - Optional data to pass along to the code generator
  • debug (boolean) - Print debugging information
  • http-proxy (string) - Proxy server address to route requests through.
  • http-proxy-certificate-filename (string) - Certificate file to use when connecting using a proxy server

graph:init

Initialize all the resources for Netlify Graph

Usage

netlify graph:init

Flags

  • debug (boolean) - Print debugging information
  • http-proxy (string) - Proxy server address to route requests through.
  • http-proxy-certificate-filename (string) - Certificate file to use when connecting using a proxy server

graph:library

Generate the Graph function library

Usage

netlify graph:library

Flags

  • debug (boolean) - Print debugging information
  • http-proxy (string) - Proxy server address to route requests through.
  • http-proxy-certificate-filename (string) - Certificate file to use when connecting using a proxy server

graph:operations

List all of the locally available operations

Usage

netlify graph:operations

Flags

  • debug (boolean) - Print debugging information
  • http-proxy (string) - Proxy server address to route requests through.
  • http-proxy-certificate-filename (string) - Certificate file to use when connecting using a proxy server

graph:pull

Pull your remote Netlify Graph schema locally, and process pending Graph edit events

Usage

netlify graph:pull

Flags

  • debug (boolean) - Print debugging information
  • http-proxy (string) - Proxy server address to route requests through.
  • http-proxy-certificate-filename (string) - Certificate file to use when connecting using a proxy server