Skip to main content
Version: v3.x

DDN CLI: ddn project init

Configure the local directory to use a Hasura DDN project, creating a DDN project and subgraphs as necessary.

Synopsis

Configure the local directory to use a Hasura DDN project, creating a DDN project and subgraphs as necessary

ddn project init [flags]

Examples

# Initialize a new Hasura DDN project with subgraphs based on your local directory
ddn project init

# Configure the local directory to use an existing Hasura DDN project creating subgraphs on the DDN project as necessary
ddn project init --with-project myproject

Options

    --ci                     Disables the use of context
-c, --context string Name of the context to use. (default <current_context>)
--data-plane-id uuid The DDN instance where the Project should be hosted
--env-file-name string Env file to be created and added to context as cloudEnvFile (default ".env.cloud")
--from-env-file string Env file to initialize the cloudEnvFile from
-h, --help help for init
--plan string DDN Project plan
--supergraph string Path to Supergraph config file
--with-project string Use an existing project instead of creating a new one

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...