Pantheon\Terminus\Commands\SSHKey\AddCommand::add PHP Method

add() public method

Add a SSH key to the logged-in user's account
public add ( string $file )
$file string The path to the SSH public key file to use
    public function add($file)
    {
        $this->session()->getUser()->getSSHKeys()->addKey($file);
        $this->log()->notice('Added SSH key from file {file}.', compact('file'));
    }
AddCommand