Add-GitHubUserGpgKey¶
SYNOPSIS¶
Create a GPG key for the authenticated user
SYNTAX¶
__AllParameterSets¶
Add-GitHubUserGpgKey [-Name] <string> [-ArmoredPublicKey] <string> [[-Context] <Object>]
[<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION¶
Adds a GPG key to the authenticated user's GitHub account.
Requires that you are authenticated via Basic Auth, or OAuth with at least write:gpg_key
scope.
EXAMPLES¶
EXAMPLE 1¶
Add-GitHubUserGpgKey -Name 'GPG key for GitHub' -ArmoredPublicKey @'
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQINBFnZ2ZIBEADQ2Z7Z7 -----END PGP PUBLIC KEY BLOCK----- '@
Adds a GPG key to the authenticated user's GitHub account.
PARAMETERS¶
-ArmoredPublicKey¶
A GPG key in ASCII-armored format.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- armored_public_key
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Context¶
The context to run the command in. Used to get the details for the API call. Can be either a string or a GitHubContext object.
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Name¶
A descriptive name for the new key.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
System.String¶
{{ Fill in the Description }}
OUTPUTS¶
System.Management.Automation.PSObject¶
{{ Fill in the Description }}
NOTES¶
Create a GPG key for the authenticated user