Skip to content

Commit

Permalink
chore(docs): Regenerate CLI docs for v0.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrombley committed May 7, 2021
1 parent dfc7e92 commit 8af4857
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/cli/newrelic_utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Various utility methods
* [newrelic](newrelic.md) - The New Relic CLI
* [newrelic utils jq](newrelic_utils_jq.md) - Parse json strings
* [newrelic utils semver](newrelic_utils_semver.md) - Work with semantic version strings
* [newrelic utils terraform](newrelic_utils_terraform.md) - Tools for working with Terraform

36 changes: 36 additions & 0 deletions docs/cli/newrelic_utils_terraform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## newrelic utils terraform

Tools for working with Terraform

### Synopsis

Tools for working with Terraform

The terraform commands can be used for generating Terraform HCL for simple observability
as code use cases.


### Examples

```
cat terraform.json | newrelic utils terraform dashboard --label my_dashboard_resource
```

### Options

```
-h, --help help for terraform
```

### Options inherited from parent commands

```
--format string output text format [JSON, Text, YAML] (default "JSON")
--plain output compact text
```

### SEE ALSO

* [newrelic utils](newrelic_utils.md) - Various utility methods
* [newrelic utils terraform dashboard](newrelic_utils_terraform_dashboard.md) - Generate HCL for the newrelic_one_dashboard resource

47 changes: 47 additions & 0 deletions docs/cli/newrelic_utils_terraform_dashboard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
## newrelic utils terraform dashboard

Generate HCL for the newrelic_one_dashboard resource

### Synopsis

Generate HCL for the newrelic_one_dashboard resource

This command generates HCL configuration for newrelic_one_dashboard resources from
exported JSON documents. For more detail on exporting dashboards to JSON, see
https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/manage-your-dashboard/#dash-json

Input can be sourced from STDIN per the provided example, or from a file using the --file option.
Output will be sent to STDOUT by default but can be redirected to a file with the --out option.


```
newrelic utils terraform dashboard [flags]
```

### Examples

```
cat terraform.json | newrelic utils terraform dashboard --label my_dashboard_resource
```

### Options

```
-f, --file string a file that contains exported dashboard JSON
-h, --help help for dashboard
-l, --label string the resource label to use when generating resource HCL
-o, --out string the file to send the generated HCL to
-w, --shiftWidth int the indentation shift with of the output (default 2)
```

### Options inherited from parent commands

```
--format string output text format [JSON, Text, YAML] (default "JSON")
--plain output compact text
```

### SEE ALSO

* [newrelic utils terraform](newrelic_utils_terraform.md) - Tools for working with Terraform

0 comments on commit 8af4857

Please sign in to comment.