How to get pure JSON output #38877
-
How are you running Renovate?Self-hosted Renovate If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.Docker Please tell us more about your question or problemWhen trying out new configs today, I use this command: That seems to partially output JSON but partially other things (like Any suggestions? 🙂 Logs (if relevant)Sample output$ docker run -e RENOVATE_GITHUB_COM_TOKEN="${GH_TOKEN:?}" -e LOG_LEVEL=info --rm -v "$(pwd)":/usr/src/app ghcr.io/renovatebot/renovate:latest --print-config --dry-run=extract --platform local
INFO: Repository started (repository=local)
"renovateVersion": "41.160.1"
fatal: detected dubious ownership in repository at '/usr/src/app'
To add an exception for this directory, call:
git config --global --add safe.directory /usr/src/app
fatal: detected dubious ownership in repository at '/usr/src/app'
To add an exception for this directory, call:
git config --global --add safe.directory /usr/src/app
INFO: Full resolved config and hostRules including presets (repository=local)
"config": {
"mode": "full",
"detectGlobalManagerConfig": false,
"detectHostRulesFromEnv": false,
"useCloudMetadataServices": true,
"bumpVersions": [],
"postUpgradeTasks": {
"commands": [],
"fileFilters": [],
"executionMode": "update"
},
[…] |
Beta Was this translation helpful? Give feedback.
Answered by
jamietanna
Oct 27, 2025
Replies: 1 comment 3 replies
-
|
Via what you're looking for is That'll give you newline-delimited JSON (one JSON object per line of output) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
jamietanna
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Via what you're looking for is
LOG_FORMAT=jsonThat'll give you newline-delimited JSON (one JSON object per line of output)