Skip to main content
Version: v3.x

DDN CLI: ddn connector setenv

Run specified command with environment variables set.

Synopsis

Run specified command with environment variables set

ddn connector setenv --connector <path-to-connector-config-file> -- <command> [flags]

Examples

# Set environment variables for the Connector data source
ddn connector setenv --connector ./foo/my_db.connector.local.yaml -- npm run start

Options

    --ci                     Disables the use of context
--connector string Path to Connector config file
-c, --context string Name of the context to use. (default <current_context>)
-e, --env stringArray Environment variable, e.g. key=val. Can be repeated to provide multiple env vars
--env-file stringArray Path to .env file. Can be repeated to provide multiple env files
-h, --help help for setenv

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