File tree Expand file tree Collapse file tree 5 files changed +54
-0
lines changed
docs/reference/cli/config Expand file tree Collapse file tree 5 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,18 @@ dsc config export [Options] --input <INPUT>
31
31
cat < FILE> | dsc config export [Options] --file -
32
32
```
33
33
34
+ ### Configuration document from file with parameters from stdin
35
+
36
+ ``` sh
37
+ cat < PARAMETERS_FILE> | dsc config --parameters-file - export [Options] --file < FILE>
38
+ ```
39
+
40
+ ### Configuration document from option string with parameters from stdin
41
+
42
+ ``` sh
43
+ cat < PARAMETERS_FILE> | dsc config --parameters-file - export [Options] --input < INPUT>
44
+ ```
45
+
34
46
## Description
35
47
36
48
The ` export ` subcommand generates a configuration document that includes every instance of a set of
Original file line number Diff line number Diff line change @@ -31,6 +31,18 @@ dsc config get [Options] --input <INPUT>
31
31
cat < FILE> | dsc config get [Options] --file -
32
32
```
33
33
34
+ ### Configuration document from file with parameters from stdin
35
+
36
+ ``` sh
37
+ cat < PARAMETERS_FILE> | dsc config --parameters-file - get [Options] --file < FILE>
38
+ ```
39
+
40
+ ### Configuration document from option string with parameters from stdin
41
+
42
+ ``` sh
43
+ cat < PARAMETERS_FILE> | dsc config --parameters-file - get [Options] --input < INPUT>
44
+ ```
45
+
34
46
## Description
35
47
36
48
The ` get ` subcommand returns the actual state of the resource instances in a configuration
Original file line number Diff line number Diff line change @@ -78,6 +78,11 @@ for that parameter.
78
78
79
79
This option is mutually exclusive with the ` --parameters ` option.
80
80
81
+ Starting with DSC version 3.1.0, you can pass the parameters data to a subcommand over stdin. When
82
+ you do, you must pass the configuration document as an input string or the path to a file on the
83
+ system. You can't pass both the parameters file and the configuration document to a command from
84
+ stdin.
85
+
81
86
For more information about defining parameters in a configuration document, see
82
87
[ DSC Configuration document parameter schema] [ 06 ] . For more information about using parameters in
83
88
configuration document, see the [ parameters function reference] [ 07 ] .
Original file line number Diff line number Diff line change @@ -31,6 +31,19 @@ dsc config set [Options] --input <INPUT>
31
31
cat < FILE> | dsc config set [Options] --file -
32
32
```
33
33
34
+ ### Configuration document from file with parameters from stdin
35
+
36
+ ``` sh
37
+ cat < PARAMETERS_FILE> | dsc config --parameters-file - set [Options] --file < FILE>
38
+ ```
39
+
40
+ ### Configuration document from option string with parameters from stdin
41
+
42
+ ``` sh
43
+ cat < PARAMETERS_FILE> | dsc config --parameters-file - set [Options] --input < INPUT>
44
+ ```
45
+
46
+
34
47
## Description
35
48
36
49
The ` set ` subcommand enforces the desired state of the resource instances in a configuration
Original file line number Diff line number Diff line change @@ -31,6 +31,18 @@ dsc config test [Options] --input <INPUT>
31
31
cat < FILE> | dsc config test [Options] --file -
32
32
```
33
33
34
+ ### Configuration document from file with parameters from stdin
35
+
36
+ ``` sh
37
+ cat < PARAMETERS_FILE> | dsc config --parameters-file - test [Options] --file < FILE>
38
+ ```
39
+
40
+ ### Configuration document from option string with parameters from stdin
41
+
42
+ ``` sh
43
+ cat < PARAMETERS_FILE> | dsc config --parameters-file - test [Options] --input < INPUT>
44
+ ```
45
+
34
46
## Description
35
47
36
48
The ` test ` subcommand verifies whether the resource instances in a configuration document are in
You can’t perform that action at this time.
0 commit comments