lbcli parse jwt
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 $JWTExample of parsed output:
Header:alg: RS256kid: system:roottyp: JWTClaims:iss: /home/user/ansible/lightos-certificates/cert-lb-admin-key.pemroles: [system:cluster-admin]aud: LightOSsub: lightos-clientiat: 2025-03-20T13:05:35Zexp: 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. | 
Was this page helpful?