Skip to content

dag-get-chart ​

Download the currently deployed Helm chart from the IaC repository as a .tgz archive.

Usage ​

sh
dag-get-chart <output-path> [options]

Arguments ​

ArgumentDescription
<output-path>File path to write the downloaded .tgz to

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.

Exit Codes ​

CodeMeaning
0Chart downloaded
1Error (see stderr)

Examples ​

Download the chart in a GitLab CI pipeline:

sh
dag-get-chart ./deployed-chart.tgz \
    --server https://dag.example.com \
    --environment production

Download with explicit credentials:

sh
dag-get-chart ./deployed-chart.tgz \
    --server https://dag.example.com \
    --repo https://gitlab.com/org/my-app \
    --job-id 12345 \
    --job-token glcbt-abc123