Uploaded image for project: 'Puppet Development Kit'
  1. Puppet Development Kit
  2. PDK-1107

pdk config get to CLI

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDK 1.13.0
    • Component/s: None
    • Template:
    • Team:
      Puppet Developer Experience
    • Release Notes:
      New Feature
    • Release Notes Summary:
      See Glenn's pre-docs
    • QA Risk Assessment:
      Needs Assessment

      Description

      pdk config get <key> [--format=<format>]

      Retrieves a specific value from the resolved configuration.

      If <key> is a leaf node of the configuration graph, this command will return the raw value:

      $ pdk config get user.default_template.url
      https://github.com/puppetlabs/pdk-templates.git
      If <key> is a non-leaf node of the configuration graph, this command will return a structure containing the values of all sub-keys of the given key:

      $ pdk config get user.default_template
      url: https://github.com/puppetlabs/pdk-templates.git
      ref: master
      You can also supply the --format option to control how keys and values are presented:

      $ pdk config get user.default_template.url --format=json

      { "url": "https://github.com/.../pdk-templates.git" }

      $ pdk config get user.default_template --format=json

      { "url": "https://github.com/.../pdk-templates.git", "ref": "master" }

        Attachments

          Activity

            People

            Assignee:
            glenn.sarti Glenn Sarti
            Reporter:
            bryan.jen Bryan Jen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support