---
layout: default
title: CLI Reference
nav_order: 3
---
# Trellis CLI Reference
The `trellis` binary renders Mermaid diagrams to SVG, PNG, HTML, ASCII, and Draw.io. It reads from a file or stdin, and writes to a file or stdout.
---
## Installation
### Binary download
| Platform | File |
|---|---|
| macOS (Apple Silicon) | `trellis-vX.Y.Z-aarch64-apple-darwin.tar.gz` |
| macOS (Intel) | `trellis-vX.Y.Z-x86_64-apple-darwin.tar.gz` |
| Linux x86_64 | `trellis-vX.Y.Z-x86_64-unknown-linux-gnu.tar.gz` |
| Windows x86_64 | `trellis-vX.Y.Z-x86_64-pc-windows-gnu.zip` |
Download from the [releases page](https://github.com/trellis-lab/trellis/releases), extract, and add `trellis` to your `PATH`.
### Docker
```bash
docker pull ghcr.io/trellis-lab/trellis:latest
```
---
## Quick start
```bash
trellis render diagram.mmd -o diagram.svg
```
Open `diagram.svg` in any browser or embed it in documentation.
---
## Command reference
### `render`
Render a single diagram.
```bash
trellis render -o