> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meetsilicon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate content

> Find the content in your project that is broken, and the details of each error

You can trigger a validation on a project using the Silicon CLI so you can check locally if your changes will break anything. You can also add `silicon validate` to your [GitHub Actions](#configure-github-actions) so changes can't be merged unless they pass the validation. For what the validator checks and every way it runs, see [Validating your content](https://docs.meetsilicon.com/workflow/validating-your-content.md).

## Usage

### Validate your changes against your project by running silicon validate

You can run `silicon validate` to check if your changes break any of the content in production. By default, `silicon validate` will check your changes against the content in the project you've selected on the CLI. You can change your project using `silicon config set-project`.

```bash theme={null}
silicon validate
```

Optionally you can use the `--preview` argument to validate your last preview environment created from the CLI.

You will get a list of errors if your local files are going to break some content on your project. These errors will not be reflected on the validation table on Silicon settings.

### Validate any project using the project UUID

You can run a validation on any project by specifying the project UUID in the `silicon validate` command.

```bash theme={null}
silicon validate --project <project uuid>
```

**Note:** you can get your project UUID from the Silicon URL by selecting the ID after the `projects/`

### Validate only specific elements of your project

You can select which parts of your project you would like to validate using the `--only` argument.

```bash theme={null}
silicon validate --only tables charts dashboards
```

Available options:

* `tables`

* `charts`

* `dashboards`

### Treat warnings as errors

Validation reports issues at two levels. Errors are broken content, like a chart referencing a field that no longer exists. Chart configuration warnings are advisory issues that don't break content but can cause incorrect rendering, like a dimension or table calculation in a chart's query that isn't used in the chart configuration.

By default, `silicon validate` reports errors only. Chart configuration warnings are hidden, the output notes how many were hidden, and they never affect the exit code.

Add `--severity warning` to show chart configuration warnings and treat them as errors:

```bash theme={null}
silicon validate --severity warning
```

With `--severity warning`, the command exits with return code 1 if any warnings or errors exist. Use this in CI to block merges on warnings instead of letting them go unnoticed.

### Use strict compilation

Silicon uses **partial compilation** by default. Field, join, and set-validation failures that can be isolated are reported as warnings so the rest of the explore stays usable; failures that cannot be isolated can still produce errors.

Add `--no-partial-compilation` to report the failures that partial compilation would otherwise isolate as errors instead. It doesn't promote unrelated, non-blocking warnings -- other generic compilation warnings stay non-blocking.

If your project uses physical column references such as `${TABLE}.order_id`, add `--validate-warehouse-columns` to check supported unquoted references with warehouse queries that return no rows. It's opt-in because it sends those queries; whether your warehouse scans or bills for them is warehouse-dependent, and the check needs warehouse credentials and the warehouse catalog. Warehouse-column errors are reported whether partial compilation is on or off.

See the [CLI compilation options](https://docs.meetsilicon.com/workflow/cli/reference.md#partial-compilation) for the supported reference syntax and every skip condition.

Combine both flags for the strictest check:

```bash theme={null}
silicon validate --validate-warehouse-columns --no-partial-compilation
```

`silicon validate` includes `tables` by default, so the warehouse-column check runs without extra options and table model errors make the command exit non-zero. If you customize `--only`, keep `tables` in the list to run the warehouse check; use `--only tables` to validate tables without charts or dashboards.

The check requires warehouse credentials and the warehouse catalog, and is skipped for dbt Cloud CLI and Silicon YAML-only compilation. See the [CLI reference](https://docs.meetsilicon.com/workflow/cli/reference.md#validate-physical-warehouse-columns) for supported reference syntax and all skip conditions.

## Configure Github actions

This command will create a preview environment, and then validate this preview by specifying `--preview` on the validate command.`silicon validate` will return an error (return code 1) if there is at least 1 validation error on your project. You can use this output to block a deploy on Github actions like this

```yaml theme={null}
- name: Start preview
  run: silicon start-preview --name ${GITHUB_REF##*/}
- name: Validate preview
  run: silicon validate --preview
```

To learn more about setting up GitHub Actions for Silicon, see [Automate with CI/CD](https://docs.meetsilicon.com/workflow/set-up-ci-cd.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.