Command reference
ed shelf add-text
Writes text into a new Dropped Text.txt shelf item, using a numbered name when
that file already exists.
ed shelf add-text <text...> [--json]Words are joined with spaces. Quote shell metacharacters or newlines when they must reach the item unchanged. The command and the notch drop tray use the same shelf mutation executor, persist the same index shape, and notify a running shelf after the write succeeds.
JSON output is the same item document returned by ed shelf add --json, with
index, id, name, path, sizeBytes, addedAt, exists and a null
position. Its index comes from the committed shelf snapshot and matches the
next ed shelf ls --json result.
ed shelf add-text remember to published shelf add-text $'first line\nsecond line' --jsonMissing text exits 2. A filesystem or index write failure exits 1 without claiming success.