chainabit memory store
Published (2.2.0)
This command is not included in Published (2.2.0). It is available in Development (2.2.0).
Development (2.2.0)
Store a memory from piped standard input
Synopsis
chainabit memory store [options]Options
| Option | Description | Default |
|---|---|---|
--yes | Confirm this change | — |
Options shared by every command are described in Global options and shared behavior.
Behavior
Stores the text you pipe into the command as a new memory. The command reads standard input: run in an interactive terminal with nothing piped, or with empty input, it refuses and asks you to pipe the memory text. A memory holds at most 2,000 characters; longer input is refused. One trailing line break is removed and the rest of the text, including line breaks inside it, is stored as written.
This command changes data, so it asks you to confirm in an interactive terminal. Pass --yes to confirm without a prompt. With --json, or when input or output is redirected, there is no prompt: without --yes the command changes nothing, tells you to add --yes and exits with code 2.
Output
Prints the stored memory's ID and text. With --json, the output contains id, content, type and scope.
Authentication and permissions
You must be signed in. The server decides whether your account may make this change; if it refuses, the command prints the error, exits with a non-zero code and changes nothing. If the connected API does not support the operation yet, the command stops before sending anything.
Examples
The memory text must be piped in from another program or file, for instance with a shell pipe or input redirection; the example shows only the command.
chainabit memory store --yes