Skip to content

Storage

inbrx supports two storage modes.

Mode Description
file Stores captured messages in the standard user data directory for your operating system.
memory Keeps captured messages in memory until the process exits.

File storage is the default:

Terminal window
npx @inbrx/cli --storage file

Use it when you want messages to remain available across process restarts.

Use --data-dir to choose where file-backed messages and attachments are stored:

Terminal window
npx @inbrx/cli --storage file --data-dir ./inbrx-data

This is useful for containers, shared development environments, or test runs that need a predictable storage path.

Memory storage is useful for short-lived test runs:

Terminal window
npx @inbrx/cli --storage memory

Use it for disposable local sessions or automated tests where persistence is not needed.

Use --max-messages to control how many messages are retained:

Terminal window
npx @inbrx/cli --max-messages 500