Cli referenceDesktop State
agh desktop-state set
Create or replace one desktop-state value
- Audience
- Operators running durable agent work
- Focus
- Desktop State guidance shaped for scanability, day-two clarity, and operator context.
agh desktop-state set
Create or replace one desktop-state value
agh desktop-state set [flags]Examples
agh desktop-state set --workspace ws_1234 --key desktop --value '{"v":1}'
agh desktop-state set --workspace ws_1234 --key 'win:app:tasks' --file window.json --if-rev 3 -o jsonOptions
--file string Read the desktop-state JSON object from a file
-h, --help help for set
--if-rev uint Require this current revision
--key string Desktop-state key
--value string Desktop-state value as a JSON object
--workspace string Workspace idOptions inherited from parent commands
--json Emit JSON output
-o, --output string Output format: human, json, jsonl, or toon (default "human")Output Formats
Every AGH command supports -o, --output:
humanfor interactive terminal usejsonfor scripts and other machine-readable consumersjsonlfor wait or streaming commands that emit one JSON record per linetoonfor compact agent-readable summaries
Example:
agh desktop-state set -o json