ti fs-journal append-journal-entries
Appends one JSON event or a JSON array to a journal.
Syntax
ti fs-journal append-journal-entries
--journal-id <string>
[--dry-run]
[--entry-json <string>]
[--entry-type <string>]
[--file-system-id <string>]
[--fs-token <string>]
[--help]
[--idempotency-key <string>]
[--json-array]
[--source <string>]
[--subject <string>]
[--version]
Options
--journal-id <string>: Journal ID. [required]--dry-run: Validate the request without applying changes.--entry-json <string>: One JSON journal entry object; repeatable. For the supported fields, see Entry JSON format.--entry-type <string>: Entry type to use when an input object omitstype. An explicittypein an input object takes precedence.--file-system-id <string>: Select the file system. You can also setTI_FS_FILE_SYSTEM_ID.--fs-token <string>: Set the Filesystem token. If omitted, the command uses theTI_FS_TOKENenvironment variable. If neither is provided, the command uses the local token stored for the selected Filesystem.--help: Display help information.--idempotency-key <string>: Key used to deduplicate retries of the same append request. If omitted, each invocation receives a new key.--json-array: Read a JSON array from stdin instead of JSONL.--source <string>: Entry source.--subject <string>: Entry subject; repeatable.--version: Display version information.
For options shared by all commands, see Global options.
Entry JSON format
Each input object supports the following fields:
Artifact references are not currently supported. Do not include artifacts or artifact_refs in an entry.
If you specify --source, it replaces the source value in every input object. --entry-type applies only to objects that omit type.
Examples
Append one JSON entry:
# Record an event object and let the CLI or service apply default metadata. ti fs-journal append-journal-entries --file-system-id <file-system-id> --journal-id jrn-demo --entry-json '{"type":"task.started"}'Append an idempotent typed entry:
# Prevent retries from recording the same completion event twice. ti fs-journal append-journal-entries --file-system-id <file-system-id> --journal-id jrn-demo --entry-type task.completed --subject issue:42 --idempotency-key issue-42-completeAppend a JSON array from standard input:
# Batch multiple ordered events in a single append operation. printf '[{"type":"step.started"},{"type":"step.completed"}]' | ti fs-journal append-journal-entries --file-system-id <file-system-id> --journal-id jrn-demo --json-array