Skip to main content
Version: v3.x (DDN)

DDN CLI: ddn promptql-program add

Add a new PromptQL program.

Synopsis

Add a new PromptQL program

ddn promptql-program add [name] [flags]

Examples

# Add an empty program to iterate on
ddn promptql-programs add sum_numbers

# Initialize a program from a JSON artifact file
ddn promptql-programs add --from-artifact <path-to-program-json-file>

Options

    --add-env stringArray            Environment variable to be set in the Programs Connector. Can be repeated to provide multiple env vars
--ci Disables the use of context
--connector string Path to Connector YAML config file
-c, --context string Name of the context to use. (default <current_context>)
--forward-header stringArray HTTP headers to be forwarded to the Programs Connector. Can be repeated to provide multiple headers
--from-artifact string Path to a JSON artifact used to create the program
-h, --help help for add
--subgraph string Path to Subgraph config file
--supergraph string Path to Supergraph config file
--target-cloud-env-file string Path to the cloud environment file
--target-local-env-file string Path to the local environment 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