# The CLI

> Every design command.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://design.docs.sypnia.com/tools/cli/

For agents: design CLI: login/logout/whoami/use <url>; init [--logo --from --components --framework --yes]; guide show|propose|versions; tokens build|lint; icons new|check|ls; components generate|status|diff; gallery [--port 4520]; screens new <case>|ls|render <case>|approve <case> (person session only); check [--json --renders local|cloud|off --fix]; propose (opens a proposal from local changes); proposals ls|show|approve|reject (person only); export --pdf [--print] | --assets; pull|push (sync with Cloud). --json everywhere; SYPNIA_DESIGN_TOKEN or the session.

| Command                                       | What it does                                                                                                                   |
| --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `login` · `logout` · `whoami` · `use <url>`   | Sign in with your Sypnia account (device flow) or point at your engine                                                         |
| `init`                                        | Start Design in a repository: `--logo`, `--from guide.md`, `--components src/design`, `--framework next\|vite\|astro`, `--yes` |
| `guide show\|versions`                        | The guide and its versions                                                                                                     |
| `tokens build\|lint`                          | Build `tokens.css` from `tokens.json`; check values and contrast                                                               |
| `icons new <name>\|check\|ls`                 | Draw a new icon from the rules, check the set                                                                                  |
| `components generate\|status\|diff`           | Generate pieces, see which are edited or out of date                                                                           |
| `gallery [--port 4520]`                       | Serve the gallery on your machine                                                                                              |
| `screens new <case>\|ls\|render <case>`       | Screen files and their pictures                                                                                                |
| `screens approve <case>`                      | Approve a screen (a person's session only)                                                                                     |
| `check [--fix] [--renders local\|cloud\|off]` | [The check](https://design.docs.sypnia.com/screens/the-check)                                                                  |
| `propose`                                     | Turn your local changes to the guide into a proposal                                                                           |
| `proposals ls\|show\|approve\|reject`         | Review proposals (approving needs a person's session)                                                                          |
| `export --pdf [--print]` · `export --assets`  | The guide as PDF; the brand kit as a zip                                                                                       |
| `pull` · `push`                               | Sync with the project in Sypnia Cloud                                                                                          |

`--json` works on every command. `SYPNIA_DESIGN_TOKEN` or `--token` uses a token instead of your session; tokens can never approve.
