Skip to main content
Version: v3.x

DDN CLI: ddn command add

Add new Commands to the local metadata.

Synopsis

Add new Commands to the local metadata

ddn command add <connector-link-name> <procedure/function-name> [flags]

Examples

# Add all Commands for DataConnectorLink "myfns" in the subgraph set in the context
ddn command add myfns "*"

# Add a new Command "Login" from the procedure "Login" in the DataConnectorLink "myfns" in "app" Subgraph
ddn command add myfns Login --subgraph ./app/subgraph.yaml

# Add all the Commands from the procedures/functions in the DataConnectorLink "myfns" in "app" Subgraph
ddn command add myfns "*" --subgraph ./app/subgraph.yaml

# Add Commands filtered by glob pattern from the procedures/functions in the DataConnectorLink "myfns" in "app" Subgraph
ddn command add myfns user* --subgraph ./app/subgraph.yaml

Options

    --ci                Disables the use of context
-c, --context string Name of the context to use. (default <current_context>)
-h, --help help for add
--pattern string Pattern to detect targets. Can be 'glob' or 'literal'. (default "glob")
--subgraph string Path to Subgraph config file

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