datadog-ci
$ datadog-ci Official Med RiskDatadog's official CI/CD automation CLI for uploading JUnit test reports, SARIF security scans, sourcemaps, DORA deployment events, and triggering Synthetics tests. Uses DATADOG_API_KEY / DATADOG_APP_KEY env vars and includes --dry-run on upload commands.
npm install -g @datadog/datadog-ci Use datadog-ci in pipelines for uploading JUnit/SARIF/sourcemaps and running Synthetics CI gates; use Datadog API/MCP to query metrics or logs.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Non-interactive env-var CLI with --dry-run on uploads, though outputs are plain text logs rather than --json.
- Supports
--dry-runonjunit upload,sourcemaps upload, andsarif upload - No global
--jsonoutput mode
Ephemeral env-var API keys (DATADOG_API_KEY) with no disk credential files and --dry-run validation.
- Env-var-only authentication and
--dry-runpayload checks
Available via npm/npx and standalone Node-bundled release binaries across macOS, Linux, and Windows.
- Available via
@datadog/datadog-ciand standalone binaries
Focused exclusively on CI ingestion and Synthetics triggers rather than general Datadog log/metric querying.
- Specialized CI uploader for JUnit, SARIF, DORA, and Synthetics
Official Datadog CLI under Apache-2.0 with regular releases.
- First-party
DataDog/datadog-cirepository
Documented subcommand READMEs and Datadog Continuous Integration docs.
- Documented at docs.datadoghq.com/continuous_integration/
Security, Auth & Guardrails
Reads DATADOG_API_KEY, DATADOG_APP_KEY, and DATADOG_SITE purely from environment variables.
Apache-2.0 open-source CLI; Datadog CI Visibility and Synthetics usage billed by Datadog plan.
# datadog-ci Agent Rules - Always pass `--dry-run` when testing `junit upload` or `sourcemaps upload` payloads. - Ensure `DATADOG_SITE` matches your account region (e.g. `datadoghq.com` vs `datadoghq.eu`).
Agent-Ready Command Recipes
Safe Read-Only Queries
datadog-ci version
Prints the installed CLI version without making network calls.
datadog-ci junit upload --service my-app --dry-run ./reports
Validates and parses JUnit XML files locally without uploading events to Datadog.
Controlled Writes & Previews
datadog-ci sourcemaps upload ./dist --service my-app --release-version 1.0.0 --minified-path-prefix /static --dry-run
Verifies sourcemap matching and bundle metadata without transmitting files.
Strengths for Agents
- +
--dry-runflags let agents validate JUnit, SARIF, and sourcemap uploads locally. - + Pure environment-variable credential model (
DATADOG_API_KEY,DATADOG_SITE). - + Zero interactive prompts across all CI subcommands.
Caveats & Pitfalls
- ! Does not query Datadog logs, APM traces, or metrics—strictly a CI ingestion/trigger tool.
- ! Outputs human-readable logs rather than structured JSON.