JOSE-JWS-FMT(1)

πŸ’… jose-jws-fmt β€” like, the JWS glow-up page

okay so bestie, welcome to jose-jws-fmt from the JOSE manual set (yes, the JOSE-JWS-FMT(1) one, that's her full name πŸŽ€). She's a little icon whose entire personality is: taking a JWS and converting it between serialization formats. That's it. That's the gig. And she ate. ✨


✨ NAME ✨

jose-jws-fmt β€” converts a JWS between serialization formats πŸ”


πŸ¦‹ SYNOPSIS πŸ¦‹

jose jws fmt -i JWS [-I PAY] [-o JWS] [-O PAY] [-c]

literally the whole vibe in one line, no cap πŸ’œ


🌸 OVERVIEW 🌸

So the jose jws fmt command converts a JWS into alternative serialization formats, and honestly the way that it can do this is giving main character energy. For example, it can:

  1. Attach payload to a detached JWS. 🫢
  2. Detach payload from a JWS. πŸ’€
  3. Convert JWS Compact Serialization to JWS JSON Serialization. πŸ”₯
  4. Convert JWS JSON Serialization to JWS Compact Serialization. πŸ”₯

periodt. four little tricks, all iconic. ✨


πŸ’… OPTIONS πŸ’…

  • -i JSON, --input=JSON β€” parse JWS from JSON, bestie πŸŽ€
  • -i FILE, --input=FILE β€” read JWS from FILE, slay
  • -i -, --input=- β€” read JWS from standard input (yes, the - is doing the work here, iykyk) πŸ‘€
  • -I FILE, --detached=FILE β€” read decoded payload from FILE 🌸
  • -I -, --detached=- β€” read decoded payload from standard input 🫢
  • -o FILE, --output=FILE β€” write JWS to FILE ⭐
  • -o -, --output=- β€” write JWS to stdout (default, so if you don't say anything she just does it πŸ’…)
  • -O FILE, --detach=FILE β€” detach payload and decode to FILE πŸ¦‹
  • -O -, --detach=- β€” detach payload and decode to standard output πŸ’œ
  • -c, --compact β€” output JWS using compact serialization, the cute little one-liner format πŸŽ€

🌈 EXAMPLES 🌈

attach payload to a detached JWS and emit JWS Compact Serialization, lowkey my favorite move:
$ jose jws fmt -i msg.jws -I msg.txt -o compact.jws -c
detach payload from a JWS, the reverse glow-up:
$ jose jws fmt -i msg.jws -o detached.jws -O msg.txt

πŸ‘‘ AUTHOR πŸ‘‘

Nathaniel McCallum <npmccallum@redhat.com> β€” the legend who made her, fr fr 🫢


🧚 SEE ALSO 🧚

jose-jws-sig(1), jose-jws-ver(1) β€” her besties, go say hi πŸ’–


mwah πŸ’‹ this page is from the JOSE manual, dated 06/09/2026, and yes she's still JOSE-JWS-FMT(1) in the footer, iconic behavior, no notes. 🌟

πŸ“¦ where this page comes from