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]
| Argument | What it is | |
|---|---|---|
path | required | Vault-relative file path to write |
directory | optional | Vault directory (default: .) |
| Option | What it does |
|---|---|
--also | Additional files to include atomically (repeatable) |
--file | Read content from LOCAL_FILE instead of stdin |
--json | Print result as JSON instead of plain text |
--message | Commit message (auto-generated if omitted) |
--push | Push immediately after writing; stdout contains only the blob ID |
This page as markdown · its source, admin/content/reference/sgit-cli-reference.json