> ## 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.

# Silicon CLI

> Develop your semantic layer locally, preview it against real data, and deploy it

The Silicon CLI is how you build and ship your semantic layer. It runs against your dbt project on your own machine, so you can write metrics and dimensions, see them working, and promote them to production without leaving your editor.

Start by [installing the CLI](https://docs.meetsilicon.com/workflow/cli/install.md) and [authenticating](https://docs.meetsilicon.com/workflow/cli/authenticate.md) against your instance.

## The development loop

Most work follows the same cycle.

**Write your semantic layer.** [`silicon generate`](https://docs.meetsilicon.com/workflow/cli/generate) writes a starting `schema.yml` for each model with an entry per column, so you edit rather than author from scratch. [`silicon compile`](https://docs.meetsilicon.com/workflow/cli/compile) builds your project locally to confirm the YAML resolves.

**Check your work before it ships.** [`silicon preview`](https://docs.meetsilicon.com/workflow/preview-projects) spins up a temporary project from your local changes so you can query real data without touching production. [`silicon validate`](https://docs.meetsilicon.com/workflow/cli/validate) reports content that your changes would break -- a chart referencing a field you renamed, for instance -- and [`silicon lint`](https://docs.meetsilicon.com/workflow/cli/lint) checks your Silicon Code files against their schemas.

**Ship it.** [`silicon deploy`](https://docs.meetsilicon.com/workflow/cli/deploy) pushes the compiled project to production. In CI, the same commands run on every pull request -- see [setting up CI/CD](https://docs.meetsilicon.com/workflow/set-up-ci-cd.md).

## Managing content as code

Charts, dashboards, agents, and data apps can round-trip through the CLI as well as the UI. `silicon download` pulls them into your repository as files and `silicon upload` sends them back, which is how you version content, review it in a pull request, or copy it between projects. See [content as code](https://docs.meetsilicon.com/workflow/content-as-code.md).

## Every command and flag

The [CLI reference](https://docs.meetsilicon.com/workflow/cli/reference.md) documents every command, flag, and environment variable.


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