Skip to content

mochi views set ​

Replace the views document from a JSON file (- for stdin)

Synopsis ​

Replace the whole views document. Start from mochi views get -o json, edit it, and send it back with its revision; a set whose revision no longer matches the file is refused. Unknown section types and fields are rejected: see mochi views schema.

shell
mochi views set [flags]

Options ​

FlagTypeDescription
--filestringJSON document to write, or - for stdin
-h, --helphelp for set
-o, --outputstringOutput format: text or json (default "text")

Options inherited from parent commands ​

FlagTypeDescription
-L, --log-levelstringLog verbosity level (debug, info, fatal) (default "info")
--syncSync the executable cache first, pulling git-sourced workspaces from their remotes

See also ​