gcli-config1
Git forge configuration
Usage
gcli ssh
gcli ssh
add
-t
title
-k
keypath
gcli ssh
delete
-i
id
Overview
gcli is used to change the settings of the Git Forge Account. You can use it to e.g. add or delete SSH Public Keys used to push to forges.
Options
-
-t, --title title -
Set the title of the SSH Key to be added. This is a short description of the key.
-
-k, --key keypath -
Path to the file containing the SSH public key.
-
-i, --id id -
ID of the public key to delete.
Subcommands
ssh-
List SSH public keys for the current user.
sshadd-
Add an SSH public key for the current user.
sshdelete-
Delete an SSH public key for the current user.
Examples
Print a list of registered SSH public keys:
$ gcli config ssh
Register ~/.ssh/id_rsa.pub on the default forge:
$ gcli config ssh add \
-t "Key for $(hostname)" \
-k ~/.ssh/id_rsa.pub