mix bedrock.dump_storage (bedrock v0.5.2)

View Source

Dump all keys and values from a Bedrock storage instance.

Usage

mix bedrock.dump_storage --path /path/to/storage [options]

Options

  • --path PATH - Path to the storage directory (required)
  • --format FORMAT - Output format: table, csv, or json (default: table)
  • --key-filter PATTERN - Only show keys matching the hex pattern (e.g., "fe" for directory keys)
  • --limit N - Limit output to first N keys (default: no limit)
  • --hex-keys - Always show keys in hex format (default: auto-detect)
  • --hex-values - Always show values in hex format (default: auto-detect)
  • --include-empty - Include keys with empty values (default: true)
  • --output FILE - Write output to file instead of stdout

Examples

# Basic dump in table format
mix bedrock.dump_storage --path /tmp/bedrock_storage

# Dump to CSV file
mix bedrock.dump_storage --path /tmp/bedrock_storage --format csv --output dump.csv

# Show only directory-related keys (starting with 0xFE)
mix bedrock.dump_storage --path /tmp/bedrock_storage --key-filter fe

# Show first 100 keys in JSON format
mix bedrock.dump_storage --path /tmp/bedrock_storage --format json --limit 100

Summary

Functions

Callback implementation for Mix.Task.run/1.

Functions

run(args)

@spec run([String.t()]) :: :ok

Callback implementation for Mix.Task.run/1.