@vizzly-testing/cli 0.38.1 → 0.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +222 -195
- package/dist/cli.js +55 -54
- package/dist/commands/init.js +154 -483
- package/dist/commands/project.js +128 -44
- package/dist/commands/run.js +2 -2
- package/dist/commands/tdd.js +89 -38
- package/dist/commands/upload.js +2 -2
- package/dist/init/agents.js +140 -0
- package/dist/init/core.js +31 -0
- package/dist/init/prompts.js +44 -0
- package/dist/reporter/reporter-bundle.css +1 -1
- package/dist/reporter/reporter-bundle.iife.js +30 -61
- package/dist/reporter-ssr/ssr-entry.js +3 -6
- package/dist/server/handlers/tdd-handler.js +33 -2
- package/dist/services/index.js +8 -2
- package/dist/tdd/services/comparison-service.js +4 -1
- package/dist/tdd/tdd-service.js +14 -2
- package/dist/test-runner/core.js +28 -3
- package/dist/test-runner/operations.js +41 -20
- package/dist/types/index.d.ts +8 -0
- package/dist/uploader/core.js +1 -0
- package/dist/utils/cli-update.js +105 -0
- package/dist/utils/config-discovery.js +73 -0
- package/dist/utils/config-loader.js +29 -8
- package/dist/utils/config-schema.js +5 -0
- package/dist/utils/file-changes.js +105 -0
- package/dist/utils/project-binding.js +96 -0
- package/dist/utils/project-link-store.js +13 -7
- package/dist/utils/update-check.js +2 -0
- package/dist/utils/update-notifications.js +175 -0
- package/package.json +16 -16
- package/skills/vizzly/SKILL.md +4 -3
- package/skills/vizzly/references/ci.md +33 -0
- package/skills/vizzly/references/cli-context.md +81 -71
- package/skills/vizzly/references/dynamic-content.md +16 -17
- package/skills/vizzly/references/sdks.md +22 -22
- package/skills/vizzly/references/setup-ci.md +0 -44
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Vizzly CLI
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Reviewed UI context for coding agents and teams
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@vizzly-testing/cli)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
@@ -9,272 +9,299 @@
|
|
|
9
9
|
<img src="./docs/assets/vizzly-mascot-inspector.png" alt="Vizzly bear inspecting a screenshot" width="220" />
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
|
-
Vizzly
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
status, and preview links.
|
|
12
|
+
Vizzly helps your team and coding agents see what the UI should look like,
|
|
13
|
+
what changed, and what was approved. It keeps screenshots, diffs, and review
|
|
14
|
+
decisions together so you can use that history the next time you change the UI.
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
upload screenshots from CI, generate static reports, and fetch machine-readable
|
|
19
|
-
build or diff data for scripts, automation, and coding agents.
|
|
16
|
+
## Get started
|
|
20
17
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
You need Node.js 22.18 or newer within Node 22, or Node.js 24+.
|
|
18
|
+
You need Node.js 22.18+ on Node 22, or Node.js 24+. From your test project:
|
|
24
19
|
|
|
25
20
|
```bash
|
|
26
|
-
pnpm
|
|
27
|
-
|
|
28
|
-
vizzly init
|
|
21
|
+
pnpm add --save-dev @vizzly-testing/cli
|
|
22
|
+
pnpm exec vizzly init
|
|
29
23
|
```
|
|
30
24
|
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
The wizard creates a config and offers agent guidance and cloud linking.
|
|
26
|
+
It previews file changes before applying them. If Vizzly is already configured,
|
|
27
|
+
init leaves it alone. Edit the config directly to change your setup.
|
|
33
28
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
```
|
|
29
|
+
To create a small config and edit it yourself, use `pnpm exec vizzly init --quick`.
|
|
30
|
+
It keeps existing config and doesn't install dependencies or run tests.
|
|
37
31
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
CLI upgrade to refresh both without replacing the rest of `AGENTS.md` or an
|
|
41
|
-
existing Vizzly config.
|
|
32
|
+
Choose a Vizzly client for your test setup, then add screenshot capture.
|
|
33
|
+
This example uses Playwright with the Node.js client:
|
|
42
34
|
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
```javascript
|
|
36
|
+
import { test } from '@playwright/test';
|
|
37
|
+
import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
|
|
45
38
|
|
|
46
|
-
|
|
39
|
+
test('homepage looks correct', async ({ page }) => {
|
|
40
|
+
await page.goto('/');
|
|
41
|
+
await vizzlyScreenshot('homepage', await page.screenshot());
|
|
42
|
+
});
|
|
43
|
+
```
|
|
47
44
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Use `import type` for type-only imports and include file extensions when
|
|
51
|
-
importing local helpers, such as `./helpers.ts`.
|
|
45
|
+
The client runs in Node.js and works with any Node-based test runner. You can
|
|
46
|
+
also pass a file path:
|
|
52
47
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
These restrictions apply to the config and its imports; they don't change how
|
|
57
|
-
your application or tests compile.
|
|
48
|
+
```javascript
|
|
49
|
+
await vizzlyScreenshot('homepage', './screenshots/homepage.png');
|
|
50
|
+
```
|
|
58
51
|
|
|
59
|
-
###
|
|
52
|
+
### Review locally
|
|
60
53
|
|
|
61
|
-
Start the TDD server, run your tests
|
|
62
|
-
command prints. Add `--open` when you want Vizzly to open the dashboard for
|
|
63
|
-
you. If the default port is busy, Vizzly picks the next available port; use the
|
|
64
|
-
printed `--port` value with `vizzly tdd status` or `vizzly tdd stop`.
|
|
54
|
+
Start the local TDD server, then run your tests in another terminal:
|
|
65
55
|
|
|
66
56
|
```bash
|
|
67
|
-
vizzly tdd start --open
|
|
68
|
-
pnpm test -- --watch
|
|
57
|
+
pnpm exec vizzly tdd start --open
|
|
58
|
+
pnpm test -- --watch # Replace this with your test command
|
|
69
59
|
```
|
|
70
60
|
|
|
71
|
-
The dashboard shows screenshots
|
|
72
|
-
|
|
61
|
+
The dashboard shows screenshots and diffs as they arrive. Accept or reject
|
|
62
|
+
changes there. If the default port is busy, use the printed port with
|
|
63
|
+
`pnpm exec vizzly tdd status --port <port>` or
|
|
64
|
+
`pnpm exec vizzly tdd stop --port <port>`.
|
|
73
65
|
|
|
74
|
-
For a
|
|
66
|
+
For a single run:
|
|
75
67
|
|
|
76
68
|
```bash
|
|
77
|
-
vizzly tdd run "pnpm test" --no-open
|
|
78
|
-
vizzly context build current --source local --json
|
|
69
|
+
pnpm exec vizzly tdd run "pnpm test" --no-open
|
|
79
70
|
```
|
|
80
71
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
72
|
+
Review data goes in `.vizzly/`. When the run captures screenshots, it also
|
|
73
|
+
creates `.vizzly/report/index.html`. Omit `--no-open` to open the report.
|
|
74
|
+
If the configured port is busy, `tdd run` picks an available one. An explicit
|
|
75
|
+
`--port` uses only that port.
|
|
85
76
|
|
|
86
|
-
###
|
|
87
|
-
|
|
88
|
-
Use cloud builds when you want shared baselines, team review, and CI status:
|
|
77
|
+
### Review in the cloud
|
|
89
78
|
|
|
90
79
|
```bash
|
|
91
|
-
vizzly login
|
|
92
|
-
vizzly project link your-org/your-project
|
|
93
|
-
vizzly run "pnpm test"
|
|
80
|
+
pnpm exec vizzly login
|
|
81
|
+
pnpm exec vizzly project link your-org/your-project
|
|
82
|
+
pnpm exec vizzly run "pnpm test"
|
|
94
83
|
```
|
|
95
84
|
|
|
96
|
-
`vizzly login`
|
|
97
|
-
|
|
98
|
-
|
|
85
|
+
`vizzly login` signs you in. Linking saves the project name in your config and
|
|
86
|
+
keeps the upload token in user storage. Run it again to reuse a saved token.
|
|
87
|
+
Replace `"pnpm test"` with your test command.
|
|
99
88
|
|
|
100
|
-
|
|
101
|
-
|
|
89
|
+
If you linked with an older CLI, run `project link` once in each repository to
|
|
90
|
+
save its project selection. Handwritten config may need a manual edit; the
|
|
91
|
+
command prints what to add. Explicit `--token` and `VIZZLY_TOKEN` still work.
|
|
102
92
|
|
|
103
|
-
|
|
93
|
+
To upload screenshots you already have:
|
|
104
94
|
|
|
105
95
|
```bash
|
|
106
|
-
|
|
107
|
-
vizzly run "pnpm test" --wait
|
|
96
|
+
pnpm exec vizzly upload ./screenshots
|
|
108
97
|
```
|
|
109
98
|
|
|
110
|
-
###
|
|
111
|
-
|
|
112
|
-
Use `vizzly context` for human summaries and local `.vizzly` evidence. For cloud
|
|
113
|
-
reviews, agents should discover and call the public API through its schema:
|
|
114
|
-
|
|
115
|
-
```bash
|
|
116
|
-
vizzly api schema --json
|
|
117
|
-
vizzly api schema sdk.listBuilds --json
|
|
118
|
-
```
|
|
99
|
+
### Run in CI
|
|
119
100
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
cloud evidence; use `vizzly context ... --json` for local evidence.
|
|
101
|
+
Store a project token as a CI secret and pass it as `VIZZLY_TOKEN`. Add `--wait`
|
|
102
|
+
when you want CI to wait for comparison results and fail on visual differences:
|
|
123
103
|
|
|
124
104
|
```bash
|
|
125
|
-
|
|
126
|
-
vizzly
|
|
127
|
-
|
|
128
|
-
# Discover cloud evidence operations for an agent workflow
|
|
129
|
-
vizzly api schema sdk.getBuildContext --json
|
|
130
|
-
vizzly api schema getComparisonContext --json
|
|
131
|
-
|
|
132
|
-
# Local workspace context from .vizzly/
|
|
133
|
-
vizzly context build current --source local
|
|
134
|
-
vizzly context build current --source local --json
|
|
135
|
-
vizzly context screenshot build-detail-screenshots --source local --json
|
|
136
|
-
vizzly context review-queue --source local --json
|
|
105
|
+
export VIZZLY_TOKEN=your-project-token
|
|
106
|
+
pnpm exec vizzly run "pnpm test" --wait
|
|
137
107
|
```
|
|
138
108
|
|
|
139
|
-
|
|
140
|
-
pagination before making requests. The old compact `--agent` handoff remains
|
|
141
|
-
available during deprecation, but new cloud workflows should use the schema.
|
|
142
|
-
Use `--json` for machine-readable local context.
|
|
143
|
-
|
|
144
|
-
Local context is read-only and file-backed. It reads your existing `.vizzly`
|
|
145
|
-
workspace state from TDD runs, including screenshots, diffs, and saved hotspot
|
|
146
|
-
or region metadata.
|
|
147
|
-
|
|
148
|
-
The `context` commands are read-only. The schema-discovered review API also
|
|
149
|
-
supports explicit decisions when a task asks for them.
|
|
109
|
+
With `--wait`, failed comparisons make the command exit with code `1`.
|
|
150
110
|
|
|
151
|
-
##
|
|
152
|
-
|
|
153
|
-
Add screenshots to your existing tests:
|
|
111
|
+
## Screenshot options
|
|
154
112
|
|
|
155
113
|
```javascript
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
fullPage: true,
|
|
164
|
-
requestTimeout: 5000,
|
|
165
|
-
properties: {
|
|
166
|
-
theme: 'dark',
|
|
167
|
-
locale: 'en-US',
|
|
168
|
-
},
|
|
169
|
-
});
|
|
114
|
+
let screenshot = await page.screenshot({ fullPage: true });
|
|
115
|
+
await vizzlyScreenshot('checkout', screenshot, {
|
|
116
|
+
threshold: 2,
|
|
117
|
+
minClusterSize: 4,
|
|
118
|
+
fullPage: true,
|
|
119
|
+
requestTimeout: 5000,
|
|
120
|
+
properties: { theme: 'dark', locale: 'en-US' },
|
|
170
121
|
});
|
|
171
122
|
```
|
|
172
123
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
124
|
+
Put details like theme or locale in `properties` for baseline grouping and
|
|
125
|
+
filtering. Vizzly keeps these separate from screenshot options and reads image
|
|
126
|
+
dimensions from the screenshot. For local baseline matching, list custom keys
|
|
127
|
+
in `signatureProperties`. For cloud builds, set matching properties in your
|
|
128
|
+
Vizzly project settings. Common top-level options are
|
|
176
129
|
`threshold`, `minClusterSize`, `fullPage`, `requestTimeout`, and `buildId`.
|
|
177
|
-
Vizzly reads width and height from the captured image, so viewport dimensions do
|
|
178
|
-
not need to be included in `properties`.
|
|
179
130
|
|
|
180
|
-
|
|
181
|
-
|
|
131
|
+
For setup help, see the [Storybook](clients/storybook/README.md),
|
|
132
|
+
[static site](clients/static-site/README.md), [Vitest](clients/vitest/README.md),
|
|
133
|
+
and [Ember](clients/ember/README.md) guides. There are also
|
|
134
|
+
[Ruby](clients/ruby/README.md) and [Swift](clients/swift/README.md) SDKs.
|
|
182
135
|
|
|
183
|
-
|
|
184
|
-
[JavaScript](https://docs.vizzly.dev/integration/sdk/javascript),
|
|
185
|
-
[Ruby](https://docs.vizzly.dev/integration/sdk/ruby),
|
|
186
|
-
[Swift](https://docs.vizzly.dev/integration/sdk/swift), and
|
|
187
|
-
[more](https://docs.vizzly.dev/integration/sdk/overview).
|
|
136
|
+
## Configuration
|
|
188
137
|
|
|
189
|
-
|
|
138
|
+
`vizzly init --quick` creates a config with commented examples. Put settings
|
|
139
|
+
there when you want to change a default, or write `vizzly.config.js` yourself:
|
|
190
140
|
|
|
191
141
|
```javascript
|
|
192
|
-
|
|
193
|
-
|
|
142
|
+
export default {
|
|
143
|
+
comparison: {
|
|
144
|
+
threshold: 2, // CIEDE2000 Delta E color tolerance.
|
|
145
|
+
},
|
|
146
|
+
};
|
|
194
147
|
```
|
|
195
148
|
|
|
196
|
-
|
|
149
|
+
Cloud comparisons use your project's settings unless you override them in
|
|
150
|
+
config, environment variables, or command options. Local comparisons use the
|
|
151
|
+
CLI defaults.
|
|
152
|
+
|
|
153
|
+
Existing config is kept, including TypeScript, rc files, and `package.json`.
|
|
154
|
+
Use `--config <path>` to choose a config or a new destination. `--force`
|
|
155
|
+
replaces the selected config; in `package.json`, it replaces only `vizzly`.
|
|
156
|
+
|
|
157
|
+
For TypeScript, use `vizzly.config.ts`. Node strips the types, so you don't need
|
|
158
|
+
a separate compiler. Use `import type` for types and include extensions in local
|
|
159
|
+
imports, like `./helpers.ts`. Enums, namespaces with runtime code, constructor
|
|
160
|
+
parameter properties, and `tsconfig.json` path aliases won't work in the config
|
|
161
|
+
or files it imports.
|
|
162
|
+
|
|
163
|
+
### Coding agents and scripts
|
|
164
|
+
|
|
165
|
+
Install the Vizzly skill and a short `AGENTS.md` note:
|
|
197
166
|
|
|
198
167
|
```bash
|
|
199
|
-
|
|
168
|
+
pnpm exec vizzly init --agent-guidance
|
|
200
169
|
```
|
|
201
170
|
|
|
202
|
-
|
|
203
|
-
`--
|
|
204
|
-
|
|
171
|
+
This adds `.agents/skills/vizzly` and a note in `AGENTS.md`, keeping your
|
|
172
|
+
other instructions. Use `--agent-skill` for just the skill. Run either command
|
|
173
|
+
again to refresh it without changing your config.
|
|
174
|
+
`--skip-agent-skill` skips agent setup unless you also request `--agent-guidance`.
|
|
205
175
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
creates the screenshot record without re-uploading the image. CI workflows can
|
|
209
|
-
force every screenshot through with `--upload-all`. Parallel jobs should use the
|
|
210
|
-
same stable ID, then finalize that ID after every shard completes:
|
|
176
|
+
Use `context` to read local results. For cloud results, check the API schema
|
|
177
|
+
to find the available requests:
|
|
211
178
|
|
|
212
179
|
```bash
|
|
213
|
-
vizzly
|
|
214
|
-
vizzly
|
|
180
|
+
pnpm exec vizzly context build current --source local --json
|
|
181
|
+
pnpm exec vizzly context review-queue --source local --json
|
|
182
|
+
pnpm exec vizzly api schema --json
|
|
183
|
+
pnpm exec vizzly api schema sdk.getBuildContext --json
|
|
215
184
|
```
|
|
216
185
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
186
|
+
The schema lists inputs, output fields, and how to fetch more results. The old
|
|
187
|
+
`context build --agent` and `context comparison --agent` formats are deprecated.
|
|
188
|
+
Use the API schema for new cloud workflows and `context --json` for local data.
|
|
189
|
+
See the [JSON reference](docs/json-output.md) for output formats and scripts.
|
|
220
190
|
|
|
221
|
-
|
|
191
|
+
### Parallel CI and uploads
|
|
222
192
|
|
|
223
|
-
|
|
193
|
+
Vizzly reuses images it already has by SHA. Add `--upload-all` to send every
|
|
194
|
+
image. For parallel jobs, use the same ID for every shard and finalize it when
|
|
195
|
+
they all finish:
|
|
224
196
|
|
|
225
197
|
```bash
|
|
226
|
-
vizzly
|
|
198
|
+
pnpm exec vizzly run "pnpm test" --parallel-id "$GITHUB_RUN_ID"
|
|
199
|
+
pnpm exec vizzly finalize "$GITHUB_RUN_ID"
|
|
227
200
|
```
|
|
228
201
|
|
|
229
|
-
|
|
230
|
-
|
|
202
|
+
Use `--batch-size` to set how many screenshots upload per request.
|
|
203
|
+
`--upload-timeout` limits how long `--wait` waits for build processing; it
|
|
204
|
+
doesn't set the HTTP upload timeout. You can also set
|
|
205
|
+
`--threshold` and `--min-cluster-size`. If CI has no cloud token,
|
|
206
|
+
`vizzly run --allow-no-token` lets your test command run without starting Vizzly.
|
|
231
207
|
|
|
232
|
-
|
|
233
|
-
vizzly init --agent-guidance
|
|
234
|
-
```
|
|
208
|
+
## Commands
|
|
235
209
|
|
|
236
|
-
|
|
210
|
+
Use `pnpm exec vizzly --help` to see what's available in your project, or add
|
|
211
|
+
`--help` to a command for its options. These are the built-in commands; run them
|
|
212
|
+
with `pnpm exec` when Vizzly is installed locally.
|
|
237
213
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
comparison: {
|
|
241
|
-
// CIEDE2000 Delta E. 0 is exact. 2 is a good default.
|
|
242
|
-
threshold: 2.0,
|
|
243
|
-
},
|
|
244
|
-
};
|
|
245
|
-
```
|
|
214
|
+
<details>
|
|
215
|
+
<summary>Setup and accounts</summary>
|
|
246
216
|
|
|
247
|
-
|
|
217
|
+
| Command | What it does |
|
|
218
|
+
| --- | --- |
|
|
219
|
+
| `vizzly init` | Walk through setup. Use `--quick` to create config without questions. |
|
|
220
|
+
| `vizzly config [key]` | Show your current config. |
|
|
221
|
+
| `vizzly project link <org>/<project>` | Link this checkout to a cloud project. |
|
|
222
|
+
| `vizzly orgs` | List your organizations. |
|
|
223
|
+
| `vizzly projects` | List projects you can access. |
|
|
224
|
+
| `vizzly login` | Sign in through the browser. |
|
|
225
|
+
| `vizzly logout` | Clear your saved login. |
|
|
226
|
+
| `vizzly whoami` | Check your account and authentication status. |
|
|
227
|
+
| `vizzly doctor` | Check your setup. |
|
|
228
|
+
|
|
229
|
+
</details>
|
|
230
|
+
|
|
231
|
+
<details>
|
|
232
|
+
<summary>Local review</summary>
|
|
233
|
+
|
|
234
|
+
| Command | What it does |
|
|
235
|
+
| --- | --- |
|
|
236
|
+
| `vizzly tdd start` | Start the local server and dashboard. |
|
|
237
|
+
| `vizzly tdd status` | Check this project's local server. |
|
|
238
|
+
| `vizzly tdd list` | List running local servers. |
|
|
239
|
+
| `vizzly tdd stop` | Stop this project's local server. |
|
|
240
|
+
| `vizzly tdd run "command"` | Run tests once and save local review data. |
|
|
241
|
+
| `vizzly tdd screenshots list` | List captures from the latest local run. |
|
|
242
|
+
| `vizzly tdd screenshots latest [name]` | Print the latest capture's image path. |
|
|
243
|
+
| `vizzly tdd screenshots show <id-or-name>` | Show local capture details and the current image path. |
|
|
244
|
+
| `vizzly tdd screenshots accept <id-or-name>` | Save a local capture as its baseline. |
|
|
245
|
+
| `vizzly baselines` | List local baselines, or inspect one with `--info <name>`. |
|
|
246
|
+
|
|
247
|
+
</details>
|
|
248
|
+
|
|
249
|
+
<details>
|
|
250
|
+
<summary>Cloud builds</summary>
|
|
251
|
+
|
|
252
|
+
| Command | What it does |
|
|
253
|
+
| --- | --- |
|
|
254
|
+
| `vizzly run "command"` | Run tests and upload for cloud review. |
|
|
255
|
+
| `vizzly upload <dir>` | Upload screenshots. |
|
|
256
|
+
| `vizzly finalize <parallel-id>` | Finish a cloud build after all shards complete. |
|
|
257
|
+
| `vizzly preview <path>` | Upload a static preview for a cloud build; private projects need `--public-link`. |
|
|
258
|
+
| `vizzly status <build-id>` | Check cloud build status. |
|
|
259
|
+
| `vizzly builds` | List builds, or fetch one with `--build <id>`. |
|
|
260
|
+
| `vizzly comparisons --build <build-id>` | List a build's comparisons; also supports `--id` or `--name` queries. |
|
|
261
|
+
|
|
262
|
+
</details>
|
|
263
|
+
|
|
264
|
+
<details>
|
|
265
|
+
<summary>Build and screenshot context</summary>
|
|
266
|
+
|
|
267
|
+
| Command | What it does |
|
|
268
|
+
| --- | --- |
|
|
269
|
+
| `vizzly context build <build-id>` | Read build context. |
|
|
270
|
+
| `vizzly context comparison <comparison-id>` | Read comparison context. |
|
|
271
|
+
| `vizzly context screenshot <name>` | Read screenshot history. |
|
|
272
|
+
| `vizzly context similar <fingerprint-hash>` | Find cloud comparisons with similar diffs. |
|
|
273
|
+
| `vizzly context review-queue` | Read comparisons waiting for review. |
|
|
274
|
+
|
|
275
|
+
</details>
|
|
276
|
+
|
|
277
|
+
<details>
|
|
278
|
+
<summary>Review decisions</summary>
|
|
248
279
|
|
|
249
280
|
| Command | What it does |
|
|
250
281
|
| --- | --- |
|
|
251
|
-
| `vizzly
|
|
252
|
-
| `vizzly
|
|
253
|
-
| `vizzly
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
|
261
|
-
|
|
|
262
|
-
| `vizzly
|
|
263
|
-
| `vizzly
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
## License
|
|
279
|
-
|
|
280
|
-
MIT
|
|
282
|
+
| `vizzly approve <comparison-id>` | Approve a comparison. |
|
|
283
|
+
| `vizzly reject <comparison-id> --reason "message"` | Reject a comparison with a reason. |
|
|
284
|
+
| `vizzly comment <build-id> "message"` | Comment on a build. |
|
|
285
|
+
|
|
286
|
+
</details>
|
|
287
|
+
|
|
288
|
+
<details>
|
|
289
|
+
<summary>API</summary>
|
|
290
|
+
|
|
291
|
+
| Command | What it does |
|
|
292
|
+
| --- | --- |
|
|
293
|
+
| `vizzly api schema [operation-id]` | Discover cloud API requests, fields, and response formats. |
|
|
294
|
+
| `vizzly api <endpoint>` | Make API requests; use `--output <file>` for images. |
|
|
295
|
+
|
|
296
|
+
</details>
|
|
297
|
+
|
|
298
|
+
Installed plugins add commands such as `storybook`, `static-site`, and `previews`.
|
|
299
|
+
See their setup guides above for details.
|
|
300
|
+
|
|
301
|
+
## More
|
|
302
|
+
|
|
303
|
+
[Full docs](https://docs.vizzly.dev) ·
|
|
304
|
+
[Updating Vizzly](docs/updates.md) ·
|
|
305
|
+
[Report a bug or suggest a change](https://github.com/vizzly-testing/cli/issues)
|
|
306
|
+
|
|
307
|
+
PRs welcome. MIT licensed.
|