Skip to content

dag-get-values ​

Fetch the currently deployed values.yaml from the IaC repository and print it as JSON to stdout.

Usage ​

sh
dag-get-values [options]

Options ​

OptionEnv VariableDefaultDescription
--server <url>DAG_SERVER_URL—DAG server URL (required)
--repo <url>DAG_REPO_URLauto-detectedOverride the repository URL
--job-id <id>DAG_JOB_IDauto-detectedOverride the CI job ID
--job-token <token>DAG_JOB_TOKENauto-detectedOverride the CI job token
--environment <name>DAG_ENVIRONMENT—Target environment name when a branch has multiple environments

CI Auto-Detection ​

CI environment variables are auto-detected in the same way as dag-deploy.

Output ​

Prints the values as pretty-printed JSON to stdout:

json
{
    "replicaCount": 3,
    "image": {
        "repository": "my-app",
        "tag": "v1.2.3"
    }
}

Exit Codes ​

CodeMeaning
0Values printed
1Error (see stderr)

Examples ​

Print current values in a CI pipeline:

sh
dag-get-values --server https://dag.example.com --environment production

Pipe into jq to extract a specific value:

sh
dag-get-values --server https://dag.example.com | jq -r '.image.tag'

Save to a file:

sh
dag-get-values --server https://dag.example.com > current-values.json