Skip to content

docs(dm): explain how to print source config as YAML #24685

Closed

Description

@onlyxiaohuang

Error Report

  1. 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.

  1. 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:

 dmctl --master-addr <master-addr> config source <source-id> | jq -r '.cfg'

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.

Activity

  1. added
    contribution
    first-time-contributor
    on Nov 12, 2026
  2. ti-chi-bot commented on Nov 12, 2026

    @ti-chi-bot

    Welcome @onlyxiaohuang! It looks like this is your first issue to pingcap/docs 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributionfirst-time-contributor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions