The first step to use GPG is to generate a key-pair. You can do this using the following interactive command:
Be sure to perform this step on a computer that is secure because the private key will be generated as a result. If you perform this step as a regular user on a computer that is managed by someone else, the generated private key can be accessed by the system administrator.
This command will ask you to answer several questions.