age - r support specify public key file
$ age-keygen -pq | age -p -o encrypted-identity.txt
$ age -r encrypted-identity.txt file.txt > file.txt.age
‑r encrypt cannot specify encrypted‑identity.txt
‑i decrypt can specify encrypted‑identity.txt
This is strange.
age -d -i encrypted-identity.txt file.txt.age > file.txt
age-keygen -pq is long and inconvenient to type in the terminal.