From 70dd0fa12048b978071cb51b0660418373d6256f Mon Sep 17 00:00:00 2001 From: August Cayzer Date: Sun, 25 Oct 2026 00:56:49 +0100 Subject: [PATCH 1/2] docs(cli): add the item fields a working copy writes and queries --- content/docs/(reference)/cli.mdx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/content/docs/(reference)/cli.mdx b/content/docs/(reference)/cli.mdx index 60fc908b..e12510cd 100644 --- a/content/docs/(reference)/cli.mdx +++ b/content/docs/(reference)/cli.mdx @@ -244,6 +244,23 @@ The `marfa device views` commands read saved views from the database named by `- Each command takes `--json`. A view whose whole query or grouping is not held is refused with a reason. +## Write and read items in a working copy + +A working copy takes every item field the API does, and answers a list or search the way the server does. A create or an edit shows in the copy at once and waits in the queue until a drain sends it, as [Devices](/devices#a-write-made-offline) explains. + +| Command | Options | +| --- | --- | +| `marfa device items create` | `--state` (`active`, `archived` or `trashed`; `revoked` is refused), `--capture-latitude` with `--capture-longitude`, and `--edges `, an object from an edge type to the IDs of the items it points at. | +| `marfa device items update` | `--occurred-at