Render a template with vault references resolved.
The template's vault://[<vault>/]<path>[#<field>] references are replaced
by their values and the result is written to stdout. Every reference is
resolved before anything is written; if one cannot be resolved nothing is.
Writing to a file needs --to-file <path> and typing "write" to confirm;
the file is created with mode 0600 and never overwrites an existing one.
With --ephemeral -- <command>, the file exists only while the command
runs: it is overwritten with zeros and removed when the command exits.
"vaultfold inject --wipe" removes files left behind by a crash.
In an AI agent session stdout would expose the values to the agent, so
inject without a command is refused there; use --to-file <path>
--ephemeral -- <command>, or "vaultfold run", instead.
The repository hygiene check is strict for inject: a failure refuses to
render unless --allow-unsafe-context is given.
vaultfold inject -i <template> [flags] [-- <command> [args...]]
--allow-unsafe-context render even when the repository hygiene check fails
--ephemeral with --to-file and a command after --: remove the file when the command exits
-h, --help help for inject
--identity n unlock with the profile identity n
-i, --in file read the template from file
-o, --out string write to stdout ("-", the only value; see --to-file) (default "-")
--to-file path write the rendered file to path (mode 0600, after typing "write")
--wipe remove files left behind by an interrupted --ephemeral run
--json print exactly one JSON document on stdout
--vault name select a vault from the registry by name