lbcli parse jwt

AI Tools

Parses a jwt token.

Synopsis

Parses a JWT token and prints the header and payload information in a human-readable format.

If a JWT token is not explicitly provided, the command will attempt to locate the system’s JWT from default locations, if available.

Examples

# Parse the JWT token from a given JWT file path or from a command line argument lbcli parse jwt --jwt-file=/path/to/jwt/file lbcli parse jwt -J $JWT

Example of parsed output:

Header: alg: RS256 kid: system:root typ: JWT Claims: iss: /home/user/ansible/lightos-certificates/cert-lb-admin-key.pem roles: [system:cluster-admin] aud: LightOS sub: lightos-client iat: 2025-03-20T13:05:35Z exp: 2026-03-20T13:05:35Z

Flag

Short

Type

Default

Description

--help

-h

bool


Help forjwt.

--jwt


string


JWT token as a command line argument.

--jwt-file


string


Path to the JWT file.