Skip to content

Commit

Permalink
docs: Add documentation for the config command
Browse files Browse the repository at this point in the history
  • Loading branch information
Brocco committed Mar 17, 2018
1 parent b94b607 commit 2f8a12b
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions docs/documentation/config.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<!-- Links in /docs/documentation should NOT have `.md` at the end, because they end up in our wiki at release. -->

# ng get
# ng config

## Overview
`ng get [key]` Get a value from the configuration.
`ng config [key] [value]` Get/set configuration values.
`[key]` should be in JSON path format. Example: `a[3].foo.bar[2]`.
If only the `[key]` is provided it will get the value.
If both the `[key]` and `[value]` are provided it will set the value.

## Options
<details>
Expand All @@ -13,24 +15,6 @@
<code>--global</code> <em>default value: false</em>
</p>
<p>
Get the value in the global configuration (in your home directory).
</p>
</details>


# ng set

## Overview
`ng set [key]=[value]` Set a value in the configuration.
`[key]` should be in JSON path format. Example: `a[3].foo.bar[2]`.

## Options
<details>
<summary>global</summary>
<p>
<code>--global</code> <em>default value: false</em>
</p>
<p>
Get the value in the global configuration (in your home directory).
Get/set the value in the global configuration (in your home directory).
</p>
</details>

0 comments on commit 2f8a12b

Please sign in to comment.