diff --git a/content/docs/(reference)/cli.mdx b/content/docs/(reference)/cli.mdx index 60fc908b..ed851de0 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