Skip to main content
Version: v3.x

DDN CLI: ddn context set

Set the value of a key in the context.

Synopsis

Set default value of keys to be used in DDN CLI commands

ddn context set <key> <value> (Allowed keys: localEnvFile, cloudEnvFile, project, supergraph, subgraph) [flags]

Examples

# Set the Project name in the context
ddn context set project foo-bar-1234

# Set the local Supergraph config file path in the context
ddn context set supergraph ./supergraph.local.yaml

# Set the Subgraph config file path in the context
ddn context set subgraph ./app/subgraph.yaml

Options

-c, --context string   Name of the context to use. (default <current_context>)
-h, --help help for set

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