# Command line

One command, one SVG. It reads your key from `VECSNAP_API_KEY`.

```bash
npx vecsnap logo.png                              # writes logo.svg
npx vecsnap logo.png -o mark.svg --max-colors 4
npx vecsnap logo.png --format design
npx vecsnap https://example.com/logo.png --json
```

| Exit code | Means |
| --- | --- |
| 0 | Done: the SVG is written. |
| 1 | The API refused it: its code is printed. |
| 2 | The command was wrong. |
| 3 | The image ended without a result. |

---
This page: https://vecsnap.com/docs/sdks/cli
