console.jwtparser 1.0.1

dotnet tool install --global console.jwtparser --version 1.0.1                
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 console.jwtparser --version 1.0.1                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=console.jwtparser&version=1.0.1                
nuke :add-package console.jwtparser --version 1.0.1                

JWT CLI Parser .NET Global Tool

Overview

A .NET global tool that enable you to decode and create JWTs from the command line

I there are other web bases tools out there like jwt.io that do a great job at helping with decoding JWTs. The general purpose of this global tool is the ability to use it on the command line.

Installation

you can install the tool as a global tool using the following .NET Commands

dotnet tool install --global console.jwtparser

Instructions

Once you have the tool installed you can run by issuing the jwtconsole command

Extract Command

Parameters

  • --pretty Prints out a formatted and colorized JSON string
  • -p Prints out a formatted and colorized JSON string

Examples

jwtconsole extract eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

jwtconsole extract eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c --pretty

jwtconsole extract eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c -p

Developer Dependencies

  • System.IdentityModel.Tokens.Jwt
  • Spectre.Console.Cli
  • Spectre.Console.Json
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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.0.1 257 12/19/2023
1.0.0 160 12/11/2023