The CLI needs to be thought through and fundamentally redesigned.
Currently:
# Generate Keyoxide profiles and verify their identity claims
keyoxide verify hkp:3637202523e7c1309ab79e99ef2dc5827b445f4b
keyoxide verify hkp:test@doip.rocks
Using guidelines from https://clig.dev, here's one proposal:
# Show basic information about a key (in automatic mode)
keyoxide 3637202523e7c1309ab79e99ef2dc5827b445f4b
keyoxide test@doip.rocks
# Force HKP
keyoxide --hkp test@doip.rocks
# Force HKP and specify server
keyoxide --hkp --hkp-server keys.openpgp.org test@doip.rocks
# Generate a profile and verify their identity claims (--profile or -p)
keyoxide -p 3637202523e7c1309ab79e99ef2dc5827b445f4b
# Generate a more detailed profile (--details or -d)
keyoxide -pd 3637202523e7c1309ab79e99ef2dc5827b445f4b
# Generate a profile based on a signature profile or local key
keyoxide -p ./profile.asc
# Verify a signed document against a key (--verify or -v)
keyoxide -v ./signed-doc.asc 3637202523e7c1309ab79e99ef2dc5827b445f4b
# Encrypt a message (--encrypt or -e)
keyoxide -e "Secret stuff, yo" 3637202523e7c1309ab79e99ef2dc5827b445f4b
keyoxide --encrypt-file ./message.txt 3637202523e7c1309ab79e99ef2dc5827b445f4b
The CLI needs to be thought through and fundamentally redesigned.
Currently:
```bash
# Generate Keyoxide profiles and verify their identity claims
keyoxide verify hkp:3637202523e7c1309ab79e99ef2dc5827b445f4b
keyoxide verify hkp:test@doip.rocks
```
Using guidelines from https://clig.dev, here's one proposal:
```bash
# Show basic information about a key (in automatic mode)
keyoxide 3637202523e7c1309ab79e99ef2dc5827b445f4b
keyoxide test@doip.rocks
# Force HKP
keyoxide --hkp test@doip.rocks
# Force HKP and specify server
keyoxide --hkp --hkp-server keys.openpgp.org test@doip.rocks
# Generate a profile and verify their identity claims (--profile or -p)
keyoxide -p 3637202523e7c1309ab79e99ef2dc5827b445f4b
# Generate a more detailed profile (--details or -d)
keyoxide -pd 3637202523e7c1309ab79e99ef2dc5827b445f4b
# Generate a profile based on a signature profile or local key
keyoxide -p ./profile.asc
# Verify a signed document against a key (--verify or -v)
keyoxide -v ./signed-doc.asc 3637202523e7c1309ab79e99ef2dc5827b445f4b
# Encrypt a message (--encrypt or -e)
keyoxide -e "Secret stuff, yo" 3637202523e7c1309ab79e99ef2dc5827b445f4b
keyoxide --encrypt-file ./message.txt 3637202523e7c1309ab79e99ef2dc5827b445f4b
```