# ed shelf update

> Sets one shelf item's stored notch canvas position through the shared mutation executor used by native dragging.

- Canonical URL: https://getedith.pro/docs/cli/shelf/update
- Updated: 2026-12-02

Sets one shelf item's stored notch canvas position through the shared mutation
executor used by native dragging.

```text
ed shelf update <n> --x <number> --y <number> [--json]
```

The item number comes from `ed shelf ls`. Both coordinates are required and may
be integers or decimals. The canvas can clamp or reinterpret coordinates when
its available size changes, so use this command to reproduce a stored position,
not to target a universal screen point.

```sh
ed shelf update 1 --x 120 --y 60
ed shelf update 2 --x 84.5 --y 42 --json
```

JSON reports `action`, `changed`, and the complete updated `item`, including its
`position`. Repeating the same coordinates succeeds with `changed: false`. An
unknown item exits 3, and an empty shelf exits 4.

## Where to go next

- [`ed shelf`](https://getedith.pro/docs/cli/shelf)
- [`ed shelf ls`](https://getedith.pro/docs/cli/shelf/ls)
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
