orke employee save-document

Save a goal, draft, or memory document using its observed revision. Edit definitions with setting and rename commands. Changed files are rejected. Accepts raw UTF-8 through --stdin.

Command · options · role · examplesEnglish

When to use it

Save a goal, draft, or memory document using its observed revision. Edit definitions with setting and rename commands. Changed files are rejected. Accepts raw UTF-8 through --stdin.

Syntax

Terminal
orke employee save-document --slug <string> --file <definition|goal|goal-draft|status|plan|learned|journal> [--date <string>] --text <string> --expectedRevision <string> [--stdin] [--json]

Options

OptionRequiredValues and meaning
--slugRequiredFolder slug from a preceding list/read
string
--fileRequiredEmployee document kind; journal requires date
definition|goal|goal-draft|status|plan|learned|journal
--dateOptionalJournal date in YYYY-MM-DD format
string
--textRequiredExact text to send or save; --stdin is available where shown
string
--expectedRevisionRequiredDefinition revision from a preceding read; detects concurrent edits
string
--stdinOptionalRead strict UTF-8 input through standard input.

Read common options and errors →

Role and constraints

operator · windows, macos, linux

  • Requires a running daemon owned by the same OS user; --help never connects.
  • Use exactly one of --text or --stdin. Strict UTF-8, at most 1048576 bytes; input is preserved exactly.
  • Use expectedRevision from the preceding read; concurrent edits are rejected rather than overwritten.

Examples

Terminal
orke employee save-document --slug employee-slug --file goal --expectedRevision observed-revision --stdin --json

Replace example IDs, slugs, revisions, and files with actual observations and inputs.

Response and partial results

EmployeeDocument: slug/file/date/text/revision/readState/truncated

Related guidance

Commands in this group →

Search documentation

The page could not be displayed. Reload ×