Support note (2026-09-05): this README is supplementary. The support record is the only capability authority; it separates native compatibility evidence from Wasm policy and smoke evidence. Options mentioned here but not promoted in that record are not compatibility guarantees.
Base64 encode or decode a file or stdin:
printf 'hello' | moonx cli/base64
moonx cli/base64 -d encoded.txt
moonx cli/base64 -w 0 big.bin # no line wrapping
Options: -d/-D decode (embedded newlines are always accepted), -i/--ignore-garbage discard non-alphabet bytes while decoding, and -w N wrapencoded output after N characters (default 76, 0 disables). Standardalphabet with = padding. Invalid input is rejected unless garbage mode isexplicitly selected.
With no file operand, the command silently reads stdin until EOF, matching theupstream terminal, pipe, redirection, and explicit - behavior.