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

# Build your semantic layer

> Install the CLI, add Tables, and define the metrics and dimensions your whole team explores

This track is for people who build in Silicon. Everything you expose for BI is written as code in your dbt project, so the developer journey runs through the Silicon CLI: you generate Tables from your models, then define the metrics and dimensions your team explores.

Each step below gets you moving, then links to the page that covers it in full.

## 1. Install and authenticate the CLI

The CLI is how your dbt project reaches Silicon. Install it, then log in to link it to your instance.

```bash theme={null}
brew tap silicon/silicon
brew trust silicon/silicon
brew install silicon
silicon login https://your-instance.meetsilicon.com
```

See [installing the CLI](https://docs.meetsilicon.com/workflow/cli/install.md) and [authenticating](https://docs.meetsilicon.com/workflow/cli/authenticate.md). To build conversationally with an AI coding agent, also [install the Silicon skills](https://docs.meetsilicon.com/workflow/install-agent-skills.md).

## 2. Choose which models become Tables

Tag the dbt models you want to expose, so staging and intermediate models stay out of Silicon:

```yaml theme={null}
models:
  - name: model_name
    config:
      tags: ['silicon']
```

Then point your project's Tables configuration at that tag. See [choosing which Tables appear](https://docs.meetsilicon.com/semantic-layer/tables.md#choosing-which-tables-appear-in-silicon).

## 3. Generate your YAML

`silicon generate` writes a starting YAML file for each model, with an entry for every column, so you're editing rather than authoring from scratch.

```bash theme={null}
silicon generate -s model_name
```

See [`silicon generate`](https://docs.meetsilicon.com/workflow/cli/generate).

## 4. Define dimensions

Dimensions are the attributes your team groups and filters by. Each one is a column in your model, declared in its YAML.

See [dimensions](https://docs.meetsilicon.com/semantic-layer/dimensions.md) for the full set of configuration options, formatting, and additional dimensions.

## 5. Define metrics

Metrics are the aggregations your team measures. Defining them once here is what keeps everyone's numbers consistent.

See [metrics](https://docs.meetsilicon.com/semantic-layer/metrics.md) for every metric type and configuration option.

## 6. Preview before you deploy

`silicon preview` spins up a temporary project from your local changes so you can check your work against real data without touching production.

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

See [preview projects](https://docs.meetsilicon.com/workflow/preview-projects.md).

## 7. Deploy to production

Once the preview looks right, deploy the changes to your production project.

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

See [`silicon deploy`](https://docs.meetsilicon.com/workflow/cli/deploy), and [set up CI/CD](https://docs.meetsilicon.com/workflow/set-up-ci-cd.md) to run this automatically on merge.

## Where to go next

The rest of the [Workflow](https://docs.meetsilicon.com/workflow) area covers the software lifecycle around your project: [preview environments](https://docs.meetsilicon.com/workflow/preview-projects.md), [pull request checks](https://docs.meetsilicon.com/workflow/pull-requests.md), [content as code](https://docs.meetsilicon.com/workflow/content-as-code.md), and [validating your content](https://docs.meetsilicon.com/workflow/validating-your-content.md).

Prefer to watch first? This overview walks through the Silicon developer workflow end to end.


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