cli.sgit.ai / Command reference / sgit write

sgit write

Write a file directly to vault HEAD (agent workflow).

Generated from sgit help all --format json, sgit-ai v0.23.0. No subcommands. To change this page, change the command's register() in the CLI and regenerate.

sgit write [options] <path> [directory]
ArgumentWhat it is
pathrequiredVault-relative file path to write
directoryoptionalVault directory (default: .)
OptionWhat it does
--alsoAdditional files to include atomically (repeatable)
--fileRead content from LOCAL_FILE instead of stdin
--jsonPrint result as JSON instead of plain text
--messageCommit message (auto-generated if omitted)
--pushPush immediately after writing; stdout contains only the blob ID

This page as markdown · its source, admin/content/reference/sgit-cli-reference.json