Below you will find a reference to the most useful commands.
gpg --help
gpg --list-keys
gpg --full-generate-key
# Choose what kind of key you want, the key size and specify an expiration date.
gpg --export --armor --output jane_doe_pgp.public_key.asc jane.doe@example.com
gpg --export-secret-keys --output --armor jane_doe_pgp.private_key.asc jane.doe@example.com
gpg --edit-key jane.doe@example.com
gpg passwd jane.doe@example.com