Skip to main content
Version: v3.x

DDN CLI: ddn subgraph init

Initialize a new Subgraph in local metadata.

Synopsis

Initialize a new Subgraph in local metadata

ddn subgraph init <subgraph-name> [flags]

Examples

# Initialize a Subgraph "app" in the directory "./app"
ddn subgraph init app --dir ./app

# Initialize a Subgraph "app" in the directory "./app" and add it to Supergraph config files "./supergraph.yaml" and "./supergraph.cloud.yaml"
ddn subgraph init app --dir ./app --target-supergraph ./supergraph.yaml --target-supergraph ./supergraph.cloud.yaml

Options

    --dir string                      Directory to initialize the Supergraph (required)
-h, --help help for init
--target-supergraph stringArray Supergraph config file to add the Subgraph. Can be repeated to provide multiple Supergraph config files

Options inherited from parent operations

--log-level string   Log level. Can be DEBUG, WARN, INFO, ERROR, or FATAL. (default "INFO")
--no-prompt Do not prompt for required but missing flags
--out string Output format. Can be table, json or yaml. (default "table")
--timeout int Request timeout in seconds [env: HASURA_DDN_TIMEOUT] (default 100)

Parent operation

Loading...