Skip to content

dsc config export have missing option --path or -p #718

@mimachniak

Description

@mimachniak

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

Hi team,
When I try to export current configuration base on documentation
https://learn.microsoft.com/en-us/powershell/dsc/reference/cli/config/export?view=dsc-3.0

Theere is no option to point --path for export configurartion, when I check dsc config export -h I get this options avalible as Input

Image

Steps to reproduce

  1. Install IIS server manually
  2. dsc config export -h

Expected behavior

dsc config export -p .\iis.dsc.yaml

Actual behavior

Options:
  -i, --input <INPUT>                  The input document as JSON or YAML to pass to the configuration or resource
  -f, --file <FILE>                    The path to a file used as input to the configuration or resource. Use '-' for the file to read from STDIN.
  -o, --output-format <OUTPUT_FORMAT>  The output format to use [possible values: json, pretty-json, yaml]
  -h, --help                           Print help

Error details

Missing option or incorect options

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.26100.2161
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.2161
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version

3.0.0.

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions