# Dashboard access requires sign-in

You can also investigate this project using the Vercel CLI. The commands below require a CLI session with access to the project.

If you don't have the CLI installed, run:

```sh
npm i -g vercel
```

Sign in with `vc login` if needed.

## Image Optimization

### Query image transformations by source image

```sh
vc metrics vercel.image_transformation.count --scope sanity-sandbox --project sanity-astro-observatory-studio --group-by sourceImagePathname --environment production --since 12h --json
```

### Query optimized image size by source image

```sh
vc metrics vercel.image_transformation.optimized_size_bytes --scope sanity-sandbox --project sanity-astro-observatory-studio --aggregation sum --group-by sourceImagePathname --order-by value --environment production --since 12h --json
```

### Query P75 transformation duration by format

```sh
vc metrics vercel.image_transformation.request_duration_ms --scope sanity-sandbox --project sanity-astro-observatory-studio --aggregation p75 --group-by optimizedFormatMimeType --order-by value --environment production --since 12h --json
```

### Discover Image Optimization metrics and dimensions

```sh
vc metrics schema vercel.image_transformation --scope sanity-sandbox --json
```

