msgpack-viewer 1.6.0

dotnet tool install --global msgpack-viewer --version 1.6.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local msgpack-viewer --version 1.6.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=msgpack-viewer&version=1.6.0
                    
nuke :add-package msgpack-viewer --version 1.6.0
                    

MessagePack Viewer

alt text

MessagePack Viewer is a powerful command-line utility designed to explore and visualize Redis cache data, with specialized support for MessagePack serialized values by converting binary data into readable, beautifully formatted JSON.

This tool provides an intuitive interface for browsing Redis keys and displaying their contents in beautifully formatted JSON with syntax highlighting.

Perfect for developers when debugging and troubleshooting Redis cache contents, and inspecting MessagePack-serialized data.

Key Features

  • Smart Data Format Detection: Automatically detects and handles MessagePack, JSON, Hash structures, and plain string values
  • Beautiful JSON Syntax Highlighting: Multiple beautiful JSON themes (OneDarkPro, Dracula, NeonNoir) for better readability
  • Interactive Key Discovery: Search and filter Redis keys with pattern matching and interactive selection
  • Multi-Connection Management: Add multiple Redis connections for easy switching between environments
  • Persistent Configuration: Saves connection strings and preferences locally for convenient reuse
  • Automatic SSL detection: The tool automatically detects and tries both SSL and non-SSL connections.
  • Multi-Format Value Support: Supports different Redis data types and automatically detects different formats:
  • Automatic MessagePack/JSON detection
  • MessagePack serialized data (converted to readable JSON)
  • JSON strings (with validation and formatting)
  • Supported Redis data structures: String, Hash, Set, SortedSet, and List

Getting Started

1. Install the CLI tool

Run the command below in any command line:

dotnet tool install --global msgpack-viewer --source https://api.nuget.org/v3/index.json

2. Add Redis Connection

Enter your Redis connection and its name. (e.g. localhost:6379 for local redis) You can add multiple Redis connections, allowing you to switch between connections without needing to provide the connection string every time.

msgpack redis

3. Search Keys

Type to search and use the arrow keys to navigate through the results.

# List all keys
msgpack keys

# List all keys matching the pattern (e.g. msgpack keys *Users*)
msgpack keys [pattern]

# Get a specific key (e.g. msgpack keys App:Users:1)
msgpack keys [exact-key]

alt text

4. See Result

alt text

Additional Commands

Switch Between Connections

Select from your saved Redis connections without re-entering connection strings.

# List all saved connections
msgpack switch

# Switch to a specific connection
msgpack switch [connection-name]

Select JSON Syntax Highlighting theme

Choose from beautiful syntax highlighting themes to enhance your JSON viewing experience:

  • OneDarkPro (default) - Dark theme with warm colors
  • Dracula - Popular purple-based theme
  • NeonNoir - Cyberpunk-inspired cyan and purple theme
msgpack theme

Connection String Formats

The tool supports various Redis connection string formats:

# Basic connection
localhost:6379

# With password
mypassword@localhost:6379

# With username and password
username:password@host:port

Note:

It uses the StackExchange.Redis library for Redis connections, so it supports all connection string formats that the library supports, including advanced options like SSL, timeouts, and more.

Read the StackExchange.Redis documentation for more details on connection string options.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.6.0 82 7/28/2025