You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(dm): explain how to print source config as YAML #24685
contributionThis PR is from a community contributor.first-time-contributorIndicates that the PR was contributed by an external member and is a first-time contributor.
What is the URL/path of the document related to this issue?
dm/dm-manage-source.md — the section describing the config source (DM v6+) and the legacy get-config command.
How would you like to improve it?
The command returns the source configuration as a YAML string inside the JSON .cfg field, so the YAML is escaped and difficult to read in the default output. Please add a short example showing how to extract and print it as plain text, for example:
Explain that jq -r '.cfg' prints the YAML with its line breaks (and can be redirected to a file). For DM versions before v6.0, note the corresponding get-config command. This is a documentation improvement; it does not request a change to command output.
This follows the discussion in pingcap/tiflow#3937, where the suggested direction was to document a jq-based workaround.
contributionThis PR is from a community contributor.first-time-contributorIndicates that the PR was contributed by an external member and is a first-time contributor.
Activity
ti-chi-bot commentedon Nov 12, 2026
Welcome @onlyxiaohuang! It looks like this is your first issue to pingcap/docs 🎉