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

pdk config get to CLI

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PDK 1.13.0
    • None
    • New Feature
    • See Glenn's pre-docs
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support