glab ssh-key add ~/.ssh/id_ed25519.pub -t "laptop"

Category: GitLab

glab ssh-key add ~/.ssh/id_ed25519.pub -t "laptop"

Register an SSH key with your account

Uploads the public key from the file shown to your GitLab account under the title laptop. GitLab then accepts SSH pushes signed by the matching private key. Add -e with a date to expire the key automatically.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.