# CLI Reference

> Every rastack command, grouped by what it does.

The `rastack` CLI (also aliased `ras`) drives the whole pipeline — from compiling resources to running the engine, shipping to AWS, and the design studio. Check the installed version with `rastack --version` (or `-v`).

## Compile & introspect

```bash title="terminal"
rastack compile [resourcesDir] [outDir]    # TS → schema.rastack.json + openapi.json
rastack check                              # validate the resource graph (FKs, cycles)
rastack list                               # list resources and their fields
rastack urls                               # print the emitted API routes
```

## Generate the client

```bash title="terminal"
rastack generate                 # OpenAPI → typed React hooks
rastack generate --schema-only   # regenerate types without the runtime
```

## Run the engine

```bash title="terminal"
rastack serve [--warehouse dir]  # run the Rust API
rastack admin [--warehouse dir]  # run the admin site
rastack wasm                     # compile the API to WebAssembly (browser dev)
```

## Ship it — deploy & CI

The DevOps surface is CLI-driven too: scaffold a repo, configure its serverless deployment, and run the pipeline — so a GitHub Actions step is a single line.

```bash title="terminal"
rastack init                     # template the base GitHub Actions + .rastack/deploy.json
rastack deploy [--print] [--run] # configure the deployment; print the stack launch command
rastack ci <check|build|deploy>  # run the CI pipeline (--plan prints every step)
```

> **Tip:** Full walkthrough on the [Deployment](https://reactapistack.com/docs/deployment.md) page.

## Design system & data

```bash title="terminal"
rastack tokens [input] [outDir]  # compile the design system
rastack design                   # local studio: showcase + inspect + edit tokens
rastack scan                     # CSV PII scan
rastack seed                     # seed an Iceberg warehouse
```

---

_Source: [https://reactapistack.com/docs/cli](https://reactapistack.com/docs/cli) · Full docs as one file: [llms-full.txt](https://reactapistack.com/llms-full.txt)_
