DDN CLI: ddn supergraph init
Initialize a new Supergraph project directory.
Synopsis
Initialize a new Supergraph project directory
ddn supergraph init <path-to-project-dir> [flags]
Examples
# Initialize a new Supergraph project directory with a default subgraph 'app'
ddn supergraph init <path-to-project-dir>
# Initialize a new Supergraph project directory with a subgraph 'mysg'
ddn supergraph init <path-to-project-dir> --create-subgraph mysg
Options
--create-subgraph string The default subgraph to add (default "app")
--globals-subgraph string Name of the globals subgraph (default "globals")
-h, --help help for init
--no-globals-subgraph Do not add a globals subgraph
--no-subgraph Do not add a default subgraph
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
- ddn supergraph - Perform Supergraph related operations