# Share CLI results with the Snyk Web UI

You can use the [CLI](https://docs.snyk.io/developer-tools/snyk-cli) `snyk iac test` command to address known configuration issues.

To see these issues displayed in the Snyk Web UI, run the following CLI command:

`snyk iac test myproject --report`

{% hint style="info" %}
Using [Custom rules](https://docs.snyk.io/scan-with-snyk/snyk-iac/current-iac-custom-rules) and the Share Results functionality together is not currently supported.

Snyk does not share any file contents over the network, only the required metadata for the configuration issues that were just scanned.
{% endhint %}

## `snyk iac test --report` example output

```
> snyk iac test myproject --report

Testing arm-file.tf...


Infrastructure as code issues:
  ✗ VM Agent is not provisioned automatically for Windows [Low Severity] [SNYK-CC-AZURE-667] in Compute
    introduced by resource > azurerm_virtual_machine[my_terraformvm] > os_profile_windows_config > provision_vm_agent


Organization:      my.org
Type:              Terraform
Target file:       arm-file.tf
Project name:      myproject
Open source:       no
Project path:      myproject

Tested arm-file.tf for known issues, found 1 issues

Your test results are available at: https://app.snyk.io/org/my.org/projects under the name myproject
```

This sends a snapshot of your current configuration issues to your Snyk dashboard for viewing in the Snyk Web UI.

## Viewing snapshots in the Snyk Web UI

Log in to the Snyk Web UI and navigate to your Organization Project page to see the most recent snapshot of your scanned Project.

<figure><img src="https://2533899886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdwVZ6HOZriajCf5nXH%2Fuploads%2Fgit-blob-f86ff011aa112ce74634d4ecbb993bea75fdd2db%2Fimage.png?alt=media" alt="Newly scanned Project listed on the Projects page"><figcaption><p>Newly scanned Project listed on the Projects page</p></figcaption></figure>

You can also open the Project itself and see the Project details:

<figure><img src="https://2533899886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdwVZ6HOZriajCf5nXH%2Fuploads%2Fgit-blob-117b5f0e2385420f29e2cbad2ae94e045474671f%2Fimage%20(395).png?alt=media&#x26;token=64f9d303-8d0b-48c2-a952-e1734fcf06c2" alt="Project details for a Project"><figcaption><p>Project details for a Project</p></figcaption></figure>

## **Ignores**

You can ignore issues using the Snyk Web UI or by creating a `.snyk` policy file along with your Project when scanning. For more information, see [Iac Ignores using the .snyk policy file](https://docs.snyk.io/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/snyk-cli-for-iac/iac-ignores-using-the-.snyk-policy-file).

{% hint style="info" %}
Issues that are ignored by using the `.snyk` policy file can not be unignored in the Snyk web UI.
{% endhint %}

## Project tags

You can attach tags to the scanned Projects using the `--project-tags` option. This option accepts a comma-separated list of tags, where each tag is a key-value pair. Keys and values are separated by an `=` sign. The `--project-tags` option is valid only when used with `--report`.

The following example attaches the tags `department` and `team` to the scanned Projects, with values `platform` and `persistence`, respectively.

```
> snyk iac test myproject --report \
    --project-tags=department=platform,team=persistence
```

## Project attributes

You can set attributes for the scanned Projects using the `--project-business-criticality`, `--project-environment`, and `--project-lifecycle` options. These options are valid only when used with `--report`.

* `--project-business-criticality` accepts a comma-separated list of the following values: `critical`, `high`, `medium`, `low`.
* `--project-environment` accepts a comma-separated list of the following values: `frontend`, `backend`, `internal`, `external`, `mobile`, `saas`, `onprem`, `hosted`, `distributed`.
* `--project-lifecycle` accepts a comma-separated list of the following values: `production`, `development`, `sandbox`.

The following example sets the business criticality to `high`, the environment to the values `frontend` and `internal`, and the lifecycle to `development` for each scanned Project.

```
> snyk iac test myproject --report \
    --project-business-criticality=high \
    --project-environment=frontend,internal \
    --project-lifecycle=development
```

## Target reference

You can set the target reference for the scanned Projects using the `--target-reference` option. This option is valid only when used with `--report`.

The following example sets the target reference for the scanned Projects to the name of the current Git branch.

```
snyk iac test myproject --report \
    --target-reference="$(git branch --show-current)"
```
